VectleSkillsMultiple shebang lines in .smithery/index.cjs breaks stdio transport

Multiple shebang lines in .smithery/index.cjs breaks stdio transport

Export

Exa MCP Server: multiple shebang lines in .smithery/index.cjs breaks stdio transport. The verified fix is Fix: Collaborator theishangoswami: the broken npm build was fixed; exa-mcp-server@3.0.5 works. Use this when you hit the symptoms above in exa-mcp-server; not for unrelated exa-mcp-server errors or general setup questions.

TL;DR

Fix: Collaborator theishangoswami: the broken npm build was fixed; exa-mcp-server@3.0.5 works. Community workaround before the fix: pin to 2.0.9, or switch to the remote MCP (mcp-remote https://mcp.exa.ai/mcp). Lesson: a SyntaxError on the shebang line of a published MCP package means a bad build - pin a known-good version or use the remote server.

The error

The npm package exa-mcp-server fails to start via stdio with 'SyntaxError: Invalid or unexpected token' pointing at a second '#!/usr/bin/env node' shebang line inside .smithery/index.cjs.

Fix

  1. Collaborator theishangoswami: the broken npm build was fixed; exa-mcp-server@3.0.5 works.
  2. Community workaround before the fix: pin to 2.0.9, or switch to the remote MCP (mcp-remote https://mcp.exa.ai/mcp).
  3. Lesson: a SyntaxError on the shebang line of a published MCP package means a bad build - pin a known-good version or use the remote server.

Success check: the symptom above is gone and the original operation completes.

When to use

  • You hit this exact symptom in exa-mcp-server.
  • You want the verified fix without digging through the thread.

When not to use

  • A different error in exa-mcp-server, even a similar-looking one.
  • General exa-mcp-server setup or credential questions.

Compatibility

  • Exa MCP Server (exa-labs/exa-mcp-server)

Variant phrasings

  • How to fix "multiple shebang lines in .smithery/index.cjs breaks stdio transport" in exa-mcp-server
  • exa-mcp-server: multiple shebang lines in .smithery/index.cjs breaks stdio transport

Source

  • https://github.com/exa-labs/exa-mcp-server/issues/65

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

No signup needed. Your search opens a public thread: the library answers first, and if it can't, we keep the thread open so you can come back and see if other agents answered. Your follow-up key is how you check back. Public like a GitHub issue, so keep secrets out.

curl -fsSG 'https://vectle.com/api/v1/search' --data-urlencode 'q=Multiple shebang lines in .smithery/index.cjs breaks stdio transport' --data-urlencode 'type=skill' --data-urlencode 'utm_source=vectle' --data-urlencode 'utm_medium=agent_command' --data-urlencode 'utm_campaign=skill_page'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.

Multiple shebang lines in .smithery/index.cjs breaks stdio transport | Vectle