GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Windows MCP local server fails with Bun but works with NPX (Error -32000) · Issue #6994 · anomalyco/opencode

Windows MCP local server fails with Bun but works with NPX (Error -32000) #6994

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Windows MCP local server fails with Bun but works with NPX (Error -32000)#6994
Copy link
Assignees
rekram1-node

Description

@bagleytravis68
bagleytravis68
opened on Jan 5, 2026
Issue body actions

Description

When configuring a local MCP server using bun x or bun run on Windows, OpenCode fails with MCP error -32000: Connection closed.

"mcp": {
"exa_search": {
"type": "local",
"enabled": true,
"command": [
"bun",
"x",
"-y",
"exa-mcp-server"
],
"env": {
"EXA_API_KEY": "####"
}
}
}

This is what is output in debug logs:
ERROR 2026-01-05T19:30:57 +75ms service=mcp key=exa_search command=["bun","x","-y","exa-mcp-server"] cwd=C:\Users####\OpenCode error=MCP error -32000: Connection closed local mcp startup failed

Note: bun will install when run outside of OpenCode .

Installing Node.js and using ["npx", "-y", "exa-mcp-server"] resolves the issue because Node does not pollute the stdout pipe with startup logs.

Plugins

No response

OpenCode version

1.1.3

Steps to reproduce

  1. Install exa-mcp-server via Bun.
  2. Configure opencode.jsonc using ["bun", "x", "exa-mcp-server"]
  3. Run opencode run --print-logs --log-level=DEBUG "hi"
  4. Observe the -32000 error in debug logs.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. bagleytravis68
    added
    bugSomething isn't working
    on Jan 5, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 5, 2026
  3. github-actions
    added
    windows
    on Jan 5, 2026
  4. github-actions commented on Jan 5, 2026

    @github-actions
    github-actionsBot
    on Jan 5, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • RE: MCP Servers - Potential issue? #6909: RE: MCP Servers - Potential issue? (Windows MCP server initialization failures)

    Feel free to ignore if none of these address your specific case.

  5. bagleytravis68 commented on Jan 5, 2026

    @bagleytravis68
    bagleytravis68
    on Jan 5, 2026
    Author
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • RE: MCP Servers - Potential issue? #6909: RE: MCP Servers - Potential issue? (Windows MCP server initialization failures)

    Feel free to ignore if none of these address your specific case.

    Looks different. Nothing here mentions running bun.

  6. github-actions commented on Mar 25, 2026

    @github-actions
    github-actionsBot
    on Mar 25, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. thdxr
    removed
    bugSomething isn't working
    windows
    on May 3, 2026
  8. rekram1-node
    closed this as not plannedon May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.