mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-11-09 15:22:49 +00:00
plugins/remote/host mounts each plugin folder's MCP server at /<id>/mcp and answers /health; without proprietary/ it serves only the Apache-2.0 plugins. A plugin's access hook runs before its server sees a request, and proprietary/license_check applies contract 2 with Keygen's validate-key: a five-minute cache, a day's grace while Keygen is down, and 401, 403 or 503 otherwise. The check is license_check/, since license/ beside LICENSE is one path on macOS and Windows. CI checks plugins/remote/ on its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
249 B
Python
12 lines
249 B
Python
from mcp.server.mcpserver import MCPServer
|
|
|
|
|
|
def server() -> MCPServer:
|
|
failing = MCPServer("failing")
|
|
|
|
@failing.tool()
|
|
def explode() -> str:
|
|
"""Always fails."""
|
|
raise RuntimeError("the plugin broke")
|
|
|
|
return failing
|