Repository navigation
fix(runtime): stop naming a stale middleware version in the MCP Apps policy error - #7612
Merged
Merged
Conversation
…policy error The includeTools/excludeTools rejection said @ag-ui/[email protected] owns per-server tool policy. 8454999 moved the runtime to ^0.1.0, and it now depends on ^0.1.1. The error, the McpAppsServerConfig doc comment and the docs page now describe the middleware release the runtime depends on without a number, so the next bump cannot make them wrong again. Refs #5930 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (4)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
Production Digest-Pinning AuditAll 42 services digest-pinned. Run 2026-10-03 17:06:00 PDT — 0 finding(s). |
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-telegram
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/learning
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
Contributor
|
Size Change: 0 B Total Size: 1.77 MB ℹ️ View Unchanged
|
… policy The page told readers to "use a compatible middleware release" once the upstream policy exists. The runtime rejects includeTools and excludeTools whatever middleware is installed, so that advice could not work. The page now says the runtime has to adopt the policy first, and links #5930. Refs #5930 Co-Authored-By: Claude Opus 5.5 <[email protected]>
BenTaylorDev
marked this pull request as ready for review
October 5, 2026 04:03
BenTaylorDev
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
October 5, 2026 04:03
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #5930. This does not implement the per-tool filter. It corrects the error that #6292 added for it.
Problem
Setting
includeToolsorexcludeToolson anmcpApps.serversentry raises a configuration error. That error says@ag-ui/[email protected]owns per-server tool policy. The runtime moved to^0.1.0in 8454999 and now depends on^0.1.1(packages/runtime/package.json). TheMcpAppsServerConfigdoc comment and the docs pagebackend/copilot-runtime.mdxalso name0.0.3.Change
The error, the doc comment and the docs sentence now refer to "the release the runtime depends on" instead of a version number. A hard-coded number goes stale at every bump, and reading the installed version at runtime would mean a JSON import, which #7609 removes from the v2 runtime for Cloudflare Workers.
The error still names the package, the offending key and server, and links #5930. Example message:
The docs page also told readers to "use a compatible middleware release" once the upstream policy exists. That advice could not work, because the runtime rejects the keys whatever middleware is installed. The second commit says the runtime has to adopt the policy first and links #5930.
Not changed:
packages/runtime-dotnet/src/McpAppsAgent.cs:20mentions "MCP Apps middleware 0.0.3 HTTP config hashing". That comment is about the hashing scheme, which 0.1.1 keeps, and it lives in the .NET runtime.Not changed:
showcase/shell-docs/src/content/doctest.jsonpins@ag-ui/[email protected]alongside@copilotkit/[email protected]. That pin is a matched set for compiling doc snippets, not a statement about the current runtime.Testing
mcp-apps-servers.test.tsasserts the new wording. Run against the old source, it fails:vitest runinpackages/runtime(full suite): 194 files, 2803 tests, all pass.nx run @copilotkit/runtime:check-types --skip-nx-cache: pass.oxfmton the changed files: clean.lint-fix,test,publint,attwon affected projects): pass.🤖 Generated with Claude Code