feat: add CraftTable MCP OAuth CLI
This commit is contained in:
@@ -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());
|
||||
Reference in New Issue
Block a user