Skip to content

MCP ENV variables are not injected? #55

Description

@itschip

I'm having some trouble with the mcp server. it doesn't seem like the env variable is injected? From what I saw in mcp-go/client, it just merges this list with the rest of os.Environ. Is this the correct format?

If this is a known bug, I''ll take a look at it and make a PR for it. Does seem like some work is begin on the llm agents on #35 however. Not sure if I should touch it before that.

"mcpServers": {
"github": {
"command": "docker",
"env": [
"GITHUB_PERSONAL_ACCESS_TOKEN=<token>"
],
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"ghcr.io/github/github-mcp-server"
],
"type": "stdio",
"url": "",
"headers": null
}
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions