Skip to content
Closed
2 changes: 2 additions & 0 deletions docs/design/appserver/mcp-apps.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> **Superseded public surface.** The `mcpSession` data face in §4.4 is replaced by [Mcp.md](../../design/plugins/Mcp.md#target-contract); its client request and reply shapes stay as recorded there.

# MCP Apps host contract

Status: Draft.
Expand Down
2 changes: 2 additions & 0 deletions docs/design/appserver/mcp-management.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> **Superseded public surface.** The `mcpService` content face and the `mcp.*` connection/lease descriptions in this document are replaced by [Mcp.md](../../design/plugins/Mcp.md#target-contract). The client methods keep their current requests, replies and error codes; the old face descriptions are historical.

# MCP configuration management

Status: Draft.
Expand Down
2 changes: 2 additions & 0 deletions docs/design/appserver/mcp-oauth.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> **Superseded public surface.** The credential operations are replaced by [Mcp.md](../../design/plugins/Mcp.md#target-contract); `McpAuth` is private.

# MCP OAuth

Status: Implemented on the daemon side (maintainer review on [#111](https://github.com/arcships/dim/pull/111)) and in the native CLI (§13). Roadmap item F4
Expand Down
8 changes: 4 additions & 4 deletions docs/design/contracts/resource-owner-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ directly. The rutis binding dispatches its data arguments and returns its result
| `fileStorage`, `mentionIndex` | File tools and workspace completion use [fsHost §4](../resource-faces.md#4-fshost), including mentions. Storage clients use the owner's file and lease operations. An opened reader uses openRead/readAt/closeRead. |
| `sessionStore` | Session repository, metadata, attachments, Timeline and worktree associations use store, store.readMetadata/setTitle, sessionFiles, timelineStore and store.associateWorktree respectively. Session construction binds the existing Session-scoped timelineStore. Path import and fileId reads use the [Session files contract](../appserver/session-files.md). |
| `pluginFiles` | Scheduler uses pluginFiles.open(). EventHub retains a caller-managed scope through settlement of admitted publishes across row restarts. Both use scope.withLock and lease.read/replace for the same atomic text update. Scope.list/remove and lease.readBytes/replaceBytes have their existing contracts. |
| `settingsService` | Declared sources use settings.register/read/update/projects. PluginManager uses the owner-write form for CAS edits and applies its existing writeOnly redaction. SettingsMethods retains the local client-write path. [Settings contract](../appserver/settings-service.md#42-service-settings-owner-path). |
| `settingsService` | Declared sources use settings.register/read/update/projects. PluginManager uses the owner-write form for CAS edits and applies its existing writeOnly redaction; its target contract is [PluginManager.md](../plugins/PluginManager.md#target-contract). SettingsMethods retains the local client-write path. [Settings contract](../appserver/settings-service.md#42-service-settings-owner-path). |
| Permission, PromptSources, Skills catalog/management and execution/shell Settings → resource owners | Use the node facts and file operations in the [resource caller matrix](../resource-faces.md#6-provider-binding-and-the-owners-that-use-each-operation), including execHost.info and fsHost resolution and reads. |

## Additional public bindings
Expand Down Expand Up @@ -133,11 +133,11 @@ serves declared sources and excludes the native `mcp-secrets` document.

| Caller → Settings | Current operation and contract |
| --- | --- |
| PluginManager; declared-source consumers | Filter declarations by live loader instance using declaredBy above. Reuse settings.read/update/projects for owner edits and reads. SettingsMethods uses its client path and lists only declared sources. |
| PluginManager ([contract](../plugins/PluginManager.md#target-contract)); declared-source consumers | Filter declarations by live loader instance using declaredBy above. Reuse settings.read/update/projects for owner edits and reads. SettingsMethods uses its client path and lists only declared sources. |
| Agents create/restore, Hooks and MCP management | authorize_project(cwd,cancelled) → root registers the authorized root and publishes the existing notice. It is a write performed at trusted admission. project_root/path/sources are reads covered by settings.projects. |
| PermissionRules and CommandRules; CollaborationModelPolicy and optional Collaboration runtime | User permission and collaboration policy reads/writes. Expose the existing commandRules.read projection to rule consumers; use the policy owner's read returning {revision,policy} for Collaboration. Preserve absent-profile fallback. |
| HooksSettings and HookSources | hooks, hooks-projects and hooks-plugins. The runtime consumes sources(cwd,cancelled) → HookSourcesSnapshot. Source resolution, revisions and enablement belong to Hooks. |
| Mcp and McpPublication | mcp, mcp-projects, mcp-plugins and mcp-secrets. Publication reads effective server configuration and constructs live connections. Keep partial decoding of individual server entries and credential use at the MCP owner. |
| HooksSettings | hooks, hooks-projects and hooks-plugins. `hooksService.sources(cwd)` is the only reader; the agent-crate port is removed. Source resolution, revisions and enablement belong to Hooks. Target: [Hooks.md](../plugins/Hooks.md#target-contract). |
| Mcp ([contract](../plugins/Mcp.md#target-contract)) | mcp, mcp-projects, mcp-plugins and mcp-secrets. McpPublication is private; McpSession owns the connection generation and Mcp publishes definitions and credentials. Keep partial decoding of individual server entries and credential use at the MCP owner. |
| SkillsCatalog, Scheduler, Modality | Each registers and reads/updates its own native source. Keep the existing SkillDocument, ScheduleDocument and ModalitySettings behavior, including duplicate-job checks and validated model defaults. Their public management methods run at the feature owner. |
| Settings → sqliteStorage in the native user profile | Read the existing row; on first use import validated content and provenance atomically; replace at expected revision and publish after commit. File-backed and project settings keep their existing file path and lease behavior. |
| Sources using a declared schema → Settings | `settings.register/read/update`. |
Expand Down
2 changes: 1 addition & 1 deletion docs/design/contracts/session-boundary.md
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ existing wire shape.
4. On a RemoteGateway test entry, `session.permission.update` and `session.exec.stop` succeed.
5. A tool that a non-Rust plugin registers through `toolRegistry` is declared to the model and executed through ToolExecutor like a Rust tool; a Session without a mount list declares it with no configuration edit. A tool the Session's mount list names that no part has registered is omitted and reported in diagnostics, the Session still starts, and the tool is declared from the next request once a part registers it.
6. Progress precedes the response; progress the connection cannot take is dropped without closing the connection or losing the response; `notify` reports `gone` after disconnect.
7. With an enabled management provider that is Pending, `hello` succeeds and every other namespace works. Its names return `unknown_method` until it first registers; once its namespace is withdrawn they return `service_reloading` while its row starts or reloads and `service_unavailable` once the row is Failed or Unresolved; with a disabled row they return `unknown_method`. Once PluginManager provides `plugin.disable` (not implemented), it can turn the provider off unless its name is locked, as PluginManager's own is. Reloading a management provider neither reloads Rpc nor closes connections.
7. With an enabled management provider that is Pending, `hello` succeeds and every other namespace works. Its names return `unknown_method` until it first registers; once its namespace is withdrawn they return `service_reloading` while its row starts or reloads and `service_unavailable` once the row is Failed or Unresolved; with a disabled row they return `unknown_method`. Once `plugin.disable` ([PluginManager contract](../plugins/PluginManager.md#target-contract)) is used, it can turn the provider off unless its name is locked, as PluginManager's own is. Reloading a management provider neither reloads Rpc nor closes connections.
8. A tool's effect declarations are carried unchanged in the result the executor records on `step/tool-result`, and a result of a tool that declares nothing carries none. A declaration of an unknown kind or an invalid shape is refused at the boundary that decodes it. `ToolResult` decodes strictly, so a reader built before the field refuses the result rather than ignoring it; A.6's format decision states what each reader does.

## Appendix E. Assumptions
Expand Down
Loading