Skip to main content
Glama
r3-yamauchi

kintone OAuth MCP Server on Cloudflare Workers

by r3-yamauchi
index.ts1.18 kB
import OAuthProvider from "@cloudflare/workers-oauth-provider"; import { McpAgent } from "agents/mcp"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { CybozuHandler } from "./cybozu-handler"; import { Props } from "./types"; import { registerTools } from "./tools"; export class MyMCP extends McpAgent<Env, {}, Props> { server = new McpServer({ name: "kintone MCP Server", version: "1.0.0", }); async init() { // デバッグ: サブドメインとユーザー情報をログ出力 console.error("=== MCP Init Debug Info ==="); console.error("Access Token:", this.props.accessToken); console.error("Subdomain:", this.props.subdomain); console.error("User Login:", this.props.login); console.error("User Name:", this.props.name); console.error("========================="); // すべてのツールを登録 registerTools(this.server, this.props); } } export default new OAuthProvider({ apiRoute: "/sse", apiHandler: MyMCP.mount("/sse") as any, defaultHandler: CybozuHandler as any, authorizeEndpoint: "/authorize", tokenEndpoint: "/token", clientRegistrationEndpoint: "/register", });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/r3-yamauchi/kintone-oauth-mcp-server-cfw'

If you have feedback or need assistance with the MCP directory API, please join our Discord server