MCP and plugin integrations
Temps extends its AI and platform features through two related paths. The built-in MCP server gives AI clients a live, authenticated view of platform tools. The external plugin system lets separately built binaries add API routes, UI pages, platform queries, governed AI access, and event reactions. Both paths use the platform's own services and caller permissions so an integration does not become a second, drifting product API.
Integration landscape
The integration layer has three distinct roles. The MCP server exposes Temps capabilities to an AI client. The agent MCP proxy exposes user-defined webhook tools inside an agent sandbox. External plugins add product features to the Temps instance itself.
flowchart LR
AI[AI client] -->|MCP over HTTP| MCP[Temps MCP server]
MCP --> Services[Temps services and permissions]
Agent[Agent sandbox] -->|MCP over stdio| Proxy[Custom-tool MCP proxy]
Proxy -->|HTTP POST| Webhook[User webhook]
Browser[Platform caller] -->|HTTP| Ext[External plugin proxy]
Ext -->|Unix socket| Plugin[External plugin process]
Plugin -->|Typed channel| Services
Services -->|Platform events| Plugin
These paths are not interchangeable. The MCP server is part of the main Temps HTTP service and is aimed at AI clients. The custom-tool proxy is a small sandbox-local bridge to webhooks. An external plugin is a running product component with its own routes and optional UI. See AI automation for the wider AI model and AI agent runtime for agent execution.
MCP server
The MCP server is a root-level Streamable HTTP endpoint that maps MCP JSON-RPC requests to live Temps services. It uses the same authentication, permission, audit, and request limits as the rest of the platform, which keeps its tool behavior aligned with the product API.
MCP transport and discovery
The MCP server uses the instance's existing HTTP and TLS listener. The main session is /mcp, while /mcp/tools is a small unauthenticated probe that tells the CLI whether MCP is available and which tool groups exist. Full tool schemas and tool calls require a bearer API key with project read access.
| Surface | Purpose | Access model |
|---|---|---|
GET /mcp/tools | Detect MCP support and show group names | Public capability probe |
POST /mcp | Handle initialize, tools/list, and tools/call | Bearer authentication and ProjectsRead |
GET /mcp | Open the server-to-client event stream | Bearer authentication and ProjectsRead |
DELETE /mcp | End the client session | Bearer authentication and ProjectsRead |
The server is disabled by default through the MCP setting. A disabled instance returns a not-found response from the probe so the CLI can distinguish “MCP is off” from a bad tool call.
References: crates/…/lib.rs• L4-28 crates/…/handlers.rs• L28-53 crates/…/handlers.rs• L56-173 apps/…/probe.ts• L4-35
Tool groups and write controls
MCP tools are exposed through broad groups rather than a long flat list. A client can narrow the connection with the groups query parameter. Read tools are available by default. The write=1 parameter is a separate opt-in that makes write tools visible.
| Group | Product area |
|---|---|
deployments | Projects, environments, presets, and deployments |
infrastructure | Services, containers, load balancers, and scans |
networking | Domains, DNS providers, and IP access |
data | Backups and database connection information |
observability | Monitors, incidents, errors, logs, funnels, and analytics |
notifications | Notifications, webhooks, and email providers |
platform | Users, settings, API keys, audit, tokens, and platform access |
The group filter limits what the client can see and call. It does not grant permission. The API key still controls the user's actual rights. A write call must pass both the explicit write-mode check and the matching platform permission check.
Write calls use a propose-then-confirm flow. The first call describes the change and returns a short-lived proposal token. A separate confirm_action call consumes the token and performs the change. Tokens expire after five minutes and can be used once. Confirmed deployment actions are audited with the acting user and request context.
References: crates/…/registry.rs• L4-70 crates/…/protocol.rs• L204-238 crates/…/handlers.rs• L265-346 crates/…/audit.rs• L7-48
MCP client setup
The CLI connects an AI client to the MCP endpoint and stores the connection in that client's own configuration. It checks the target instance first, uses a credential tied to that instance, and asks for tool groups and write access before it writes the configuration.
The supported setup flow is:
- Enable MCP on the target Temps instance as an administrator.
- Run
bunx @temps-sdk/cli mcp add <client>. - Select the instance, tool groups, and optional write mode.
- Use a dedicated API key when possible.
- Confirm the client configuration and restart the AI client.
Clients with native HTTP MCP receive the /mcp URL and bearer header directly. Stdio-only clients use an mcp-remote bridge. The CLI also provides mcp remove and mcp status; do not confuse this command family with the separate mcp-servers feature used by Temps agents for outbound MCP servers.
References: apps/…/index.ts• L215-252 apps/…/index.ts• L288-440 apps/…/groups.ts• L4-71
MCP server configurations
MCP server configurations describe outbound MCP servers that AI workflows can use. They are stored at project scope or as shared global definitions, then merged into the workflow's runtime settings in the mcpServers format.
| Scope | Effect |
|---|---|
| Project | Makes a server available to workflows in one project |
| Global | Provides a shared definition that projects can reference |
Each definition has a stable slug, display metadata, and JSON configuration such as a command, arguments, and environment values. The settings pages validate the JSON before saving and provide a controlled way to reveal stored credentials while editing. Deleting a project definition removes it from workflows that reference it. Deleting a global definition removes access from every project that uses it.
References: web/…/McpServersSettings.tsx• L98-116 web/…/McpServersSettings.tsx• L235-265 web/…/McpServersSettings.tsx• L356-493 web/…/GlobalMcpServerDetail.tsx• L44-119 web/…/GlobalMcpServerDetail.tsx• L375-392
MCP proxy
The agent MCP proxy is a sandbox-local stdio MCP server for custom tools. It reads tool definitions from a sandbox file, advertises those tools to the AI process, and sends each selected call as an HTTP POST to the configured webhook.
Custom-tool bridge
Each custom tool has a unique name, a description, an input JSON Schema, a webhook URL, and optional headers. The proxy sends { "tool": name, "input": arguments } to the webhook and turns the response into MCP text content. A failed or non-successful webhook response becomes a tool error instead of a platform API error.
Temps installs the proxy script and its generated configuration into the sandbox's private home volume. It resolves ${TEMPS_SECRET:name} placeholders before writing the configuration. This keeps the integration separate from the mounted project workspace and lets the agent use new tool definitions without rebuilding the sandbox image.
References: crates/…/lib.rs• L4-92 crates/…/lib.rs• L143-224 crates/…/executor.rs• L1092-1152
Agent MCP server configuration
The agent runtime combines project-selected MCP server definitions with the custom-tool proxy entry. It writes the merged set in the format required by the active AI provider, so an agent can use both external MCP servers and custom webhook tools in one run.
This proxy does not expose the built-in Temps MCP server and does not authorize platform operations. Its contract ends at the webhook boundary. Any authentication, input checks, replay control, and authorization for a custom webhook remain the responsibility of that webhook service.
References: crates/…/executor.rs• L1154-1219 crates/…/lib.rs• L43-81
External plugin system
The external plugin system loads verified, activated standalone binaries and mounts each running plugin below /x/<plugin-name>. A plugin can add authenticated HTTP routes, an embedded UI, typed access to platform data, governed AI generation, and subscriptions to platform events. Plugins can come from a signed release registry or from an administrator-selected GitHub repository source.
Plugin installation sources
Plugin installation turns an external source into an active product component only after source checks, artifact checks, startup checks, and actor setup succeed. The two supported source paths have different trust records, but both preserve an exact identity for the code that runs.
| Source | Product role | Activation basis |
|---|---|---|
| Signed release registry | Offers published platform-specific plugin releases | Signed registry metadata, artifact digest, and verified installation receipt |
| GitHub repository | Lets an administrator build a plugin from a selected repository commit and optional subdirectory | Exact commit, validated plugin manifest, bounded build, and repository provenance receipt |
| Repository source catalog | Helps administrators discover repository plugins and view declared metadata | Display metadata only; it does not grant permissions or authorize execution |
The signed registry path checks trust state and platform compatibility before it downloads a release. The repository path fetches the requested commit, checks the plugin package shape, builds it in a bounded builder, and records the source commit and build identity. A registry install cannot silently replace a repository-backed plugin with the same name, and a failed candidate leaves the current active version in place.
Installation, update, uninstall, grant approval, and reload actions require an administrator and are recorded in the audit trail. Optional installation reporting is off until an administrator enables it; when enabled, it shares only the plugin name and an anonymous plugin-specific identifier with the official registry after a verified registry install.
References: crates/…/handler.rs• L648-753 crates/…/handler.rs• L949-1131 crates/…/handler.rs• L1164-1370 crates/…/handler.rs• L1373-1572 crates/…/install.rs• L191-223 crates/…/install.rs• L399-492 crates/…/install.rs• L494-604 crates/…/repository.rs• L204-356 crates/…/repository.rs• L763-1017 crates/…/service.rs• L731-961 crates/…/source_catalog.rs• L20-51 crates/…/source_catalog.rs• L110-140
Repository install progress
Repository installs can expose a bounded progress record when the caller supplies a UUID. The administrator polls that record for safe, static milestones such as source fetch, build, plugin start, and promotion; subprocess output and source credentials do not cross this interface.
Progress records are isolated by ID, report running, completed, or failed state, and retain finished results for a short period. The store has a fixed capacity, so old finished records can be removed while active installs remain protected.
References: crates/…/install_progress.rs• L16-78 crates/…/install_progress.rs• L107-175 crates/…/install_progress.rs• L203-279 crates/…/handler.rs• L1133-1162 crates/…/service.rs• L161-203
Plugin SDK and manifest
The plugin SDK is the public development contract for an external plugin. A plugin supplies a manifest, an HTTP router, and optional UI assets. The manifest declares the plugin identity, navigation entries, UI routes, event subscriptions, public route prefixes, and requested platform capabilities.
The SDK also lets a plugin declare host permissions such as project-data or event access. A plugin can inspect its effective grants through the runtime context before it uses a governed host service. The development probe in crates/…/plugin-dev-probe.rs demonstrates this contract with a small UI, project query, capability query, and event log.
The default manifest is narrow. It grants no platform API capability, no database URL, and no host-data path. api_read and api_write declare the broad kind of channel access the plugin needs, but each request still runs as the current caller and must pass the platform permission checks. Direct database access and host-data access are separate privileged disclosures for trusted installed code.
| Manifest area | System effect |
|---|---|
| Identity and version | Names the plugin and identifies the SDK contract it uses |
| Navigation and UI | Adds sidebar entries and client routes to the Temps shell |
public_paths | Allows selected routes to receive unauthenticated traffic; the plugin must authenticate them itself |
| Capabilities | Allows read or mutating platform calls through the channel |
| Events | Selects platform events for delivery to the plugin |
| Host access flags | Requests direct database or instance data access |
Installed external plugins are trusted host code. The current runtime does not isolate a plugin from the host filesystem or sibling processes, so the manifest reduces accidental disclosure but is not a sandbox boundary.
References: crates/…/lib.rs• L4-24 crates/…/lib.rs• L94-156 crates/…/context.rs• L8-31 crates/…/context.rs• L76-89 crates/…/manifest.rs• L61-166 docs/…/external-plugin-sdk-boundary.md• L35-59
Plugin runtime context
The plugin runtime context is the plugin's controlled view of the host. It provides the typed platform client and plugin-owned data path by default, while database access, host data, and an externally reachable mount URL remain optional disclosures. It also provides the request secret that a plugin can use to verify that a request came from Temps.
The context exposes governed AI generation and caller-bound platform API access through the same host boundary. These paths keep provider credentials and user permissions under platform control instead of making them plugin-owned credentials.
References: crates/…/context.rs• L8-31 crates/…/context.rs• L56-124 crates/…/context.rs• L126-185
Plugin startup contract
Plugin startup uses a staged, versioned handshake. Temps discovers only activated installations that still pass their local source or registry verification, starts a candidate binary, reads its protocol version and manifest, sends only the launch values requested by that manifest, waits for a ready message, and checks the plugin health route. The plugin then serves HTTP over its private Unix socket.
The handshake keeps secrets and privileged paths out of process arguments. A per-process secret binds requests to the child that Temps started. The shared protocol types in temps-core are the canonical contract and are re-exported by the SDK, so a protocol mismatch fails during startup with a rebuild message rather than appearing as a later route error. New installs and updates pass startup verification before they replace the healthy active process.
The activation record selects one immutable, verified release. A reload stops the current processes, scans only active verified installations, starts compatible binaries, and swaps the proxy routes for later requests without restarting the main server. Reload reports successful plugins and individual failures so a partial load is visible to the administrator.
sequenceDiagram
participant T as Temps
participant P as Plugin process
T->>T: Verify active source and artifact
T->>P: Start candidate with socket and data paths
P->>T: Hello with protocol version and manifest
T->>P: Typed launch config with requested values
P->>T: Ready with optional UI and OpenAPI data
T->>P: Health check over Unix socket
T->>T: Promote verified candidate
T->>P: Proxy requests and open platform channel
References: crates/…/manifest.rs• L302-358 crates/…/protocol.rs• L4-35 crates/…/runtime.rs• L32-42 crates/…/runtime.rs• L90-207 crates/…/install.rs• L1317-1576 crates/…/manager.rs• L463-548 crates/…/manager.rs• L752-982 crates/…/manager.rs• L1033-1088 crates/…/service.rs• L817-961 crates/…/service.rs• L671-728
Plugin routes and UI
Temps mounts plugin API routes under /api/x/<plugin-name>/ and loads the plugin UI from the corresponding /ui/ endpoint inside a sandboxed iframe. The console mirrors the plugin's internal path into /plugins/<plugin-name>/ so users can copy and revisit a deep link without reloading the plugin.
Authenticated API requests carry the caller's resolved identity and permissions. The proxy removes browser credentials and client-supplied x-temps-* headers before it adds its own assertions. For UI navigation, a plugin can use a URL hash or the temps:route and temps:navigate message pair. A route listed in public_paths bypasses the platform's caller gate; that route must validate its own credential because it is reachable without a Temps session.
A plugin can provide a UI bundle and OpenAPI schema. The manifest drives navigation and client routes, while the ready message lets Temps merge the plugin's API paths under the plugin prefix. A missing /ui/ response prevents the embedded page from loading even when the plugin process is present.
References: crates/…/lib.rs• L109-134 crates/…/service.rs• L250-271 crates/…/proxy.rs• L93-181 crates/…/proxy.rs• L285-437 web/…/PluginPage.tsx• L12-40 web/…/PluginPage.tsx• L155-205 web/…/PluginPage.tsx• L255-315
Platform channel
After the handshake, Temps opens a long-lived WebSocket to /_temps/channel on the plugin's Unix socket. The channel carries typed request and response messages in both directions. It lets a plugin read project, environment, and deployment data without receiving the platform database, and it lets the platform push subscribed events over the same connection.
The SDK client matches each typed request with its response and forwards incoming events to the plugin runtime. It also exposes the plugin's effective host grants, governed AI generation, and a typed escape hatch for platform HTTP calls. If the channel closes, pending calls fail rather than returning incomplete data.
For broader platform operations, the plugin sends an ApiCall with an actor token. Temps verifies that the token was issued for this plugin and a live session or active API key, rebuilds the current caller permissions, and runs the request through the real platform router. A plugin therefore receives the same authorization and audit behavior as the person or key that called it.
The channel uses stable DTOs instead of database entities. Its typed call and response variants keep a new or changed operation visible as a protocol change, while the SDK's higher-level API offers typed endpoint projections for common platform actions.
References: crates/…/channel.rs• L4-35 crates/…/channel.rs• L239-255 crates/…/channel.rs• L403-449 crates/…/channel.rs• L44-57 crates/…/channel.rs• L304-385 crates/…/client.rs• L42-207 crates/…/client.rs• L216-300 crates/…/context.rs• L76-124
Caller delegation
Caller delegation means that a plugin acts for the user who reached the plugin, not as a permanent plugin administrator. Temps mints a short-lived actor token only for an authenticated user and only when the plugin declared a platform API capability. Redemption checks the token's plugin name and expiry, then checks the backing session or API key again.
The SDK exposes this rule through caller-bound API clients. A route can build one from the authenticated plugin request or from a caller verified by the SDK runtime. If the request has no actor token, the SDK refuses to create the client.
This contract prevents a restricted API key from gaining the user's wider role after it reaches a plugin. A revoked session, inactive key, deleted user, or missing signing key causes the platform call to fail closed. Credentials from the original browser request are never forwarded to the plugin.
References: crates/…/actor.rs• L4-51 crates/…/actor.rs• L70-99 crates/…/actor.rs• L251-328 crates/…/host_api.rs• L90-275 crates/…/proxy.rs• L299-435 crates/…/context.rs• L91-124
Event delivery
Plugins subscribe to named platform events in their manifest. The event listener maps selected platform jobs to stable event names such as deployment.succeeded, project.created, and domain.provisioned, then sends each event to matching plugins.
Temps prefers the live WebSocket channel for event delivery and falls back to authenticated POST /_events on the plugin socket when the channel is unavailable. Exact event names, deployment.* prefixes, and * are supported. Event delivery starts only when a job queue is available and at least one running plugin has subscriptions.
The SDK example keeps a bounded event log and ignores a repeated event ID. This illustrates that event delivery is an external message contract: a plugin should make its reaction safe when delivery is repeated or delayed.
References: crates/…/event_listener.rs• L4-9 crates/…/event_listener.rs• L249-347 crates/…/manifest.rs• L134-146 crates/…/runtime.rs• L395-515 crates/…/plugin-dev-probe.rs• L7-20 crates/…/plugin-dev-probe.rs• L84-105
Integration contracts
The system has one main rule: the platform owns the boundary where identity, permission, and product state enter an integration. The integration owns its feature logic and its own resources, but it must use the declared transport and data types instead of copying platform credentials or internal records.
| Contract | Owner | Integration expectation |
|---|---|---|
| MCP JSON-RPC and tool schemas | MCP server | Use /mcp and discover tools through initialize and tools/list |
| MCP group and write query | MCP server and CLI | Keep server group keys aligned with CLI group keys; treat write mode as opt-in |
| Custom tool webhook | User webhook | Accept the proxy's tool/input body and return content or an error |
| Plugin manifest and handshake | Shared core types and plugin SDK | Match the protocol version and disclose only needed capabilities |
| Plugin installation provenance | Plugin service and installer | Execute only an active artifact with a valid registry receipt or repository provenance record |
| Plugin HTTP proxy | Temps and SDK runtime | Trust only platform-asserted headers after the per-process secret is checked |
| Platform channel | Shared core types and SDK | Use typed calls, correlation IDs, and actor-bound API calls |
| Governed host AI | Platform channel and SDK | Send generation requests through the host service; keep provider credentials outside the plugin |
| Platform events | Job queue and plugin manifest | Subscribe by event name and handle delivery as an external event |
| Plugin UI and OpenAPI | Plugin and Temps shell | Keep routes relative to the plugin mount, serve /ui/, and use the supported deep-link message contract |
| MCP server definitions | Project and global settings | Preserve the mcpServers JSON shape and scope references when definitions change |
| Repository source catalog | Source catalog and plugin service | Treat repository metadata and declared permissions as display hints, not grants or trust |
| Repository install progress | Plugin service and administrator client | Use a UUID progress contract and static stage states without exposing build output or secrets |
These contracts support extension without copying the platform service graph. When a capability is missing, the expected result is a clear denial or protocol error rather than a silent fallback to broader access.
References: crates/…/mod.rs• L4-12 crates/…/channel.rs• L506-619 crates/…/api.rs• L26-48 crates/…/client.rs• L279-300 crates/…/install.rs• L191-223 crates/…/source_catalog.rs• L20-51 crates/…/install_progress.rs• L19-41 docs/…/external-plugin-sdk-boundary.md• L14-34
Change checklist
When these files or sections are changed, remember to consider these:
- Keep MCP group keys, labels, and defaults aligned between crates/…/registry.rs and apps/…/groups.ts.
- Treat changes to MCP write visibility, proposal expiry, or permission checks as changes to the AI safety contract and the audit record.
- Keep project and global MCP definition scopes aligned with the workflow merge step; deleting a global definition affects every project that references it.
- Preserve the
mcpServersJSON shape and the credential-reveal contract when changing MCP configuration fields. - Rebuild external plugin binaries when
EXTERNAL_PLUGIN_PROTOCOL_VERSION, handshake messages, manifest fields, channel variants, or actor-token rules change. - Update both the platform and SDK sides when a channel request or response variant changes; the typed pairing is the compatibility contract.
- Preserve the
/api/x/<plugin-name>and/x/<plugin-name>route relationship when changing plugin mounts, UI paths, or merged OpenAPI paths. - Keep plugin UI deep links aligned across the console route, iframe hash behavior, and
temps:routemessage names. - When adding an event job, decide whether it maps to a plugin event and update the event subscription contract before expecting plugins to receive it.
- Keep
public_pathsexplicit and review every listed route as a separate authentication boundary. - Do not turn
requires_dborrequires_host_data_accessinto defaults; they are operator-visible privileged disclosures and are independent capabilities. - Keep SDK host-permission declarations aligned with the channel operations a plugin uses; inspect effective grants before relying on project, event, or AI access.
- Keep caller-bound API creation on a request with a valid actor token; do not replace it with a plugin-wide credential.
- Treat changes to the typed AI request and result as a platform-channel contract change, and keep provider credentials on the host side.
- Keep signed registry revisions and keyset generations monotonic, and preserve the link between an active release, its receipt, its digest, and its source identity.
- Keep registry and GitHub repository source identities distinct so an install or update cannot silently replace one source type with the other.
- Treat repository source-catalog permissions as display metadata only; installation must still derive grants from the authenticated plugin manifest and administrator approval.
- Keep repository progress IDs, stage names, terminal states, and bounded retention aligned between the install endpoint, service, and polling client.
- Preserve candidate-before-promotion behavior and restore the previous active release if actor setup fails after activation.
- Keep required security audit events ahead of release selection, grant approval, and source-changing plugin actions; optional installation reporting must remain consent-gated.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| MCP setting is disabled | The probe and MCP requests return not found, so clients report that the instance has no active MCP server | Enable MCP on the instance before configuring a client |
Client omits write=1 | Write tools are not listed or are refused | Configure write mode only when the client needs it |
Write mode is enabled without DeploymentsCreate | Deployment mutation is rejected even though write tools are visible | Use an API key with the required scoped permission |
| A proposal token expires or is reused | confirm_action does not execute the mutation | Start a new proposal and confirm it once within five minutes |
| A project or global MCP definition is deleted | Referencing workflows lose the configured outbound MCP server; global deletion affects all linked projects | Check references before deletion and recreate or reassign the definition |
| MCP configuration is not valid JSON | The settings page does not save the definition | Correct the JSON before saving |
| Registry trust state rolls back or conflicts with an accepted revision | The release is not installed, so a stale or conflicting catalogue cannot replace trusted state | Refresh the authenticated keyset and catalogue through the registry boundary |
| A signed artifact, package, or local receipt fails verification | The plugin is not activated or is ignored during discovery | Use the release and platform recorded by the trusted registry |
| A repository URL, ref, path, manifest, or bounded build is invalid | The repository plugin is not built or installed | Use a supported GitHub source and a valid plugin package |
| A repository plugin is already installed from another source | The requested install is rejected instead of replacing the existing source | Update the existing source or uninstall it before changing source type |
| A repository install reaches progress capacity or reuses a progress ID | The install cannot reserve a progress record or the poller sees the wrong operation | Use one UUID per install and retry after finished records expire or are evicted |
| Plugin uses a different startup protocol | Temps refuses the plugin before it is mounted | Rebuild the binary with the matching plugin SDK |
| A candidate fails startup verification | The new release is rejected and the previous active process remains in service | Treat startup and channel verification as prerequisites for promotion |
A public_paths route lacks its own credential check | The route is reachable without a Temps session | List only routes that perform their own authentication |
Plugin UI does not serve /ui/ or sends an invalid route message | The embedded page fails to load or its deep link does not track the console URL | Serve the UI endpoint and use the supported hash or temps:route contract |
| Actor token is missing, expired, revoked, or bound to another plugin | A plugin platform API call fails closed | Serve the request through a valid caller and declared capability |
| A plugin uses a host operation without the needed grant | The channel rejects the operation or the SDK returns a platform error | Declare the narrow host permission and check effective grants before use |
| A plugin route has no actor token | The SDK cannot create a caller-bound platform API client | Use an authenticated caller path when the route needs user-scoped API access |
| The plugin channel closes during a request | Pending SDK calls fail instead of returning platform data | Handle channel errors and allow the plugin runtime to reconnect or restart the integration |
| Plugin declares events but no job queue is available | The plugin starts without event delivery | Provide the queue integration before relying on event subscriptions |
| Custom webhook is unavailable or returns an error | The MCP proxy returns a tool error to the AI client | Keep the webhook reachable and return the expected content shape |
Key files
| File | Why to read it |
|---|---|
| crates/…/lib.rs | Shows the MCP server's place in the main HTTP application and its public versus authenticated routes |
| crates/…/handlers.rs | Shows the MCP request flow, permission gates, tool filtering, and write dispatch |
| crates/…/registry.rs | Defines the MCP group taxonomy and tool exposure rules |
| apps/…/index.ts | Shows how users enable MCP and configure supported AI clients |
| web/…/McpServersSettings.tsx | Shows how project-scoped MCP definitions are created, edited, assigned, and removed |
| web/…/GlobalMcpServerDetail.tsx | Shows how shared MCP definitions are inspected, edited, and removed across projects |
| crates/…/lib.rs | Defines the sandbox custom-tool MCP proxy and webhook contract |
| crates/…/executor.rs | Shows how agent runs receive MCP server and custom-tool configuration |
| crates/…/manifest.rs | Defines the canonical plugin manifest, capabilities, events, and handshake messages |
| crates/…/channel.rs | Defines the typed platform channel and its stable DTOs |
| crates/…/client.rs | Shows the typed plugin client for platform data, host grants, AI generation, and delegated API calls |
| crates/…/context.rs | Shows the plugin runtime context and its optional host capabilities |
| crates/…/plugin-dev-probe.rs | Demonstrates a small plugin that queries the host, serves UI routes, and handles duplicate-safe event delivery |
| crates/…/handler.rs | Defines the administrator-facing catalog, install, update, uninstall, reload, grants, status, and progress contracts |
| crates/…/install.rs | Defines verified release activation, source receipts, trust state, and active-install discovery |
| crates/…/install_progress.rs | Defines the bounded, safe progress state exposed during repository installs |
| crates/…/repository.rs | Shows how an exact GitHub commit becomes a bounded plugin build and provenance record |
| crates/…/source_catalog.rs | Defines the display-only GitHub source catalog and platform filtering rules |
| crates/…/service.rs | Coordinates plugin selection, installation, candidate promotion, source conflicts, and runtime refresh |
| crates/…/manager.rs | Explains verified plugin discovery, startup, health checks, reload, and shutdown |
| crates/…/proxy.rs | Defines external plugin route forwarding and caller-header protection |
| crates/…/host_api.rs | Shows how plugin calls enter the real platform router with current authorization |
| crates/…/event_listener.rs | Shows how platform jobs become plugin events and how delivery falls back to HTTP |
| web/…/PluginPage.tsx | Shows how the console embeds plugin UI and keeps plugin routes in sync with deep links |
| crates/…/lib.rs | Defines the plugin author contract and lifecycle hooks |
| crates/…/runtime.rs | Shows the staged plugin startup and authenticated socket runtime |
| docs/…/external-plugin-sdk-boundary.md | States the trust model and the security boundary for installed plugins |