Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

pabloparejo
Copy link

@pabloparejo pabloparejo commented Sep 25, 2025

✅ Summary: Docker MCP Gateway Compatibility Fix

Problem Solved

  • Issue: invalid character 'd' looking for beginning of value when using Postman MCP with Docker MCP Gateway
  • Root Cause: Initialization logs polluting stdio during MCP JSON-RPC handshake

Solution Implemented

  • Better Default: Changed default log level from info to error (minimal logging)
  • User Control: Added --verbose flag for detailed logs when needed
  • Environment Support: LOG_LEVEL environment variable support
  • Clean Architecture: Proper separation of logging concerns and MCP protocol
  • Documentation: Updated README.md with clear logging configuration guidance

Key Benefits

  1. Works by default - No configuration needed for Docker MCP Gateway
  2. Opt-in verbose logging - Users choose to enable detailed logs
  3. Backward compatible - No breaking changes

…ging

- Change default log level from 'info' to 'error' to prevent stdio pollution
- Add --verbose flag for users who want detailed logs
- Add --quiet flag for complete silence
- Support LOG_LEVEL environment variable (debug, info, warn, error, silent)
- Update README with logging configuration documentation
- Add focused test case for Docker MCP Gateway compatibility
- Fix Node.js compatibility issue with JSON import syntax
- Maintains backward compatibility while fixing Docker MCP Gateway issues

Fixes the 'invalid character 'd' looking for beginning of value' error when
using Postman MCP server with Docker MCP Gateway by ensuring clean JSON-RPC
protocol communication on stdio during initialization.
@rubenbaraut
Copy link
Collaborator

#55 (comment)

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.