MCPcopy Create free account
hub / github.com/PSPDFKit/nutrient-document-engine-mcp-server / createMCPServer

Function createMCPServer

src/index.ts:86–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85function createMCPServer(): McpServer {
86 const server = new McpServer(
87 {
88 name: 'nutrient-document-engine-mcp',
89 version: getVersion(),
90 },
91 {
92 capabilities: {
93 tools: {},
94 logging: {},
95 },
96 }
97 );
98
99 // Configure all tools
100 configureMCPServerTools(server);
101
102 return server;
103}
104
105function configureMCPServerTools(server: McpServer): void {
106 for (const tool of mcpToolsToRegister) {
107 server.tool(tool.name, tool.schema, (args, extra) => tool.handler(server, client, args, extra));

Callers 2

startStdioServerFunction · 0.70
startHttpServerFunction · 0.70

Calls 2

getVersionFunction · 0.85
configureMCPServerToolsFunction · 0.85

Tested by

no test coverage detected