From 26caeb01a26496cf2e492c5a1c241dc3cf5da3e0 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 01:40:38 +0100 Subject: [PATCH 1/4] feat(skills): mcp-import, mcp-apps, skill-import and tool-authoring families (lot 10c, part 2) --- .changeset/tool-docs-mcp-skills-authoring.md | 5 + packages/runtime/src/tool-docs/index.ts | 8 ++ packages/runtime/src/tool-docs/legacy.ts | 58 +++++++--- packages/runtime/src/tool-docs/mcp-apps.ts | 50 ++++++++ packages/runtime/src/tool-docs/mcp-import.ts | 108 ++++++++++++++++++ .../runtime/src/tool-docs/skill-import.ts | 59 ++++++++++ .../runtime/src/tool-docs/tool-authoring.ts | 104 +++++++++++++++++ 7 files changed, 374 insertions(+), 18 deletions(-) create mode 100644 .changeset/tool-docs-mcp-skills-authoring.md create mode 100644 packages/runtime/src/tool-docs/mcp-apps.ts create mode 100644 packages/runtime/src/tool-docs/mcp-import.ts create mode 100644 packages/runtime/src/tool-docs/skill-import.ts create mode 100644 packages/runtime/src/tool-docs/tool-authoring.ts diff --git a/.changeset/tool-docs-mcp-skills-authoring.md b/.changeset/tool-docs-mcp-skills-authoring.md new file mode 100644 index 000000000..a69b6b137 --- /dev/null +++ b/.changeset/tool-docs-mcp-skills-authoring.md @@ -0,0 +1,5 @@ +--- +"@agentproto/runtime": patch +--- + +Document the imported MCP, MCP Apps host, imported skill and tool authoring tool families for the generated skill reference, and remove those tools from the undocumented legacy list. diff --git a/packages/runtime/src/tool-docs/index.ts b/packages/runtime/src/tool-docs/index.ts index 4e30bd190..b37dcd603 100644 --- a/packages/runtime/src/tool-docs/index.ts +++ b/packages/runtime/src/tool-docs/index.ts @@ -41,6 +41,10 @@ import { sessionArtifactsToolDoc } from "./session-artifacts.js" import { sessionControlToolDoc } from "./session-control.js" import { sessionFollowsToolDoc } from "./session-follows.js" import { sessionObserveToolDoc } from "./session-observe.js" +import { mcpAppsToolDoc } from "./mcp-apps.js" +import { mcpImportToolDoc } from "./mcp-import.js" +import { skillImportToolDoc } from "./skill-import.js" +import { toolAuthoringToolDoc } from "./tool-authoring.js" import type { ToolFamilyDoc } from "./types.js" import { worktreeToolDoc } from "./worktree.js" @@ -70,6 +74,10 @@ export const TOOL_FAMILY_DOCS: readonly ToolFamilyDoc[] = [ appToolDoc, appDataToolDoc, appUiToolDoc, + mcpAppsToolDoc, + mcpImportToolDoc, + skillImportToolDoc, + toolAuthoringToolDoc, accountHealthToolDoc, accountSlotsToolDoc, branchGcToolDoc, diff --git a/packages/runtime/src/tool-docs/legacy.ts b/packages/runtime/src/tool-docs/legacy.ts index 62b41604d..418d053d3 100644 --- a/packages/runtime/src/tool-docs/legacy.ts +++ b/packages/runtime/src/tool-docs/legacy.ts @@ -34,9 +34,6 @@ export const LEGACY_UNDOCUMENTED_TOOLS: readonly DaemonToolName[] = [ "conversation_export", "conversation_locate", "conversation_read", - "create_agent", - "create_tool", - "created_tool_call", "daemon_health", "decision_collect_evidence", "decision_decide", @@ -46,7 +43,6 @@ export const LEGACY_UNDOCUMENTED_TOOLS: readonly DaemonToolName[] = [ "decision_stage_escalate", "decision_stage_rules", "decision_validate_verdict", - "delete_tool", "directory_create", "directory_list", "fetch_page", @@ -67,16 +63,6 @@ export const LEGACY_UNDOCUMENTED_TOOLS: readonly DaemonToolName[] = [ "llm_endpoint_start", "llm_endpoint_status", "llm_endpoint_stop", - "mcp_app_tool_call", - "mcp_app_ui_index", - "mcp_app_ui_read", - "mcp_discovered_list", - "mcp_import", - "mcp_imported_call", - "mcp_imported_list", - "mcp_imported_remove", - "mcp_imported_status", - "mcp_imported_tool_list", "reach_send", "remote_disable", "remote_enable", @@ -90,10 +76,46 @@ export const LEGACY_UNDOCUMENTED_TOOLS: readonly DaemonToolName[] = [ "sandbox_gc", "sandbox_list", "self_inspect", - "skill_import", - "skill_imported_list", - "skill_imported_remove", - "skill_resync", +<<<<<<< HEAD +======= + "session_artifact_add", + "session_artifact_get", + "session_artifact_list", + "session_artifact_pin", + "session_bg_task_tail", + "session_capabilities", + "session_command_self", + "session_commands", + "session_context_status", + "session_events_poll", + "session_evidence", + "session_flag_status", + "session_follow", + "session_follows", + "session_judge_jev", + "session_labels", + "session_list", + "session_monitor", + "session_queue_deliver", + "session_queue_drop", + "session_queue_list", + "session_queue_promote", + "session_recap", + "session_rename", + "session_reorder_pinned", + "session_role_refresh", + "session_role_watch", + "session_screencast_frame", + "session_search", + "session_set_pinned", + "session_stats", + "session_transcript", + "session_tree", + "session_unfollow", + "session_usage", + "sessions_report", + "summarize_session", +>>>>>>> 021bbf5ec (feat(skills): mcp-import, mcp-apps, skill-import and tool-authoring families (lot 10c, part 2)) "telegram_bot_set_webhook", "telegram_bot_token_set", "telegram_bot_token_status", diff --git a/packages/runtime/src/tool-docs/mcp-apps.ts b/packages/runtime/src/tool-docs/mcp-apps.ts new file mode 100644 index 000000000..81ee0c5ed --- /dev/null +++ b/packages/runtime/src/tool-docs/mcp-apps.ts @@ -0,0 +1,50 @@ +import { defineToolFamilyDoc } from "./types.js" + +/** + * Sources: `mcp-app-host-tools.ts` (the three tools), `mcp-apps-host.ts` + * (resolution, caching), `tool-profiles.ts` (profiles). + */ +export const mcpAppsToolDoc = defineToolFamilyDoc({ + family: "mcp-apps", + title: "MCP Apps host (UI of other MCP servers)", + summary: + "Host the interactive UI an MCP server ships: find which of its tools declare a `ui://` view, read the view, and relay the view's own tool calls.", + whenToUse: [ + "A session used an MCP server whose tools declare a UI and a client needs to render it.", + "A rendered MCP App iframe asks to call a tool of its server.", + ], + workflow: [ + "Call `mcp_app_ui_index {sessionId, server}` with the server name as the harness shows it (`acme` in `mcp__acme__...`); read `tools[]` for `resourceUri` values.", + "Call `mcp_app_ui_read` with one of those `resourceUri` values to get the HTML and its `csp` and `permissions`.", + "When the iframe calls a tool, forward it with `mcp_app_tool_call`, passing the `originToolCallId` of the card that hosts the iframe.", + ], + cliCommands: [], + seeAlso: ["mcp-import", "app-ui"], + tools: { + mcp_app_ui_index: { + effect: "read", + examples: [{ label: "Find the UI tools of a server", args: { sessionId: "sess_example", server: "acme" }, outcome: "Returns `{server, status, tools, appOnlyTools, allToolNames, notAppVisibleTools}`; `status` is `ok`, `unresolved`, `unreachable` or `auth_required`." }], + returns: "`tools[]` with their `resourceUri`, and `status`.", + pitfalls: [ + "The server is looked up in the session's scope in this order: session config, project, user, imports.", + "The result is cached; a failure is retried at most once a minute, and failures are reported in-band (`status`, `error`), never as a tool error.", + ], + }, + mcp_app_ui_read: { + effect: "read", + examples: [{ label: "Read one view", args: { sessionId: "sess_example", server: "acme", resourceUri: "ui://acme/dashboard" }, outcome: "Returns `{resourceUri, html, mimeType, csp?, permissions?, prefersBorder?, domain?}`." }], + returns: "`html` and the `csp` and `permissions` the iframe must be sandboxed with.", + pitfalls: ["Only a `resourceUri` that `mcp_app_ui_index` returned for that server is accepted; anything else comes back as `{error, status}`."], + }, + mcp_app_tool_call: { + effect: "external", + examples: [{ label: "Relay an iframe's tool call", args: { sessionId: "sess_example", server: "acme", tool: "refresh_data", args: { id: 1 }, originToolCallId: "toolu_example" }, outcome: "Returns the upstream result verbatim; the call is recorded on the session as `mcp_app_tool_call`." }], + returns: "The upstream `CallToolResult`, or `{isError: true, content}` when refused.", + pitfalls: [ + "It is for calls made by the UI, not by the model.", + "`tool` must be visible to apps (`_meta.ui.visibility` does not exclude `app`; the default is model and app) or be the tool whose card hosts the iframe; `tool` is the server's own name, not namespaced.", + "Like `mcp_imported_call`, it has no per-call permission check beyond that visibility rule.", + ], + }, + }, +}) diff --git a/packages/runtime/src/tool-docs/mcp-import.ts b/packages/runtime/src/tool-docs/mcp-import.ts new file mode 100644 index 000000000..7ac4fe198 --- /dev/null +++ b/packages/runtime/src/tool-docs/mcp-import.ts @@ -0,0 +1,108 @@ +import { defineToolFamilyDoc } from "./types.js" + +/** + * Sources: `session-tools.ts` (all seven tools), `mcp-imports.ts` (allow-list), + * `tool-profiles.ts` (profiles), `commands/mcp.ts` in the CLI (verbs). + */ +export const mcpImportToolDoc = defineToolFamilyDoc({ + family: "mcp-import", + title: "Imported MCP servers", + summary: + "Find MCP servers already configured in other agent tools, import the ones the user wants into the daemon, then list their tools and call them through the daemon.", + whenToUse: [ + "The user has an MCP server set up in another tool (claude-code, cursor, goose) and you want to use it without asking them to configure it again.", + "List, call or remove the MCP servers the daemon already imported.", + "Check which imported servers are connected and how many tools each exposes.", + ], + workflow: [ + "Call `mcp_discovered_list` and pick an entry; its `id` is the `sourceMcpId`.", + "After the user agrees, call `mcp_import {sourceMcpId}`; the import is keyed by that id and has an `alias`.", + "Call `mcp_imported_tool_list {alias, full: true}` to read each tool's `inputSchema`, then `mcp_imported_call {alias, toolName, args}`.", + "Check the connection with `mcp_imported_status`; remove with `mcp_imported_remove {id}`.", + ], + cliCommands: [ + { + verb: "mcp", + command: "agentproto mcp mount-default claude-code ", + note: "Makes every future spawn of that adapter mount the given imports natively, with their own tool names. No MCP tool.", + }, + { + verb: "mcp", + command: "agentproto mcp migrate-secrets", + note: "Dry run by default: moves header and env secrets of imports into the keychain (`--apply` to do it). No MCP tool.", + }, + ], + seeAlso: ["mcp-apps", "skill-import", "app-ui"], + tools: { + mcp_discovered_list: { + effect: "read", + examples: [ + { label: "List what other tools configured", args: {}, outcome: "Compact entries `{id, source, scope, name, type}` from claude-code, cursor and goose." }, + { label: "Full entries", args: { full: true, limit: 20 }, outcome: "Adds command, args, env, headers and url; may contain secrets, so avoid logging it." }, + ], + returns: "`mcps[].id`, to pass as `sourceMcpId` to `mcp_import`; `nextCursor` for more.", + pitfalls: ["Read-only: it never changes the other tools' config. Ids contain the source scope and path, so copy them exactly."], + }, + mcp_import: { + effect: "write", + examples: [ + { label: "Import a discovered server", args: { sourceMcpId: "claude-code:project:/path/to/repo:chrome-devtools" }, outcome: "Stores a snapshot and returns the entry (`id`, `alias`, `addedAt`, snapshot), plus `warnings` when something was off." }, + { label: "Import with a tool allow-list", args: { sourceMcpId: "claude-code:project:/path/to/repo:chrome-devtools", alias: "devtools", allowTools: ["list_*", "take_snapshot"] }, outcome: "Only matching tools are visible and callable through every path to this import." }, + ], + returns: "The entry's `id` (for `mcp_imported_remove`) and `alias` (for `mcp_imported_tool_list` and `mcp_imported_call`).", + pitfalls: [ + "Ask the user first: importing lets the daemon run that server's command or reach its URL on your behalf. The tool itself does not ask.", + "The id must come from a fresh `mcp_discovered_list`; an unknown id is refused.", + "Re-importing without `allowTools` keeps the existing list; the pooled connection is dropped so the next read reconnects.", + "`allowTools` accepts exact names or `*` patterns.", + ], + }, + mcp_imported_list: { + effect: "read", + examples: [ + { label: "List imports", args: {}, outcome: "Compact entries `{id, alias, addedAt, source, name, type}`." }, + { label: "Full snapshot", args: { full: true }, outcome: "Includes the snapshot (command, args, env, headers)." }, + ], + returns: "`imports[].alias` and `.id`.", + }, + mcp_imported_status: { + effect: "read", + examples: [{ label: "See what is connected", args: {}, outcome: "Returns `{ imports }` with each import's connection status, transport type and tool count; connect errors show in `lastError`." }], + returns: "Per-import status; imports that were never used show as not yet connected.", + pitfalls: ["It is refused when the daemon runs without its MCP proxy."], + }, + mcp_imported_tool_list: { + effect: "read", + examples: [ + { label: "Names and descriptions", args: { alias: "devtools" }, outcome: "Compact `{name, description}` entries." }, + { label: "With input schemas", args: { alias: "devtools", full: true, limit: 10 }, outcome: "The upstream descriptors verbatim, `inputSchema` included." }, + ], + returns: "`tools[].name`, to pass as `toolName`, and `inputSchema` with `full: true`.", + pitfalls: [ + "The first call connects to the server; a stdio server started by `npx` takes about 1 to 2 seconds, an http or sse one under 100 ms.", + "Tools outside the import's `allowTools` are hidden.", + ], + }, + mcp_imported_call: { + effect: "external", + examples: [ + { label: "Call an upstream tool", args: { alias: "devtools", toolName: "take_snapshot", args: {} }, outcome: "Returns the upstream result verbatim, including its own `isError` flag." }, + ], + returns: "The upstream `CallToolResult` (`content`, `isError?`).", + pitfalls: [ + "`toolName` is the server's own name, not a namespaced one.", + "The daemon does not validate `args`; the upstream does, and its error comes back as the result.", + "A tool outside `allowTools`, an unknown alias or a connection failure is returned as a tool error naming the alias and tool.", + ], + }, + mcp_imported_remove: { + effect: "write", + examples: [ + { label: "Remove an unused import", args: { id: "claude-code:project:/path/to/repo:chrome-devtools" }, outcome: "Returns `{ok: true, id}`." }, + { label: "Remove one still mounted", args: { id: "claude-code:project:/path/to/repo:chrome-devtools", confirmInUse: true }, outcome: "Removes it even though live sessions mount it." }, + ], + returns: "`{ok, id}`.", + pitfalls: ["Without `confirmInUse`, an import mounted by live sessions is refused with `{error: \"import_in_use\", sessionIds}`. `id` is the import id, not the alias."], + }, + }, +}) diff --git a/packages/runtime/src/tool-docs/skill-import.ts b/packages/runtime/src/tool-docs/skill-import.ts new file mode 100644 index 000000000..bc1b8df66 --- /dev/null +++ b/packages/runtime/src/tool-docs/skill-import.ts @@ -0,0 +1,59 @@ +import { defineToolFamilyDoc } from "./types.js" + +/** + * Sources: `session-tools.ts` (the four tools), `skill-imports.ts` + * (registry, hash), `session-spawn.ts` (delivery at spawn). + */ +export const skillImportToolDoc = defineToolFamilyDoc({ + family: "skill-import", + title: "Imported skills", + summary: + "Copy a skill folder into the daemon's curated set so spawned sessions can receive it, keep the copy in step with its source, and remove it.", + whenToUse: [ + "A `SKILL.md` folder on disk should be delivered to the sessions you spawn.", + "The source of an imported skill changed and the daemon's copy must catch up.", + "See which skills the daemon holds, or remove one.", + ], + workflow: [ + "Call `skill_import {path}` with the folder that holds `SKILL.md`; the entry's `id` defaults to the frontmatter `name`.", + "Spawn a session with that id in its `skills` list (for example `agent_start {skills: [id]}`); on an adapter that delivers session skills the copy is placed in its config.", + "After editing the source, call `skill_resync {id}`; `changed` says whether anything was copied.", + ], + cliCommands: [], + seeAlso: ["mcp-import"], + tools: { + skill_import: { + effect: "write", + examples: [ + { label: "Import a skill folder", args: { path: "/path/to/skills/code-review" }, outcome: "Copies the folder to the daemon's skills directory and returns the entry (`id`, `alias`, `addedAt`, `sha`)." }, + { label: "Import under another name", args: { path: "/path/to/skills/code-review", alias: "review-helper" }, outcome: "Same, but the entry and its directory are named `review-helper`." }, + ], + returns: "`id`, to pass in a spawn's `skills`, to `skill_resync` and to `skill_imported_remove`.", + pitfalls: [ + "`path` is the folder that contains `SKILL.md`, not the file.", + "`alias` must be a bare slug: lowercase letters and digits with single hyphens, at most 64 characters.", + "The copy is a snapshot: it survives the source being moved or deleted, and it does not follow edits until `skill_resync`.", + ], + }, + skill_imported_list: { + effect: "read", + examples: [ + { label: "List imported skills", args: {}, outcome: "Compact entries `{id, alias, addedAt, sha}`." }, + { label: "With source paths", args: { full: true }, outcome: "Adds `sourcePath`." }, + ], + returns: "`imports[].id`.", + }, + skill_resync: { + effect: "write", + examples: [{ label: "Pick up edits", args: { id: "code-review" }, outcome: "Returns the entry with `changed: true` after a re-copy, `changed: false` when the content hash is unchanged." }], + returns: "The entry, `changed`, and `warnings`.", + pitfalls: ["A source folder that is gone is reported as a warning and the existing copy is kept; an unknown `id` is an error."], + }, + skill_imported_remove: { + effect: "write", + examples: [{ label: "Remove a skill", args: { id: "code-review" }, outcome: "Deletes the entry and its copied folder; returns `{ok: true, id}`." }], + returns: "`{ok, id}`.", + pitfalls: ["Only the daemon's copy is deleted, never the source folder. An unknown `id` is an error."], + }, + }, +}) diff --git a/packages/runtime/src/tool-docs/tool-authoring.ts b/packages/runtime/src/tool-docs/tool-authoring.ts new file mode 100644 index 000000000..a886fce7f --- /dev/null +++ b/packages/runtime/src/tool-docs/tool-authoring.ts @@ -0,0 +1,104 @@ +import { defineToolFamilyDoc } from "./types.js" + +/** + * Sources: `create-tool-tool.ts` (create_tool, delete_tool, created_tool_call, + * limits and approval payload), `create-agent-tool.ts` (create_agent), + * `commands/agent.ts` in the CLI (`agent create`). + */ +export const toolAuthoringToolDoc = defineToolFamilyDoc({ + family: "tool-authoring", + title: "Authoring tools and agents", + summary: + "Let an agent write a new tool (a TOOL.md plus its driver) or a new agent manifest in the workspace, run the tools it wrote after a human approves each call, and delete them.", + whenToUse: [ + "A repeatable action needs its own small tool (a CLI command or an HTTP call) that does not exist yet.", + "Run a tool created with `create_tool`.", + "Write an AGENT.md for a new agent in this workspace.", + ], + workflow: [ + "The calling agent's own AGENT.md must grant `create_tool` in `actions.granted`; the daemon reads it from the session, never from the arguments.", + "Call `create_tool {id, description, driver}`; the files are written under `.agentproto/tools//` and `.agentproto/drivers//`.", + "Call `created_tool_call {id, args}` once: it is refused with the exact `approval_request` to make. Make that request, wait for the human (`approval_wait`), then repeat the call with the same `id`, the same `args` and the `approvalId`.", + "Remove a tool with `delete_tool {id}`. `create_agent` writes `.agents//AGENT.md`, optionally granting actions.", + ], + cliCommands: [ + { + verb: "agent", + command: "agentproto agent create reviewer --model claude-sonnet-5 --description \"Reviews pull requests\"", + note: "Operator-side twin of `create_agent`; `--grant ` lets the operator grant freely.", + }, + ], + seeAlso: ["approvals", "app"], + tools: { + create_tool: { + effect: "write", + examples: [ + { + label: "A CLI tool", + args: { + id: "count-lines", + description: "Count the lines of a file in the workspace.", + driver: { kind: "cli", bin: "node", argv: ["scripts/count-lines.js", "${input.path}"] }, + inputs: { type: "object", properties: { path: { type: "string" } }, required: ["path"] }, + }, + outcome: "Writes `TOOL.md` and `DRIVER.md`; returns `{id, toolPath, driverPath}`. The tool's approval class is `always`.", + }, + { + label: "An HTTP tool", + args: { id: "ping-status", description: "Read the status endpoint.", driver: { kind: "http", baseUrl: "https://example.com", method: "GET", path: "/status" } }, + outcome: "Same, with an HTTP driver.", + }, + ], + returns: "`id` for `created_tool_call` and `delete_tool`, and the two file paths.", + pitfalls: [ + "Default-denied: a caller whose AGENT.md lacks `create_tool` in `actions.granted`, or that has no manifest, is refused.", + "`id` must match `^[a-z][a-z0-9._-]{1,63}$`. A `cli` driver needs `bin` and a non-empty `argv` (stdout must be JSON; `${input.}` is replaced by that input); an `http` driver needs `baseUrl`.", + "A tool cannot be overwritten before it is 1 hour old, and `force: true` only overwrites a tool this verb wrote, never a hand-written one.", + "Writes are serialised: one create or delete at a time.", + ], + aip: [14, 30], + }, + created_tool_call: { + effect: "external", + examples: [ + { label: "First call, without an approval", args: { id: "count-lines", args: { path: "README.md" } }, outcome: "Refused with `{error: \"approval_required\", request}`; `request` is the exact `approval_request` to make (kind `created_tool_call`, payload `{tool, args, toolSha256}`)." }, + { label: "Second call, after the human approved", args: { id: "count-lines", args: { path: "README.md" }, approvalId: "apr_example" }, outcome: "Consumes the approval and runs the tool once; returns the tool's output." }, + ], + returns: "The tool's output; or `request` to pass to `approval_request`.", + pitfalls: [ + "Every call needs its own approval, whatever approval class the TOOL.md declares: the creator wrote that class and cannot relax the gate.", + "The approval is bound to the exact `id`, `args` and the tool's files; it is void if any of them changes, and it is single-use.", + "Only tools carrying the authoring marker run here; a hand-written or app-bundled TOOL.md does not.", + "The created tool does not appear as its own MCP tool; call it only through this verb.", + ], + humanGate: { + when: "Every call.", + action: "A human approves the `created_tool_call` approval raised with `approval_request` (they see the tool, the arguments and a preview of the driver).", + }, + aip: [7], + }, + delete_tool: { + effect: "write", + examples: [{ label: "Remove a created tool", args: { id: "count-lines" }, outcome: "Removes the TOOL.md and DRIVER.md pair; returns `{id, deleted}` with the removed paths." }], + returns: "`id` and the `deleted` paths.", + pitfalls: [ + "Same caller-bound `create_tool` grant as `create_tool`.", + "Refused before the tool is 1 hour old, and at most 5 deletes per agent per day.", + ], + }, + create_agent: { + effect: "write", + examples: [ + { label: "A plain agent", args: { id: "reviewer", description: "Reviews pull requests." }, outcome: "Writes `.agents/reviewer/AGENT.md` with the default model (`claude-sonnet-5`) and returns `{id, path}`." }, + { label: "An agent that may author tools", args: { id: "toolsmith", model: "claude-sonnet-5", grants: ["create_tool"] }, outcome: "Same, with `actions.granted: [create_tool]`; works only if the caller's own manifest holds that grant." }, + ], + returns: "`id` and the manifest `path`.", + pitfalls: [ + "An existing manifest is not overwritten unless `force: true`.", + "`grants` defaults to none, and a caller can only grant what its own manifest holds, so an agent cannot mint one more privileged than itself; a call with no caller identity can grant nothing.", + "A grant such as `create_tool` lets the new agent add code the daemon runs: grant it deliberately.", + ], + aip: [42], + }, + }, +}) From 325ce0c1610e0503c3034d5b83eafa9a6ed196a6 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 01:51:40 +0100 Subject: [PATCH 2/4] fix(skills): move the mcp and agent verbs from cli-verbs.json to the family docs --- packages/skill-pack-agentproto/cli-verbs.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/skill-pack-agentproto/cli-verbs.json b/packages/skill-pack-agentproto/cli-verbs.json index 9c3637736..969c46e82 100644 --- a/packages/skill-pack-agentproto/cli-verbs.json +++ b/packages/skill-pack-agentproto/cli-verbs.json @@ -20,9 +20,6 @@ "acp": { "exception": "protocol entry point started by editors, not run by an agent" }, - "agent": { - "skill": "ap-spawn-agent" - }, "brain": { "exception": "no skill presents this verb yet" }, @@ -62,9 +59,6 @@ "llm": { "exception": "no skill presents this verb yet" }, - "mcp": { - "exception": "no skill presents this verb yet" - }, "mcp-app": { "exception": "stdio MCP entry point started by clients, not run by an agent" }, From 8ceacc5966a83fd4f82b7c80574222a41bebf56b Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 02:14:08 +0100 Subject: [PATCH 3/4] docs(skills): seeAlso points at existing skills --- packages/runtime/src/tool-docs/mcp-apps.ts | 2 +- packages/runtime/src/tool-docs/mcp-import.ts | 2 +- packages/runtime/src/tool-docs/tool-authoring.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/runtime/src/tool-docs/mcp-apps.ts b/packages/runtime/src/tool-docs/mcp-apps.ts index 81ee0c5ed..cfc8600c7 100644 --- a/packages/runtime/src/tool-docs/mcp-apps.ts +++ b/packages/runtime/src/tool-docs/mcp-apps.ts @@ -19,7 +19,7 @@ export const mcpAppsToolDoc = defineToolFamilyDoc({ "When the iframe calls a tool, forward it with `mcp_app_tool_call`, passing the `originToolCallId` of the card that hosts the iframe.", ], cliCommands: [], - seeAlso: ["mcp-import", "app-ui"], + seeAlso: ["mcp-import", "ap-apps"], tools: { mcp_app_ui_index: { effect: "read", diff --git a/packages/runtime/src/tool-docs/mcp-import.ts b/packages/runtime/src/tool-docs/mcp-import.ts index 7ac4fe198..429db4f7a 100644 --- a/packages/runtime/src/tool-docs/mcp-import.ts +++ b/packages/runtime/src/tool-docs/mcp-import.ts @@ -32,7 +32,7 @@ export const mcpImportToolDoc = defineToolFamilyDoc({ note: "Dry run by default: moves header and env secrets of imports into the keychain (`--apply` to do it). No MCP tool.", }, ], - seeAlso: ["mcp-apps", "skill-import", "app-ui"], + seeAlso: ["mcp-apps", "skill-import", "ap-import-mcp", "ap-apps"], tools: { mcp_discovered_list: { effect: "read", diff --git a/packages/runtime/src/tool-docs/tool-authoring.ts b/packages/runtime/src/tool-docs/tool-authoring.ts index a886fce7f..68bd3ddd1 100644 --- a/packages/runtime/src/tool-docs/tool-authoring.ts +++ b/packages/runtime/src/tool-docs/tool-authoring.ts @@ -28,7 +28,7 @@ export const toolAuthoringToolDoc = defineToolFamilyDoc({ note: "Operator-side twin of `create_agent`; `--grant ` lets the operator grant freely.", }, ], - seeAlso: ["approvals", "app"], + seeAlso: ["approvals", "ap-apps"], tools: { create_tool: { effect: "write", From 1a43cbc592872701c3e7741eaf5e2fa3d6413037 Mon Sep 17 00:00:00 2001 From: agentiknet Date: Tue, 1 Dec 2026 03:46:15 +0100 Subject: [PATCH 4/4] fix(skills): legacy list rebuilt from main without the documented tools --- packages/runtime/src/tool-docs/legacy.ts | 40 ------------------------ 1 file changed, 40 deletions(-) diff --git a/packages/runtime/src/tool-docs/legacy.ts b/packages/runtime/src/tool-docs/legacy.ts index 418d053d3..3563c41c7 100644 --- a/packages/runtime/src/tool-docs/legacy.ts +++ b/packages/runtime/src/tool-docs/legacy.ts @@ -76,46 +76,6 @@ export const LEGACY_UNDOCUMENTED_TOOLS: readonly DaemonToolName[] = [ "sandbox_gc", "sandbox_list", "self_inspect", -<<<<<<< HEAD -======= - "session_artifact_add", - "session_artifact_get", - "session_artifact_list", - "session_artifact_pin", - "session_bg_task_tail", - "session_capabilities", - "session_command_self", - "session_commands", - "session_context_status", - "session_events_poll", - "session_evidence", - "session_flag_status", - "session_follow", - "session_follows", - "session_judge_jev", - "session_labels", - "session_list", - "session_monitor", - "session_queue_deliver", - "session_queue_drop", - "session_queue_list", - "session_queue_promote", - "session_recap", - "session_rename", - "session_reorder_pinned", - "session_role_refresh", - "session_role_watch", - "session_screencast_frame", - "session_search", - "session_set_pinned", - "session_stats", - "session_transcript", - "session_tree", - "session_unfollow", - "session_usage", - "sessions_report", - "summarize_session", ->>>>>>> 021bbf5ec (feat(skills): mcp-import, mcp-apps, skill-import and tool-authoring families (lot 10c, part 2)) "telegram_bot_set_webhook", "telegram_bot_token_set", "telegram_bot_token_status",