Skip to content

docs(agents): document agents CLI/SDK/MCP and drop stale references#4111

Merged
saddlepaddle merged 1 commit intomainfrom
docs/agents-cli-sdk-mcp
May 5, 2026
Merged

docs(agents): document agents CLI/SDK/MCP and drop stale references#4111
saddlepaddle merged 1 commit intomainfrom
docs/agents-cli-sdk-mcp

Conversation

@saddlepaddle
Copy link
Copy Markdown
Collaborator

@saddlepaddle saddlepaddle commented May 5, 2026

Summary

Catches the docs and the Superset CLI skill up to #4097, which added superset agents list, the SDK Agents resource (list + run), and the agents_list MCP tool — while removing listPresets and reshaping add to take the full launch row.

Changes

Skill (skills/superset/SKILL.md, hardlinked to plugins/superset/skills/superset/SKILL.md):

  • Drop the superset agents list --local --presets example — that flag was removed when the preset catalog stopped being a runtime API resource. An agent following the skill verbatim would hit "Unknown option: --presets".

CLI reference (apps/docs/content/docs/cli/cli-reference.mdx):

MCP doc (apps/docs/content/docs/mcp.mdx):

SDK reference (apps/docs/content/docs/sdk/reference.mdx):

  • Removed the stale **TODO** Callout in workspaces.create claiming the SDK sends a minimal agentConfig: { id: 'claude', kind: 'terminal' }. The SDK now uses the v2 host-service launch shape directly ({ agent: string, prompt, attachmentIds }).
  • New ## agents section documenting client.agents.list({ hostId }) and client.agents.run({ workspaceId, agent, prompt, attachmentIds? }, { hostId? }).

SDK advanced (apps/docs/content/docs/sdk/advanced.mdx):

  • Removed the matching stale **TODO** Callout above the Sentry → agent recipe.

Out of scope

  • Updating apps/docs/content/docs/agent-integration.mdx to reflect the V2 Settings → Agents UI fields (command, args, promptTransport, promptArgs, env) instead of the V1 fields it currently lists. Tangled with the V1/V2 split and probably wants UI screenshots refreshed; deserves its own pass.

Test plan

  • bun run lint clean
  • Eyeball the rendered docs site (bun run dev in apps/docs) to confirm the new Command blocks render correctly and the new ## agents section anchors work.

Summary by cubic

Documents the Agents surface across CLI, SDK, and MCP, and removes stale flags and TODOs. Brings docs in line with superset agents list/run and the SDK Agents resource.

  • Docs
    • CLI: Add agents section with superset agents list and superset agents run (output shape, examples).
    • SDK: Add agents.list({ hostId }) and agents.run({ workspaceId, agent, prompt, attachmentIds? }, { hostId? }). Update workspaces.create to describe the v2 launch shape; remove outdated TODOs.
    • MCP: Add agents_list and agents_run; remove projects_create (no such tool).
    • Skill: Remove --presets example from superset agents list (flag no longer exists).

Written for commit 2b995d4. Summary will update on new commits.

Summary by CodeRabbit

Documentation

  • Added CLI command documentation for superset agents list and superset agents run
  • Documented new agents tools and updated SDK reference to reflect agents functionality across CLI, SDK, and MCP interfaces
  • Updated skill documentation for agents management commands
  • Removed outdated placeholder documentation from SDK reference

Catches the docs and skill up to PR #4097 (which added `superset agents
list`, the SDK `Agents` resource, and the `agents_list` MCP tool, and
demoted listPresets to a static UI const).

- skills/superset/SKILL.md: drop the `superset agents list --local --presets` line — that flag was removed when the catalog stopped being a runtime API resource.
- apps/docs/content/docs/cli/cli-reference.mdx: add a new `### agents` section with `superset agents list` and `superset agents run` Command blocks (the run command was never documented).
- apps/docs/content/docs/mcp.mdx: add a new `### Agents` table row covering `agents_list` and `agents_run`; remove the spurious `projects_create` row (no such MCP tool exists in `register.ts`).
- apps/docs/content/docs/sdk/reference.mdx: drop the stale `**TODO**` Callout in `workspaces.create` that claimed the SDK sends a minimal `agentConfig: { id: 'claude', kind: 'terminal' }`. The SDK now uses the v2 host-service launch shape directly. Add a new `## agents` section documenting `client.agents.list` and `client.agents.run`.
- apps/docs/content/docs/sdk/advanced.mdx: drop the same stale `**TODO**` Callout above the Sentry recipe.

Style notes for the new entries: CLI Command `output` blocks use inline structural literals (matches `hosts list` / `workspaces list`), MCP table descriptions are terse single-clauses (matches `tasks_*` / `workspaces_*`).
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 5, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

Documentation for a new agents feature is added across multiple surfaces: CLI reference, MCP tools, SDK API reference, and skill documentation. A legacy callout is removed from SDK advanced documentation.

Changes

Agents Feature Documentation

Layer / File(s) Summary
Core API Documentation
apps/docs/content/docs/sdk/reference.mdx
Added comprehensive Agents section under Hosts documenting agents.list() and agents.run() methods, their parameters, return types, and examples. Updated workspaces.create() documentation to describe the agents parameter and how agent IDs are resolved.
CLI Reference Documentation
apps/docs/content/docs/cli/cli-reference.mdx
Added new "agents" section documenting superset agents list and superset agents run commands with options, outputs, and usage examples.
MCP Tools Documentation
apps/docs/content/docs/mcp.mdx
Added new "Agents" section documenting two MCP tools: agents_list and agents_run with brief descriptions.
Skill Documentation
skills/superset/SKILL.md
Updated Agents section to remove --presets flag from local agents listing command, changing from superset agents list --local --presets to superset agents list --local.
Documentation Cleanup
apps/docs/content/docs/sdk/advanced.mdx
Removed outdated Callout block that documented intended future API shorthand after the Sentry webhook header.

🎯 2 (Simple) | ⏱️ ~15 minutes

🐰 New agents hop into the docs today,
Listed and running in their very own way,
Tools, APIs, and CLI commands shine bright,
While old TODOs fade into the night! 🌙

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: documenting agents across CLI/SDK/MCP and removing stale references.
Description check ✅ Passed The PR description is comprehensive, addressing all required sections with clear explanations of changes, scope, and test plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/agents-cli-sdk-mcp

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@saddlepaddle saddlepaddle merged commit c04c95a into main May 5, 2026
15 of 16 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

🚀 Preview Deployment

🔗 Preview Links

Service Status Link
Neon Database (Neon) View Branch
Vercel API (Vercel) Open Preview
Vercel Web (Vercel) Open Preview
Vercel Marketing (Vercel) Open Preview
Vercel Admin (Vercel) Open Preview
Vercel Docs (Vercel) Open Preview

Preview updates automatically with new commits

@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 5, 2026

Greptile Summary

Documentation-only PR that brings the CLI reference, MCP tool table, SDK reference, SDK advanced guide, and the Superset skill up to date with the agent changes introduced in #4097. All claimed additions and removals were verified against the live source (packages/mcp-v2/src/tools/register.ts, packages/sdk/src/resources/agents.ts).

  • CLI (cli-reference.mdx): New ### agents section documents superset agents list and superset agents run with correct output shapes and flags; flag constraint description is slightly asymmetric (see inline comment).
  • MCP (mcp.mdx): Adds agents_list/agents_run rows (both confirmed registered) and removes the never-existing projects_create row — a pre-existing documentation bug now fixed.
  • SDK (reference.mdx, advanced.mdx) and Skill (SKILL.md): Stale TODO callouts and the removed --presets flag example are cleanly dropped; new ## agents section matches the actual Agents class signatures (list, run) exactly.

Confidence Score: 4/5

All documentation changes are consistent with the actual source code; the only open item is a minor flag description asymmetry that does not affect correctness.

Every claimed addition was verified against the live implementation. The removal of projects_create and --presets accurately reflects code that no longer exists. The HostAgentConfig field list in the CLI output block exactly matches the TypeScript interface. The one cosmetic gap — --host's description not mentioning the mutual-exclusivity constraint — is easy to overlook but doesn't cause any incorrect behavior.

apps/docs/content/docs/cli/cli-reference.mdx — the --host flag description could mention mutual exclusivity to match the --local entry. All other files are straightforward and accurate.

Important Files Changed

Filename Overview
apps/docs/content/docs/cli/cli-reference.mdx Adds agents list and agents run Command blocks with correct output shapes and flag definitions; minor asymmetry in the --host mutual-exclusivity note.
apps/docs/content/docs/mcp.mdx Adds agents_list/agents_run table row (verified in register.ts) and removes stale projects_create row (not present in register.ts); accurate.
apps/docs/content/docs/sdk/reference.mdx Replaces stale TODO callout with accurate inline description; new agents section matches agents.ts signatures for list and run exactly.
apps/docs/content/docs/sdk/advanced.mdx Removes outdated TODO callout about stale agentConfig shape; no functional logic changed.
skills/superset/SKILL.md Drops the --presets flag example that was removed in #4097; remaining examples are accurate.

Sequence Diagram

sequenceDiagram
    participant User
    participant CLI/SDK/MCP
    participant CloudAPI
    participant RelayTunnel
    participant HostService

    User->>CLI/SDK/MCP: agents list (--local | --host id)
    CLI/SDK/MCP->>RelayTunnel: settings.agentConfigs.list
    RelayTunnel->>HostService: query agentConfigs
    HostService-->>RelayTunnel: Array HostAgentConfig
    RelayTunnel-->>CLI/SDK/MCP: Array HostAgentConfig
    CLI/SDK/MCP-->>User: agent rows

    User->>CLI/SDK/MCP: agents run (workspaceId, agent, prompt)
    CLI/SDK/MCP->>CloudAPI: v2Workspace.getFromHost (lookup hostId)
    CloudAPI-->>CLI/SDK/MCP: hostId
    CLI/SDK/MCP->>RelayTunnel: agents.run mutation
    RelayTunnel->>HostService: start agent session
    HostService-->>RelayTunnel: sessionId + label
    RelayTunnel-->>CLI/SDK/MCP: sessionId + label
    CLI/SDK/MCP-->>User: sessionId + label
Loading
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
apps/docs/content/docs/cli/cli-reference.mdx:502-503
**Asymmetric constraint description on mutually exclusive flags**

Only the `--local` option description says "Mutually exclusive with --host; exactly one is required." The `--host` description is silent about the constraint. A reader who only skims the `--host` row won't know that omitting both flags is an error, which could cause confusion when the command rejects bare invocations like `superset agents list`. Consider adding the mutual-exclusivity note to the `--host` description as well, to mirror the pattern used in the `--local` entry.

Reviews (1): Last reviewed commit: "docs(agents): document agents CLI/SDK/MC..." | Re-trigger Greptile

Comment on lines +502 to +503
{ flag: "--host <id>", description: "Target host machineId." },
{ flag: "--local", description: "Target this machine. Mutually exclusive with --host; exactly one is required." },
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Asymmetric constraint description on mutually exclusive flags

Only the --local option description says "Mutually exclusive with --host; exactly one is required." The --host description is silent about the constraint. A reader who only skims the --host row won't know that omitting both flags is an error, which could cause confusion when the command rejects bare invocations like superset agents list. Consider adding the mutual-exclusivity note to the --host description as well, to mirror the pattern used in the --local entry.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/docs/content/docs/cli/cli-reference.mdx
Line: 502-503

Comment:
**Asymmetric constraint description on mutually exclusive flags**

Only the `--local` option description says "Mutually exclusive with --host; exactly one is required." The `--host` description is silent about the constraint. A reader who only skims the `--host` row won't know that omitting both flags is an error, which could cause confusion when the command rejects bare invocations like `superset agents list`. Consider adding the mutual-exclusivity note to the `--host` description as well, to mirror the pattern used in the `--local` entry.

How can I resolve this? If you propose a fix, please make it concise.

saddlepaddle added a commit that referenced this pull request May 6, 2026
…4111)

Catches the docs and skill up to PR #4097 (which added `superset agents
list`, the SDK `Agents` resource, and the `agents_list` MCP tool, and
demoted listPresets to a static UI const).

- skills/superset/SKILL.md: drop the `superset agents list --local --presets` line — that flag was removed when the catalog stopped being a runtime API resource.
- apps/docs/content/docs/cli/cli-reference.mdx: add a new `### agents` section with `superset agents list` and `superset agents run` Command blocks (the run command was never documented).
- apps/docs/content/docs/mcp.mdx: add a new `### Agents` table row covering `agents_list` and `agents_run`; remove the spurious `projects_create` row (no such MCP tool exists in `register.ts`).
- apps/docs/content/docs/sdk/reference.mdx: drop the stale `**TODO**` Callout in `workspaces.create` that claimed the SDK sends a minimal `agentConfig: { id: 'claude', kind: 'terminal' }`. The SDK now uses the v2 host-service launch shape directly. Add a new `## agents` section documenting `client.agents.list` and `client.agents.run`.
- apps/docs/content/docs/sdk/advanced.mdx: drop the same stale `**TODO**` Callout above the Sentry recipe.

Style notes for the new entries: CLI Command `output` blocks use inline structural literals (matches `hosts list` / `workspaces list`), MCP table descriptions are terse single-clauses (matches `tasks_*` / `workspaces_*`).
@Kitenite Kitenite deleted the docs/agents-cli-sdk-mcp branch May 6, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant