Skip to content

[FEATURE] Standalone apm mcp export --runtime <target> command #1868

Description

@danielmeppiel

Summary

Split out from #20 as a focused residual. Today APM generates runtime MCP config (.vscode/mcp.json, ~/.copilot/mcp-config.json, Codex TOML, Claude, Cursor, Gemini, OpenCode, IntelliJ) only as a side effect of apm install. There is no way to (re)generate runtime config on demand without running a full install.

The MCP subcommand surface at HEAD is install | search | show | list only -- no export (verified: grep for export across src/apm_cli/commands/mcp.py and src/apm_cli/install/mcp/ returns nothing).

Ask

A standalone command, e.g.:

apm mcp export --runtime vscode
apm mcp export --runtime copilot --runtime codex

that materializes runtime config from the already-resolved apm.yml + lockfile, without re-resolving/installing dependencies.

Why

  • @TechWatching and enterprise evaluators ([FEATURE] Extended MCP Server Configuration in apm.yml #20 thread) want to regenerate per-runtime config deterministically (CI, onboarding, drift repair) decoupled from the install lifecycle.
  • The underlying per-runtime writers already exist (adapter layer). This is largely surfacing existing generation as a first-class command.

Design notes (light)

Context

Parent: #20. The bulk of #20's extended-config ask shipped in v0.8.0; this is one of two genuine residuals.

Metadata

Metadata

Assignees

Labels

area/cliCLI command surface, flags, help text (cross-cutting).area/mcp-configMCP server configuration depth, transports, variable resolution.priority/highShips in current or next milestonestatus/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.type/featureNew capability, new flag, new primitive.

Type

No type
No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions