mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-11-03 04:06:53 +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
239 B
Python
12 lines
239 B
Python
from mcp.server.mcpserver import MCPServer
|
|
|
|
|
|
def server() -> MCPServer:
|
|
notes = MCPServer("notes")
|
|
|
|
@notes.tool()
|
|
def search(query: str) -> str:
|
|
"""Search the notes."""
|
|
return f"found {query}"
|
|
|
|
return notes
|