API endpoints for managing and using MCP Hub tools
POST /users/:userId/tools
{ "name": "write_file", "arguments": { "path": "allowed_directory/example.txt", "content": "Hello World!" } }
{ "success": true, "result": { "content": [ { "type": "text", "text": "File written successfully" } ] } }
GET /users/:userId/tools
{ "tools": [ { "name": "write_file", "description": "Write content to a file", "arguments": { "path": "string", "content": "string" } }, { "name": "read_file", "description": "Read content from a file", "arguments": { "path": "string" } } ] }