Generate an MCP (Model Context Protocol) server from a ToolDefinition. Maps tool fields to MCP equivalents and produces a scaffold in TypeScript or Python. Use when you have an existing tool and want to expose it as an MCP server.
Generate a Model Context Protocol (MCP) server scaffold from one or more ToolDefinition objects. The generated server can be registered with any MCP-compatible client (Claude, Cursor, etc.).
Ask the user which tools to expose via MCP, or default to all tools in tools/index.js.
For each tool, read its ToolDefinition to extract:
name, description, schema (parameters)mcpRouting (HTTP endpoint and method)Generate mcp-server.js (or the user's preferred filename) using @modelcontextprotocol/sdk:
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
The server must:
tools/list — return all tools with their JSON schemastools/call — route to the correct ToolDefinition's mcpRouting HTTP endpointFORGE_API_KEY or tool-specific env vars)Generate a mcp.json config snippet the user can paste into their Claude Desktop or Cursor config:
{
"mcpServers": {
"<project-name>": {
"command": "node",
"args": ["./mcp-server.js"],
"env": {
"API_BASE_URL": "http://localhost:3000",
"FORGE_API_KEY": "<your-api-key>"
}
}
}
}
Print:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer