Repository navigation
Description
Is your feature request related to a problem? Please describe.
APM currently supports simple MCP server references in apm.yml:
dependencies:
mcp:
- github
- nx-mcpHowever, this doesn't align with the MCP specification which requires additional configuration for enterprise deployments:
- Authorization (spec): Bearer tokens, custom headers, authentication methods
- Connection types: HTTP vs stdio transports with different parameters
- Input parameters: Runtime prompts for credentials and configuration
- Environment variables: Server-specific environment configuration
This forces users to maintain MCP configuration separately (e.g., .vscode/mcp.json), creating duplication and preventing APM packages from fully encapsulating their MCP requirements.
Describe the solution you'd like
Extend apm.yml to support MCP specification-compliant configuration:
dependencies:
mcp:
# Simple form (backward compatible)
- nx-mcp
# Extended form (new)
- name: github-enterprise
type: http
url: https://copilot-api.company.ghe.com/mcp
auth:
type: bearer
token_env: GITHUB_MCP_PAT
inputs:
- id: github_mcp_pat
type: promptString
description: "GitHub Enterprise PAT"
password: trueKey capabilities needed:
- HTTP and stdio transport configuration
- Authorization headers and tokens per MCP spec
- Input parameter definitions
- Environment variable mapping
- Export to runtime-specific formats:
apm mcp export --runtime vscode
This would enable APM packages to fully specify MCP dependencies and allow users to generate runtime configs from a single source.
Describe alternatives you've considered
- Status quo: Keep MCP config separate - but this prevents portability and creates maintenance burden
- Template generation:
apm mcp init --template enterprise- doesn't solve package portability - External config files: Reference
.apm/mcp-config.json- adds file management overhead
All alternatives require manual per-project setup, whereas inline configuration in apm.yml enables true package-based distribution.
Additional context
Enterprise scenario: Platform teams need to distribute standardized MCP configurations (GitHub Enterprise endpoints, internal tools) across multiple repositories. Currently requires maintaining configs in multiple places (APM, VS Code, scaffolding tools).
MCP Spec alignment:
- Authorization
- Capability negotiation
- VS Code implementation: .vscode/mcp.json format
Backward compatibility: Simple string references would continue working; extended config is opt-in.
Impact: Enables APM packages to fully specify MCP requirements per the MCP specification, improving enterprise adoption and reducing configuration management overhead.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
danielmeppiel commentedon Oct 30, 2025
Luke Robinson (@Vivalio) I agree with the need and pain.
Currently, APM supports installing MCP servers listed in
apm.ymlfrom a MCP spec-compliant registry. The default registry being used is the GitHub MCP Registry, but this can be overridden with an environment variable.When running
apm install, for each MCP server being installed, required environment and runtime variables are sourced from the MCP registry spec. Example for github-mcp-server here: https://api.mcp.github.com/v0/servers/search?q=github-mcp-serverToday, APM will prompt the user to provide the required values. Ideally though, if they're provided via the
apm.ymlfile as local environment variables to get the values from, they could be taken from there.Would that solve the problem from your point of view?
Vivalio commentedon Oct 30, 2025
Thanks for the fast reply Daniel Meppiel (@danielmeppiel).
So the MCP servers we specify are spec compliant. However there is a mix of public and private MCP servers.
Some more context is, we are evaluating APM as a distribution tool for copilot setup accross the whole org. This will reduce our lean on NX generators/plugins. However different teams will have different setups etc, so APMs logic seems very attractive to solve that.
If i am understanding you correctly, it sounds like a workaround could be to point directly at a private mcp registry? However i suppose our cons for that are that we have to maintain something else again, or we have a mix of public and private mcp servers that we need to somehow support pulling.
At the moment, we use the GITHUB_HOST env, to pull private APM packages fine, but have not found a clean solution to the MCP config issue.
I think the prompt for required properties is definately a help, but im not sure that would solve our issue on optional variables. For example, the github official MCP server. We want to point that to our github enterprise with data residency account (ghe domain), but the URL i believe is optional for that mcp server, also there is the required token that is injected into that config only when the optional URL is set.
I know the documntation for APM mentioned a csv for host domains, however this seemed more like a place to pull from not a configuration varience feature.
The environment variable suggestion for the
apm.ymlfile could work, however im unsure if that might cuase issues with more complex configuration like arg arrays etc?Hope this helps, happy to explain further.
danielmeppiel commentedon Oct 30, 2025
Luke Robinson (@Vivalio) happy to help and get this scenario to work, I have simply not prioritized it so far, was waiting on the MCP Registries to come alive.
Mix of public and private MCP servers: agree, I expect this to be commonplace. I was thinking larger teams and enterprises would prefer setting up a private MCP registry for proper and secure distribution and management of private MCP servers. Some vendors are starting to offer that capability as a product, such as Azure API Center for private MCP registries. Agree it can be overkill in some scenarios, so I am wondering if sourcing private MCP servers from a GitHub repo would be a good middle ground, same as for APM packages?
Managing required/optional variables for MCP servers: prompting is a quick solution (and actually it already looks for environment variables with the same name as the MCP variable coming from the registry to skip prompting and work in headless automation mode). But that does not work today with optional variables indeed. I think we have a quick win here if we allow making them "required" from
apm.ymland use the same mechanism (look up for an env var in the host to source the value from). This is to avoid hardcoding secrets inapm.ymlbut I am open to other ideas.arg arrays issue: I am not sure I visualize the problem? Ultimately, the host running apm will be able with the above mechanism to dictate what the value should be for each MCP variable?
Vivalio commentedon Nov 3, 2025
Hey Daniel Meppiel (@danielmeppiel) Sorry for the late reply.
I think that is a great idea. I like the Repo suggestion as MCP registries. I noticed there is some logic in the APM code about resolving github hosts too so i imagine it might be a good idea to support private and GHE accounts for these repos too. I do like the ide of the private MCP repo but (only my opinion) i think a lot of orgs are in an evaluate phase at the moment and might not want to jump to a full MCP enterprise solution of sorts. So in short i think your repo middle ground is a great idea.
If adding a required field in the
apm.ymlre-uses the logic you already have then that is certainly a quick win. I wonder do you imagine there could be any complications with some types of configuration fields? Such as, if a url is provided then an auth token is required, but without a url its not required? Im not sure if any quirks like that could cause an issue but just wanted to check.Feel free to ignore the arg array comment, I could have been getting a little confused at the time of reading youe initial response.
Thank you so much for the timely replies also.
TechWatching commentedon Dec 13, 2025
I just came across this issue as I wanted to install some public mcp servers that are not in GitHub MCP Registry. I understand the vision with the use of private MCP registry. Yet in my case I just want to create a package that I will share publicly, so I need to be able to specify the configuration of the MCP Servers I want to install (ideally in the same format I currently use when I manually install a mcp server in vscode for instance).
I am not sure to have understood everything you discussed about prompting optional/recommended fields. When I use GitHub MCP Server, I sometimes change the tools available directly by specifying the X-MCP-Tools header. Is it something that is or will be possible?
danielmeppiel commentedon Feb 27, 2026
Labeling
needs-design— MCP server configuration may be delivered via other means (e.g. a future plugin system, external tooling, or native IDE config). We should settle the delivery model before committing to an apm.yml schema for this.sergio-sisternes-epam commentedon Mar 6, 2026
Status update — March 2026
Since this issue was opened, APM has shipped most of the capabilities requested here. Quick rundown:
What's landed:
apm.ymlformat — object notation withname,transport,env,args,headers,tools,url,command,version,registry,packagefields. Simple string form still works (backward compatible).stdio,http,sse,streamable-httpviatransportfield.headersdict,envdict for token injection (${{ secrets.* }}syntax), plus Copilot adapter auto-injectsAuthorization: Bearerfor GitHub MCP Server..vscode/mcp.json), Copilot CLI (~/.copilot/mcp-config.json), and Codex (TOML) all generated duringapm install.registry: falsefor fully custom MCP servers without any registry dependency.tools: ["repos", "issues"]to restrict exposed tools.--trust-transitive-mcpfor security.docs/manifest-schema.md(Section 4.2).Alexandre Nédélec (@TechWatching) — your scenario (public APM package with MCP servers not in the GitHub Registry) is now supported. You can declare self-defined MCP servers in your package's
apm.ymlusingregistry: falsewith the same fields you'd use in.vscode/mcp.json(command, args, env, transport, headers, etc.). When consumers install your package with--trust-transitive-mcp, those servers are picked up and configured automatically. Without the flag, consumers are warned and can re-declare the server in their ownapm.ymlfor explicit control. Note: this is available onmaintoday and will ship as part of v0.8.0.The core ask — extended MCP config in
apm.ymlwith transport, auth, env vars, headers, and multi-runtime export — will be addressed with the release of v0.8.0. Tracking remaining items below:registry: "https://..."parsed but not fully wired at install timeapm mcp export --runtime vscodecommand (currently config generation is tied toapm install)feat: add mega-manifest and multi-org auth scenarios (#19, #20)
feat: Auth + Logging Architecture Overhaul (#393) (#394)
rcollette commentedon Apr 18, 2026
I just tried installing context7 and I am prompted for an authorization token, which is not mandatory. I deleted the environment configuration from the local .vscode/mcp.json and on subsequent installs, that configuration is overridden.
There needs to be a way to specify some some inputs/variables as being optional and not set when no value is provided.
20 remaining items
test(mcp): reconcile stale optional-input tests with board #20 contract
docs(changelog): end #20 entry with PR number per repo convention
test(mcp): reconcile stale optional-input tests with board #20 contract
docs(changelog): end #20 entry with PR number per repo convention
fix(mcp): honor optional registry inputs (#1734)
danielmeppiel commentedon Jun 20, 2026
Status update -- June 2026: most of this has shipped; residuals split out
Re-grounding this issue against current
main(the March 2026 status update and the April triage both predate several June MCP PRs).Shipped since this issue was opened (v0.8.0)
apm.ymlMCP config:transport,env,args,headers,tools,url,command,version,registry,package, plus harness passthroughextra:(Add extra passthrough for harness-specific MCP keys (#1670) #1765). Verified insrc/apm_cli/models/dependency/mcp.py.stdio/sse/streamable-http/http); self-defined servers viaregistry: false; tool filtering viatools: [...].registry: "https://...") -- previously "parsed but not wired"; wired by fix(mcp): honour per-dep registry URL during install (#1393) #1443.--trust-transitive-mcp;apm config set/get/unset mcp-registry-url(feat(config): addapm config set/get/unset mcp-registry-url#1637).fix(mcp): honor optional registry inputs) stops APM from prompting for / writing non-mandatory env fields and preserves your manual edits on reinstall -- exactly the context7 scenario described above.Genuine residuals (now tracked as focused issues)
apm mcp export --runtime <target>command #1868 -- standaloneapm mcp export --runtime <target>(config generation is still coupled toapm install).Label cleanup
Removing
status/needs-designfrom this umbrella -- the design-gated work now lives in #1869; the shipped surface no longer needs design. Keeping this issue open as a lightweight umbrella over #1868 and #1869. It can be closed once those two land.Thanks Luke Robinson (@Vivalio), Alexandre Nédélec (@TechWatching), Richard Collette (@rcollette), and Sergio Sisternes (@sergio-sisternes-epam) for driving the detail here.
danielmeppiel commentedon Aug 23, 2026
Closing as completed: the umbrella MCP capability work has shipped across supported transports, registry forms, runtime adapters, lock/deployment ownership, rollback, and lifecycle coverage. Repository MCP sourcing and token/environment policy remain tracked separately in #1869. Security-sensitive conditional auth/input semantics should be proposed as a focused design only when there is a concrete implementation need.