fix(agent-environment): sync MCP install script with template pins (#34)#57
Closed
Abhishek21g wants to merge 1 commit into
Closed
fix(agent-environment): sync MCP install script with template pins (#34)#57Abhishek21g wants to merge 1 commit into
Abhishek21g wants to merge 1 commit into
Conversation
…caleapi#34) Template bumped filesystem to @2026.7.10 but install_mcp_packages.sh still installed @2025.11.25, breaking directory_tree MCP validation in Docker builds. Also sync duckduckgo-mcp-server and wikipedia-mcp pins; add regression test.
Container-level
|
| Ref | Installed package | RPC result | Duration |
|---|---|---|---|
main d01e9b590e931f877bc01565ab57d191603561f6 |
@modelcontextprotocol/server-filesystem@2026.7.10 |
success; schema and expected tree passed |
0.002757 s |
PR 9c0bc6098784093daf5c547fe9712ed99d31476e |
@modelcontextprotocol/server-filesystem@2026.7.10 |
success; schema and expected tree passed |
0.002833 s |
Request, response, and image manifest: https://gist.github.com/kalyanamdewri/b21e64b90332b07c0004d9d7263d8b2d. This validates the built container only; I did not test other MCP tools, the HTTP /call-tool aggregation path, production-scale directory trees, or non-Docker deployments.
geobio
added a commit
that referenced
this pull request
Jul 22, 2026
…63) * ci: add pin-sync CI + regression guards for MCP install-script drift The template->install-script pin drift that broke directory_tree (#34) shipped because the sync test was never wired to run — the repo had no CI at all. - Add .github/workflows/agent-environment-tests.yml to run the pin-sync tests on every PR touching the template, install script, or tests. - Add tests/test_filesystem_pin.py: minimum-CalVer floor so the filesystem pin can't regress below the upstream fix (2025.12.18), which the sync test alone would miss when template and script are bumped down together. (from #57) - Close the reverse-drift blind spot in test_package_sync: the docstring claimed to catch stale packages left in the script, but only checked the template->script direction. Now asserts script-template is empty too. - Document the pin policy in services/agent-environment/README.md. (from #57) Supersedes the remainder of #57 (its version bumps already landed via 60ae87d). Co-Authored-By: Abhishek Enaguthi <enaguthiabhishek@gmail.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * Update README.md --------- Co-authored-by: Abhishek Enaguthi <enaguthiabhishek@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collaborator
|
I couldn't directly push to this branch, but I took your changes into this new PR. Thanks @Abhishek21g !! #63 |
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.
Problem
mcp_server_template.jsonbumped@modelcontextprotocol/server-filesystemto2026.7.10butdev_scripts/install_mcp_packages.shstill installed@2025.11.25. Docker builds use the install script, so images could ship the broken pin — everydirectory_treecall fails MCP output validation (-32602) regardless of model (see #34, modelcontextprotocol/servers#3110).Also drifted:
duckduckgo-mcp-server(0.1.1 vs 0.5.0) andwikipedia-mcp(missing from install script).Repro
cd services/agent-environment python3 -m pytest tests/test_mcp_config_sync.py -vFails on main before this fix (NPX version mismatch on filesystem pin).
Fix
install_mcp_packages.shto match template pinstests/test_filesystem_pin.py— minimum calver guard for filesystem server pinned to 2025.11.25 triggers directory_tree output-validation error (-32602) — fixed upstream in 2025.12.18+ #34services/agent-environment/README.mdVerification
cd services/agent-environment python3 -m pytest tests/ -vBoth
test_package_syncandtest_filesystem_pin_meets_minimum_for_directory_treepass.Greptile Summary
This PR syncs
dev_scripts/install_mcp_packages.shwithmcp_server_template.jsonto fix a version drift that caused everydirectory_treecall to fail with MCP output validation error -32602 when using the@2025.11.25filesystem server pin.@modelcontextprotocol/server-filesystemfrom2025.11.25to2026.7.10,duckduckgo-mcp-serverfrom0.1.1to0.5.0, and addswikipedia-mcp==2.0.1to the install script.tests/test_filesystem_pin.pyas a regression guard enforcing the minimum CalVer pin, and documents the pin policy inREADME.md.Confidence Score: 4/5
The version bump and sync are correct and well-guarded by two new tests; only minor polish issues remain.
The core changes — version pin updates and the new CalVer regression guard — address a real runtime breakage. The only findings are a redundant assertion, an upstream issue-number discrepancy in a docstring, and a missing trailing newline in the shell script, none of which affect runtime behavior.
The docstring in
tests/test_filesystem_pin.pyreferences a different upstream issue number than the PR description; worth a quick double-check before merge.Important Files Changed
Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "fix(agent-environment): sync MCP install..." | Re-trigger Greptile