MCPcopy Create free account
hub / github.com/ReAPI-com/mcp-openapi / createServer

Method createServer

src/McpService.ts:34–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 createServer() {
35 this.logger.info('Creating MCP server');
36 const mcpServer = new McpServer({
37 name: "reapi-mcp-server",
38 version: VERSION,
39 });
40
41 this.setUpTools(mcpServer);
42 this.logger.info('MCP server created successfully');
43
44 return mcpServer;
45 }
46
47 private setUpTools(server: McpServer) {
48 server.tool("refresh-api-catalog", "Refresh the API catalog", async () => {

Callers 2

index.tsFile · 0.80
mainFunction · 0.80

Calls 2

setUpToolsMethod · 0.95
infoMethod · 0.65

Tested by

no test coverage detected