-
Notifications
You must be signed in to change notification settings - Fork 133
chore: improve descriptions about connection - MCP-224 #592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* @param additionalProperties - Additional properties specific to the event | ||
*/ | ||
private emitServerEvent(command: ServerCommand, commandDuration: number, error?: Error): void { | ||
private emitServerTelemetryEvent(command: ServerCommand, commandDuration: number, error?: Error): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flyby: emitServerEvent feels misleading, so I renamed it
There was a problem hiding this 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 enhances tool descriptions and server configuration information to provide better guidance for MCP clients that may not handle update events properly. The changes focus on making connection status and server capabilities more transparent.
Key changes:
- Enhanced tool descriptions to clarify connection state and when to use the connect tool
- Added server instructions capability with dynamic configuration details
- Improved logging and telemetry for better observability
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
tests/integration/tools/mongodb/connect/connect.test.ts |
Updates test to validate the enhanced connect tool description |
src/tools/mongodb/connect/connect.ts |
Adds detailed description and logging for connect tool metadata updates |
src/server.ts |
Adds instructions capability, improves validation, and enhances resource update logging |
src/common/logger.ts |
Adds new log ID for tool metadata updates |
Proposed changes
Going off of the assumption that some MCP clients are not able to handle update events properly, this PR adds a bit more information about the server functioning with its configuration and some fly-by fixes.
Checklist