Skip to content

mcp env gets ignored #26

@michabbb

Description

@michabbb

Describe the bug

same mcp works with every other cli tool so the mcp iteself is NOT the problem 😏

{
  "mcpServers": {
    "mysql_client": {
      "type": "local",
      "command": "mysql_mcp_server",
      "tools": [
        "*"
      ],
      "args": [],
      "env": {
        "MYSQL_HOST": "xxxxx",
        "MYSQL_PORT": "xxx",
        "MYSQL_USER": "xxxx",
        "MYSQL_PASSWORD": "xxxxxxxx",
        "MYSQL_DATABASE": "xxxxx"
      }
    }
  }
}
2025-09-25T22:20:49.336Z [LOG] [mcp server mysql_client stderr] 2025-09-26 00:20:49,335 - mysql_mcp_server - ERROR - Missing required database configuration. Please check environ
         │ ment variables:
     8   │ 2025-09-26 00:20:49,335 - mysql_mcp_server - ERROR - MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE are required
     9   │ Traceback (most recent call last):
    10   │   File "/home/micha/.local/bin/mysql_mcp_server", line 8, in <module>
    11   │     sys.exit(main())

MCP: https://github.com/designcomputer/mysql_mcp_server

Affected version

0.0.327

Steps to reproduce the behavior

setup the mysql_mcp_server with correct env

Expected behavior

env variables should be used

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions