[otel] Update DevKit Server docs with OTEL information #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds Cursor and VS Code integration documentation and fixes the MCP stdio transport logging issue
that was causing JSON-RPC communication errors.
Problem
The MCP DevKit Server was outputting logs to stdout/stderr when using stdio transport, corrupting the
JSON-RPC protocol. This was caused by two issues:
MCP_DISABLE_LOGGINGbut scripts usedMCP_LOGGING_DISABLESolution
MCP_DISABLE_LOGGINGandMCP_LOGGING_DISABLEforbackwards compatibility
OTEL_LOG_LEVELenvironment variable for debugging OTEL issues when neededNew Documentation
Added comprehensive integration guides for:
docs/cursor-integration.md)docs/vscode-integration.md)Both guides include:
MCP_LOGGING_DISABLE=true)Changes
Core Fixes
src/index.ts: Updated logging checks to support bothMCP_DISABLE_LOGGINGandMCP_LOGGING_DISABLEsrc/utils/tracing.ts: Added OTEL diagnostic logger suppression at module load timeDocumentation
docs/cursor-integration.md: New Cursor IDE integration guidedocs/vscode-integration.md: New VS Code integration guideREADME.md: Added links to new integration docs.env.example: DocumentedOTEL_LOG_LEVELvariableCLAUDE.md: AddedOTEL_LOG_LEVELto environment variables sectionUpdated Existing Docs
docs/claude-code-integration.md: Already had correctMCP_LOGGING_DISABLEusagedocs/claude-desktop-integration.md: Already had correctMCP_LOGGING_DISABLEusageTesting
Verify Stdio Transport Fix
npm run inspect:build
should work cleanly
Test with MCP_LOGGING_DISABLE
MCP_LOGGING_DISABLE=true node dist/esm/index.js
Test with MCP_DISABLE_LOGGING
MCP_DISABLE_LOGGING=true node dist/esm/index.js
Verify New Integration Docs
Verify OTEL Diagnostic Logging
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 npm run inspect:build
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 OTEL_LOG_LEVEL=ERROR npm run inspect:build
Run Test Suite
npm test
Expected: All 276 tests pass ✅
Run Linter
npm run lint
Expected: No errors (only pre-existing any type warnings)
Run inspector and no errors:

Checklist
Additional Notes