ccproxy.plugins.permissions.mcp¶
ccproxy.plugins.permissions.mcp
¶
MCP (Model Context Protocol) server for CCProxy API Server.
Provides MCP server functionality including permission checking tools.
check_permission
async
¶
Check permissions for a tool call.
This implements the same security logic as the CLI permission tool, checking for dangerous patterns and restricted tools.
Source code in ccproxy/plugins/permissions/mcp.py
permission_endpoint
async
¶
Check permissions for a tool call.
Source code in ccproxy/plugins/permissions/mcp.py
setup_mcp
¶
Set up MCP server on the given FastAPI app.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
FastAPI
|
The FastAPI application to mount MCP on |
required |