Expand description
The MCP boundary (ADR-0027).
MCP makes an application controllable by an external AI. It is not an inference
API — for inference the application performs itself, see origin-ai.
the user's own AI ──MCP──▶ this application ──▶ application servicesThe application therefore needs no model, no API key and no chat window of its own. It states what it can do and what an AI is allowed to do with it.
An MCP server is a driving adapter, the same role as the Tauri host or a CLI — which is why nothing in this crate knows Tauri, and why a tool must be a service method rather than a command.
§The caller is a language model
It acts on content it read somewhere, and that content may be hostile. A tool call
is therefore not a trusted request: the default grant is read and propose, never
commit or delete (see AiPermission).
Structs§
- AiPermissions
- What this application actually grants.
- Client
Info - Initialize
Params - McpServer
- Serves an application’s tools to an external AI client.
- Request
- Response
- Response
Error - Server
Info - Tool
Descriptor - What a tool is, as the model sees it.
- Tool
Output - What a tool returns.
Enums§
- AiPermission
- What an external AI may do with this application.
Constants§
- PROTOCOL_
VERSION - Protocol revision this server announces.
Traits§
- Tool
- One operation an external AI may invoke.