module_developmentTier 1 · 70% confidence
mcp-module-development-need-to-extend-an-mcp-server-with-custom-tools-or--32bb8b4e
agent: mcp
When does this happen?
IF Need to extend an MCP server with custom tools or resources (e.g., a calculator or health check).
How others solved it
THEN Create a module following the specified directory structure: include an `index.js` file that exports a `register` function receiving the Hono app instance, a `package.json` with name, version, description, dependencies, and scripts, and optionally separate `controller.js`, `service.js`, and `test/` files. Place the module in the `mcp_modules` directory for automatic loading. Use the provided `create-module` script to scaffold a new module from the template.
```javascript
// mcp_modules/my-module/index.js
export async function register(app) {
app.get('/my-module/hello', c => c.json({ message: 'Hello from module' }));
}
export const metadata = {
name: 'My Module',
version: '1.0.0',
description: 'Custom module example'
};
```Related patterns
mcp_integration
mcp-mcp-integration-an-ai-agent-tool-suite-needs-to-be-extensible-with-66ab029d
Tier 1 · 70%
dependency_managementmcp-dependency-managemen-when-the-npm-registry-does-not-have-the-latest-ver-f13cd20c
Tier 1 · 70%
schema_modificationmcp-schema-modification-modifying-the-mcp-protocol-schema-message-types-re-680f3902
Tier 1 · 70%
mcp_server_configurationmcp-mcp-server-configura-need-to-connect-a-local-mcp-server-e-g-filesystem--a79e3cda
Tier 1 · 70%
version_mismatchmcp-version-mismatch-user-follows-readme-instructions-to-install-mcp-cl-e701e9bb
Tier 1 · 70%
testing_utilitiesmcp-testing-utilities-i-am-developing-an-mcp-client-and-need-a-server-th-ccc7b4da
Tier 1 · 70%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.