Describe the bug
When a package declares MCP dependencies in its apm.yml, those dependencies are not propagated to consumer projects that depend on it transitively. After apm install, the consumer has no MCP server configuration, even though a transitive dependency explicitly declares one.
This is the MCP counterpart of the transitive APM dependency issue fixed in PR #111 — APM now correctly resolves transitive apm: dependencies, but mcp: dependencies declared in transitive packages are silently dropped.
To Reproduce
- Create a skill package with an MCP dependency:
name: skill-with-mcp
dependencies:
apm: []
mcp:
- name: my-mcp
type: sse
url: https://my-mcp-server.example.com/sse
- Create a bundle package that depends on the skill:
name: bundle
dependencies:
apm:
- org/repo/skill-with-mcp
mcp: []
- Create a consumer project that depends on the bundle:
name: my-project
dependencies:
apm:
- org/repo/bundle
mcp: []
- Run
apm install --verbose
- Observe that
skill-with-mcp is resolved and installed (skills + instructions), but its MCP dependency is not configured in the consumer project
- Output confirms: "No MCP dependencies found in apm.yml"
Expected behavior
apm install should collect MCP dependencies from all resolved transitive packages and merge them into the consumer project's MCP configuration (e.g., .vscode/mcp.json), just as it already does for directly declared MCP dependencies.
Environment (please complete the following information):
- OS: macOS
- Python Version: 3.12
- APM Version: v0.7.3 (main @
1849009)
Logs
Install output shows the transitive package resolved but no MCP setup:
✓ org/repo/skill-with-mcp (cached)
└─ 1 skill(s) integrated → .github/skills/
└─ 1 instruction(s) ready (compile via `apm compile`)
...
No MCP dependencies found in apm.yml
Additional context
Describe the bug
When a package declares MCP dependencies in its
apm.yml, those dependencies are not propagated to consumer projects that depend on it transitively. Afterapm install, the consumer has no MCP server configuration, even though a transitive dependency explicitly declares one.This is the MCP counterpart of the transitive APM dependency issue fixed in PR #111 — APM now correctly resolves transitive
apm:dependencies, butmcp:dependencies declared in transitive packages are silently dropped.To Reproduce
apm install --verboseskill-with-mcpis resolved and installed (skills + instructions), but its MCP dependency is not configured in the consumer projectExpected behavior
apm installshould collect MCP dependencies from all resolved transitive packages and merge them into the consumer project's MCP configuration (e.g.,.vscode/mcp.json), just as it already does for directly declared MCP dependencies.Environment (please complete the following information):
1849009)Logs
Install output shows the transitive package resolved but no MCP setup:
Additional context
apm.yml