MCPcopy
hub / github.com/infinitered/reactotron / createMcp

Function createMcp

lib/reactotron-mcp/src/mcp-server.ts:59–67  ·  view source on GitHub ↗

Create a fresh McpServer instance with all resources/tools registered

()

Source from the content-addressed store, hash-verified

57
58 /** Create a fresh McpServer instance with all resources/tools registered */
59 function createMcp(): McpServer {
60 const mcp = new McpServer(
61 { name: "reactotron", version: "0.1.0" },
62 { capabilities: { resources: {}, tools: {} } }
63 )
64 registerResources(mcp, reactotronServer, commandBuffer, serverRedactionConfig)
65 registerTools(mcp, reactotronServer, commandBuffer, serverRedactionConfig)
66 return mcp
67 }
68
69 return {
70 get started() { return started },

Callers 1

startFunction · 0.85

Calls 2

registerResourcesFunction · 0.90
registerToolsFunction · 0.90

Tested by

no test coverage detected