Skip to content

Conversation

@hrntknr
Copy link
Member

@hrntknr hrntknr commented Jan 3, 2026

Summary

Ensure stdio-backed MCP initialization sends protocol version and client info, with a bounded init context to avoid premature exits.

Type of Change

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to our CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit

Related Issues

Copilot AI review requested due to automatic review settings January 3, 2026 09:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the MCP initialization process for stdio backends by adding required protocol metadata and timeout handling. The change ensures proper client identification during the initialization handshake.

  • Adds protocol version and client info to the initialization request
  • Implements a bounded timeout context to prevent indefinite hangs during initialization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ProtocolVersion: mcp.LATEST_PROTOCOL_VERSION,
ClientInfo: mcp.Implementation{
Name: "mcp-auth-proxy",
Version: "dev",
Copy link

Copilot AI Jan 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded version string 'dev' should be replaced with an actual version variable or constant that can be updated during build time (e.g., via ldflags). This makes it easier to track which version of the proxy is being used in production.

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@hrntknr hrntknr merged commit 16de9cd into main Jan 3, 2026
8 checks passed
This was referenced Jan 3, 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.

2 participants