Skip to content

Conversation

@romanr
Copy link

@romanr romanr commented Dec 30, 2025

fix #91 : "@modelcontextprotocol/sdk": "^1.17.1" resolves to latest 1.25.1 which depends on zod v4 which has breaking changes.

Copilot AI review requested due to automatic review settings December 30, 2025 11:05
Copy link

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 addresses a dependency version issue with @modelcontextprotocol/sdk by pinning it to an exact version. However, it also includes unrelated functional changes that add error and warning arrays to build summaries.

Key Changes:

  • Pins @modelcontextprotocol/sdk to exact version 1.17.1 (removing the caret ^)
  • Adds errors and warnings arrays (limited to first 10 entries) to extractBuildSummary return value
  • Enhances build guidance to display warning count in successful builds

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Removes caret from @modelcontextprotocol/sdk version to pin to exact 1.17.1
package-lock.json Updates dependency resolution to 1.17.1 and adds peer dependency flags to dev dependencies
src/utils/response-cache.ts Adds errors and warnings arrays (first 10 entries) to extractBuildSummary return object
tests/tests/utils/response-cache.test.ts Adds comprehensive test coverage for new errors/warnings array fields, including limit test
src/tools/xcodebuild/build.ts Adds warning count indicator to success guidance messages

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

Comment on lines +196 to +198
// Include first 10 errors and warnings for immediate visibility
errors: errors.slice(0, 10).map(e => e.trim()),
warnings: warnings.slice(0, 10).map(w => w.trim()),
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

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

This PR introduces new fields (errors and warnings arrays) to the build summary return value. However, the PR title and description only mention fixing the @modelcontextprotocol/sdk version issue. This is an unrelated feature addition that should either:

  1. Be documented in the PR description to explain why these fields are being added
  2. Be moved to a separate PR focused on this feature

Additionally, this is a breaking change to the public API of extractBuildSummary (new required fields in the return object) but there's no documentation or discussion about backwards compatibility.

Suggested change
// Include first 10 errors and warnings for immediate visibility
errors: errors.slice(0, 10).map(e => e.trim()),
warnings: warnings.slice(0, 10).map(w => w.trim()),

Copilot uses AI. Check for mistakes.
…ssue and produces streaming output. Which caused xc-mcp to not return anything at all. Enhanced xcodebuild output with immediate error/warning visibility and streaming command execution.
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.

Error discovering tools from xc-mcp: MCP error -32603: Cannot read properties of undefined (reading '_zod')

1 participant