Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

527 B
Raw Blame
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { registerMcpTools, toMcpToolRegistrar } from "./tools";
import { MCP_MAX_TOOL_INPUT_ELEMENTS } from "./request-bounds";

export function createMcpServerForUser(
  token: string,
  internalApiUrl: string,
): McpServer {
  const server = new McpServer(
    { name: "kaneo-mcp", version: "1.0.0" },
    { maxToolInputElements: MCP_MAX_TOOL_INPUT_ELEMENTS },
  );
  registerMcpTools(toMcpToolRegistrar(server), internalApiUrl, token);
  return server;
}