Skip to content

Bug: apm install --mcp without --transport fails with AttributeError #938

@stbenjam

Description

@stbenjam

Description

apm install --mcp <registry-ref> without --transport fails with:

'str' object has no attribute 'get'

The code path expects the MCP dependency to be a dict (with .get()), but when a bare registry reference string is passed without --transport, it remains a str.

Reproduce

apm install --mcp io.github.github/github-mcp-server

Workaround

Specify --transport explicitly:

apm install --mcp io.github.github/github-mcp-server --transport stdio

Expected behavior

apm install --mcp <ref> should either infer a default transport or provide a clear error asking the user to specify one.

Affected versions

Observed on 0.10.0. Affects all targets (not Gemini-specific).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliCLI command surface, flags, help text (cross-cutting).area/docs-sitedocs/src/content (Starlight), README, doc generation.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/bugSomething does not work as documented.

    Type

    No type

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions