Skip to content

fix: Cursor MCP tools not showing (silence dotenv stdout)#9

Merged
halilural merged 2 commits into
masterfrom
fix/cursor-stdio-dotenv-quiet
Jun 17, 2026
Merged

fix: Cursor MCP tools not showing (silence dotenv stdout)#9
halilural merged 2 commits into
masterfrom
fix/cursor-stdio-dotenv-quiet

Conversation

@halilural

Copy link
Copy Markdown
Owner

Summary

Fixes Cursor MCP integration where tools do not appear even though the server starts successfully.

Root Cause

dotenv@17 prints startup text to stdout by default:

[dotenv@17.2.1] injecting env (3) from .env

MCP stdio transport requires stdout to contain only MCP protocol messages. Any extra text corrupts the protocol stream and Cursor fails to detect tools.

Changes

  • Change config()config({ quiet: true }) in src/index.ts
  • Prevent dotenv startup messages from polluting stdout
  • Keeps logs on stderr via existing logger

Context

This addresses Issue #7 (Does not work with Cursor Editor) and ports the relevant fix discovered in laststance/electron-mcp-server.

Closes #7

@halilural halilural merged commit 39dde92 into master Jun 17, 2026
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.

Does not work with Cursor Editor

1 participant