@casys/mcp-server 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/concurrent-server.ts +18 -0
package/package.json
CHANGED
package/src/concurrent-server.ts
CHANGED
|
@@ -1548,6 +1548,24 @@ export class ConcurrentMCPServer {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
1551
|
+
// MCP protocol methods we don't implement — return empty results
|
|
1552
|
+
if (method === "ping") {
|
|
1553
|
+
return c.json({ jsonrpc: "2.0", id, result: {} });
|
|
1554
|
+
}
|
|
1555
|
+
if (method === "prompts/list") {
|
|
1556
|
+
return c.json({ jsonrpc: "2.0", id, result: { prompts: [] } });
|
|
1557
|
+
}
|
|
1558
|
+
if (method === "logging/setLevel") {
|
|
1559
|
+
return c.json({ jsonrpc: "2.0", id, result: {} });
|
|
1560
|
+
}
|
|
1561
|
+
if (method === "completion/complete") {
|
|
1562
|
+
return c.json({
|
|
1563
|
+
jsonrpc: "2.0",
|
|
1564
|
+
id,
|
|
1565
|
+
result: { completion: { values: [] } },
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1551
1569
|
// Handle notifications: must have a method and no id (JSON-RPC 2.0 notification)
|
|
1552
1570
|
if (method && !id) {
|
|
1553
1571
|
return new Response(null, { status: 202 });
|