cURL
curl --request POST \ --url http://localhost:8080/api/mcp-servers/{mcpServerId}/tool-approvals \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --header 'X-API-SECRET: <api-key>' \ --data ' { "tool_name": "file_read", "approval_hash": "abc123def456", "auto_approve": true, "approval_conditions": { "file_extensions": [ ".txt", ".md", ".json" ], "max_file_size": 1048576 } } '
{ "message": "Tool approval added successfully", "status": "success", "error": null, "data": { "server_id": "mcp_8c180796-e6d7-4343-88b5-5df0846fef69", "tool_name": "file_read", "approval_hash": "abc123def456", "auto_approve": true, "created_at": 1751401500000 } }
Adds a tool approval to an MCP server (current behavior).
API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication
MCP server ID
"mcp_8c180796-e6d7-4343-88b5-5df0846fef69"
Tool name
Approval hash
Whether to auto-approve
Show child attributes
Tool approval added successfully