Skip to content

Commit cdb10e9

Browse files
Create dedicated MCP server page without filters
- Add index.html for mcp-server directory - Remove filters section from MCP server page - Keep only one "Drupal Tools MCP Server" title as main heading - Display essential information: features, installation, usage, tools - Remove duplicate labels and unnecessary UI elements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent ecfd9e2 commit cdb10e9

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

mcp-server/index.html

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
layout: default
3+
title: Drupal Tools MCP Server
4+
---
5+
6+
<div class="container">
7+
<div class="row">
8+
<div class="col-md-12">
9+
<h1>Drupal Tools MCP Server</h1>
10+
11+
<p>A simple MCP (Model Context Protocol) server that suggests Drupal tools from the <code>_data/projects</code> folder. This server provides semantic search and discovery of Drupal development tools, utilities, and projects.</p>
12+
13+
<h2>Features</h2>
14+
<ul>
15+
<li><strong>list_tools</strong>: List all available Drupal tools/projects with optional filtering</li>
16+
<li><strong>search_tools</strong>: Search for tools using semantic matching</li>
17+
<li><strong>get_tool</strong>: Get detailed information about a specific tool</li>
18+
</ul>
19+
20+
<h2>Installation with npm</h2>
21+
22+
<p>The easiest way to use the MCP server is with npm:</p>
23+
24+
<div class="highlight">
25+
<pre>npm install -g @drupaltools/mcp</pre>
26+
</div>
27+
28+
<h2>Usage with Claude Desktop</h2>
29+
30+
<p>Add the following to your Claude Desktop configuration file:</p>
31+
32+
<div class="highlight">
33+
<pre>{
34+
"mcpServers": {
35+
"drupal-tools": {
36+
"command": "drupaltools-mcp"
37+
}
38+
}
39+
}</pre>
40+
</div>
41+
42+
<h2>Available Tools</h2>
43+
44+
<h3>1. list_tools</h3>
45+
<p>Lists all available Drupal tools/projects.</p>
46+
47+
<p><strong>Parameters:</strong></p>
48+
<ul>
49+
<li><code>category</code> (optional): Filter by category (e.g., 'testing', 'cli', 'deployment')</li>
50+
<li><code>limit</code> (optional, default: 50): Maximum number of tools to return</li>
51+
</ul>
52+
53+
<h3>2. search_tools</h3>
54+
<p>Search for tools using a query string. Uses smart scoring:</p>
55+
<ul>
56+
<li>Title matches: 100 points</li>
57+
<li>Category matches: 50 points</li>
58+
<li>Tag matches: 30 points</li>
59+
<li>Description matches: 20 points</li>
60+
<li>Homepage/source matches: 10 points</li>
61+
</ul>
62+
63+
<p><strong>Parameters:</strong></p>
64+
<ul>
65+
<li><code>query</code> (required): Search query</li>
66+
<li><code>limit</code> (optional, default: 10): Maximum results to return</li>
67+
</ul>
68+
69+
<h3>3. get_tool</h3>
70+
<p>Get detailed information about a specific tool by ID or name.</p>
71+
72+
<p><strong>Parameters:</strong></p>
73+
<ul>
74+
<li><code>tool_id</code> (required): The tool ID (filename without .yml) or tool name</li>
75+
</ul>
76+
77+
<h2>Development</h2>
78+
79+
<p>The server is built using the JavaScript/TypeScript MCP SDK (<code>@modelcontextprotocol/sdk</code> v1.24.3) with ES modules.</p>
80+
81+
<h2>Testing</h2>
82+
83+
<div class="highlight">
84+
<pre>npx @modelcontextprotocol/inspector node mcp-server/index.js</pre>
85+
</div>
86+
87+
<p>This opens a web UI where you can:</p>
88+
<ul>
89+
<li>See all available tools and their schemas</li>
90+
<li>Test each tool with custom parameters</li>
91+
<li>View real-time responses</li>
92+
<li>Debug issues</li>
93+
</ul>
94+
</div>
95+
</div>
96+
</div>

0 commit comments

Comments
 (0)