Skip to content

bug: mcp-bridge plugin is not working with docker run command #12330

Open
@arulrajnet

Description

@arulrajnet

Current Behavior

I have configured the mcp-bridge plugin as like below

    plugins:
      mcp-bridge:
        base_uri: "/mcp-bitbucket"
        command: "docker"
        args:
          - "run"
          - "--rm"
          - "-i"
          - "-e"
          - "ATLASSIAN_SITE_NAME=${{ATLASSIAN_SITE_NAME}}"
          - "-e"
          - "ATLASSIAN_BITBUCKET_USERNAME=${{ATLASSIAN_BITBUCKET_USERNAME}}"
          - "-e"
          - "ATLASSIAN_BITBUCKET_APP_PASSWORD=${{ATLASSIAN_BITBUCKET_APP_PASSWORD}}"
          - "arulrajnet/mcp-bitbucket:v1.39.7"
          - "node"
          - "dist/index.js"

Create custom apisix image from the apache/apisix:dev image with docker cli client.

The apisix server started without any issues.

Connected the VSCode MCP client in Github Copilot.

The .vscode/mcp.json

{
  "servers": {
    "bitbucket-remote-server": {
      "type": "sse",
      "url": "http://localhost/mcp-bitbucket/"
    }
  }
}

But got the following error.

2025-06-15 19:12:15.335 [info] Starting server bitbucket-remote-server
2025-06-15 19:12:15.335 [info] Connection state: Starting
2025-06-15 19:12:15.340 [info] Starting server from LocalProcess extension host
2025-06-15 19:12:15.346 [info] Connection state: Running
2025-06-15 19:12:20.349 [info] Waiting for server to respond to `initialize` request...
2025-06-15 19:12:25.348 [info] Waiting for server to respond to `initialize` request...
2025-06-15 19:12:30.348 [info] Waiting for server to respond to `initialize` request...
2025-06-15 19:12:35.348 [info] Waiting for server to respond to `initialize` request...
2025-06-15 19:12:40.347 [info] Waiting for server to respond to `initialize` request...

The full setup is captured in this repo. https://github.com/arulrajnet/apisix-mcp-bridge-example/tree/main

Expected Behavior

No response

Error Logs

No response

Steps to Reproduce

  1. Clone https://github.com/arulrajnet/apisix-mcp-bridge-example
  2. docker-compose up -d
  3. Configure MCP client in VSCode
  4. Check the logs in VSCode and APISix
  5. curl -v http://localhost/mcp-bitbucket returns 404

Environment

  • apache/apisix:dev
  • Docker
  • Standalone mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    checkingcheck first if this issue occurredpluginquestionlabel for questions asked by users

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions