feat: add CraftTable MCP OAuth CLI

This commit is contained in:
2026-08-15 20:38:50 +08:00
commit 7c033b6118
19 changed files with 4053 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { createProxyServer } from "../src/bridge.js";
const server = createProxyServer({
listTools: async (params) => ({ tools: [{ name: "fixture_tool", inputSchema: { type: "object" } }], nextCursor: params?.cursor }),
callTool: async () => ({ content: [{ type: "text", text: "ok" }] }),
listResources: async () => ({ resources: [] }),
listResourceTemplates: async () => ({ resourceTemplates: [] }),
readResource: async ({ uri }) => ({ contents: [{ uri, text: "ok" }] }),
});
await server.connect(new StdioServerTransport());