mcp w.i.p.

This commit is contained in:
Syoyo Fujita
2025-07-12 11:51:18 +09:00
parent 792d1e3751
commit 651e9d5b03
10 changed files with 147 additions and 26 deletions

View File

@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
std::cout << "http://" + hostname << ":" << port << "/mcp" << "\n";
tydra::MCPServer server;
tydra::mcp::MCPServer server;
if (!server.init(port, hostname)) {
std::cerr << "Failed to init MCP server.\n";
return -1;

View File

@@ -16,3 +16,11 @@ curl -X POST \
"id": 1
}' \
http://localhost:8085/mcp
curl -X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "notifications/initialized"
}' \
http://localhost:8085/mcp

View File

@@ -3,9 +3,7 @@ curl -X POST \
-d '{
"jsonrpc": "2.0",
"method": "tools/list",
"params": {
},
},
"params": {},
"id": 2
}' \
http://localhost:8085/mcp