Skip to content

Feat: Integrate MCP Instrumentation across various tools #22

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

tech-sushant
Copy link
Contributor

This PR integrates MCP instrumentation across multiple internal tools to enable standardized telemetry, tracing, and command execution tracking. The integration allows MCP-compatible clients to observe and interact with tool behavior in a unified manner.

@@ -80,6 +81,8 @@ export default function addSDKTools(server: McpServer) {
const desiredPlatforms = args.desiredPlatforms;

try {
const clientInfo = server.server.getClientVersion();
trackMCPEvent("runTestsOnBrowserStack", clientInfo!);
Copy link
Collaborator

Choose a reason for hiding this comment

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

pass server.server.getClientVersion() directly to trackMCPEvent

@@ -89,6 +90,8 @@ export default function addAppLiveTools(server: McpServer) {
},
async (args) => {
try {
const clientInfo = server.server.getClientVersion();
trackMCPEvent("runAppLiveSession", clientInfo!);
return startAppLiveSession(args);
} catch (error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

also track errors for all tools.

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