Skip to content

Add local docker container support to smithery.yaml configuration #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 29, 2025

Conversation

arjunkmrm
Copy link
Contributor

@arjunkmrm arjunkmrm commented Mar 29, 2025

Smithery maintainer here! Sending a PR to add local Docker container support to the smithery.yaml configuration.

Changes:

  • Updated commandFunction to use the published Docker image
  • Added optional MySQL port parameter with default value
  • Set PYTHONPATH environment variable to ensure proper module loading

Test:

  • Claude:
Screenshot 2025-03-29 at 12 15 55 PM
{
  "mcpServers": {
    "mysql": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e", "MYSQL_HOST=host.docker.internal",
        "-e", "MYSQL_PORT=3306", 
        "-e", "MYSQL_USER=testuser",
        "-e", "MYSQL_PASSWORD=testpass",
        "-e", "MYSQL_DATABASE=testdb",
        "smithery/mysql-mcp-server:latest"
      ]
    }
  }
}

@designcomputer designcomputer merged commit dc4309c into designcomputer:main Mar 29, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants