mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
mcp w.i.p.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,9 +3,7 @@ curl -X POST \
|
||||
-d '{
|
||||
"jsonrpc": "2.0",
|
||||
"method": "tools/list",
|
||||
"params": {
|
||||
},
|
||||
},
|
||||
"params": {},
|
||||
"id": 2
|
||||
}' \
|
||||
http://localhost:8085/mcp
|
||||
|
||||
Reference in New Issue
Block a user