Skip to content

Conversation

blva
Copy link
Collaborator

@blva blva commented Sep 25, 2025

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

* @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 {
Copy link
Collaborator Author

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

@blva blva marked this pull request as ready for review September 25, 2025 12:52
@blva blva requested a review from a team as a code owner September 25, 2025 12:52
@Copilot Copilot AI review requested due to automatic review settings September 25, 2025 12:52
Copy link
Contributor

@Copilot 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 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

@blva blva merged commit 96d8f83 into main Sep 25, 2025
18 checks passed
@blva blva deleted the MCP-224 branch September 25, 2025 15:02
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