_mcp/<service-name>/ in your workspace. The CLI scaffolds the directory structure, and you customize the configuration, tool definitions, and implementation.
Create a service
Configure the service
Editsrc/config.ts to set the auth type and service metadata:
authType: "custom" and define the credential fields:
Define tools
Editsrc/tools.ts to define the tools your service exposes. Each tool has a name, description, and input/output schemas:
mutation: true for tools that modify data (writes, deletes, sends). This enables the framework to enforce access control policies on mutating operations.
Implement tool handlers
Editsrc/Service.ts to implement the tool logic. The createClient method sets up an authenticated API client, and getToolHandler maps tool names to their implementations:
context parameter is provided by the framework at call time — it contains the authenticated user’s credentials, service settings, and request metadata. Your handler code never fetches or manages credentials directly.
