Repository navigation
MCP get: the /area/ route keeps an id that contains ':' (#6815) - #6819
Merged
Merged
Conversation
TryParseAreaRoute refused any path containing a colon so the legacy
{path}/area:Name form reached the unified resolver; an id like
url=https://github.com/x therefore fell through and was split at the
colon. The route now wins when its area segment lies wholly before the
first colon; a colon at or before the marker is still the legacy form.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Legacy colon references are misrouted when their node path contains an interior area segment.
1 open finding
What changed in this PR
Updates MCP Get routing to support layout-area ids containing colons, addressing #6815.
Changes:
- Recognizes
/area/markers before the first colon. - Adds parser and end-to-end regression tests.
- Documents layout-area routes and reference ids.
| File | Description |
|---|---|
| test/Memex.Portal.Shared.Test/AreaRouteIdWithColonTest.cs | Tests colon-containing ids and legacy references. |
| src/MeshWeaver.Mesh.Operations/MeshOperations.cs | Adjusts area-route parsing and exposes it internally for tests. |
| src/MeshWeaver.Documentation/Data/AI/Tools/MeshPlugin.md | Documents area reads and colon handling. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Test Results 11 files - 15 11 suites - 15 38m 58s ⏱️ - 20m 59s Results for commit 71b5a98. ± Comparison against base commit cab0ae9. This pull request removes 3614 and adds 21 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
…d an interior 'area' segment (#6815) Root/area/Child/area:Echo/legacy-id addressed Echo on Root/area/Child before the colon-id change; the marker search then took the interior 'area' segment and rendered area Child on Root. A colon that cuts 'area' or a UCR prefix is the legacy colon form wherever an 'area' segment precedes it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.

Closes #6815
Root cause
MeshOperations.TryParseAreaRoutereturnedfalsefor ANY path containing':', to leave the legacy{path}/area:Nameform to the unified resolver. A reference id is free text (url=https://github.com/x), soget {node}/area/{Name}/{Id}with such an id fell through toTryResolveUnifiedPath, which split at the colon and answeredNo node found at '{node}/area/{Name}'.Fix
The
/area/route now wins whenever itsareasegment lies wholly before the first colon; everything after{Name}/is the id, verbatim. A colon at or before the marker ({path}/area:Name,area:content:file,{path}/data:…) is still the legacy form and keeps flowing through the unified resolver unchanged.The portal URL route is a different code path (it does not go through
TryParseAreaRoute); not changed here.Tests
test/Memex.Portal.Shared.Test/AreaRouteIdWithColonTest.cs— parse-level (colon id keeps the route; four legacy colon shapes are left to the unified resolver) and end-to-endMeshOperations.Get: the colon id rendersECHO[url=https://github.com/Systemorph/MeshWeaver], and the legacy@node/area:Echo/legacy-idstill resolves. 7/7 pass;UngrantedGetIsNotFoundTest5/5.Negative control (old early return restored): 2 fail, quoting the issue's exact symptom —
Expected "Error: No node found at 'AreaRouteColonProbe/area/Echo'. Closest ancestor is 'AreaRouteColonProbe' (remainder='area/Echo')…" to contain "ECHO[url=https://github.com/Systemorph/MeshWeaver]".Release
-warnaserror:MeshWeaver.Mesh.OperationsandMemex.Portal.Shared.Test, 0 warnings / 0 errors.Doc:
Doc/AI/Tools/MeshPlugin→ Get → "Layout areas".Pairs-with: none —
TryParseAreaRoutewas private and is now internal; no public surface removed.🤖 Generated with Claude Code