UNPKG

kntn-dev-mcp

Version:

MCP server providing comprehensive kintone development support including API specs, field types, and development tips

45 lines 1.49 kB
import { ResourceHandler } from "./ResourceHandler.js"; import { ToolHandler } from "./ToolHandler.js"; export class MCPServer { resources; tools; constructor(storage, updateService) { this.resources = new ResourceHandler(storage); this.tools = new ToolHandler(); } async start() { // Initialize MCP server connection console.log("MCP Server initialized with kintone development support"); } async initialize(req) { return { protocolVersion: req.protocolVersion, capabilities: { resources: req.capabilities.resources ?? {}, tools: req.capabilities.tools ?? {}, }, serverInfo: { name: "kintone-mcp-server", version: "1.0.0", description: "MCP server for kintone development support", }, }; } async listResources() { const resources = await this.resources.listResources(); return { resources }; } async readResource(request) { const contents = await this.resources.readResource(request.uri); return { contents }; } async listTools() { const tools = await this.tools.listTools(); return { tools }; } async callTool(request) { const content = await this.tools.callTool(request.name, request.arguments); return { content, isError: false }; } } //# sourceMappingURL=MCPServer.js.map