Merged
Conversation
Reduce file reads needed by AI agents to discover project patterns
by enriching MCP tools with richer output, better descriptions, and
actionable code examples.
- Enrich routes tool with parameters, request/response schemas, hook names
- Rewrite get_route_info with Suspense/ErrorBoundary scaffold and proper
hook call args (selector spread, params, cache invalidation)
- Add OpenAPI helpers: $ref resolution, param merging, body/response extraction
- Update all tool descriptions to be prescriptive and actionable
- Expand apx://info with project structure, frontend/backend patterns, workflow
- Add project context resource template (apx://project/{app_path})
- Add 15 new unit tests (29 total)
Co-Authored-By: Claude Opus 4.6 <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.
Summary
Closes #94. Reduces the file reads AI agents need (8+) to discover project patterns before writing code.
routestool output — adds parameters, request/response schemas, hook names, and$refresolution to every routeget_route_infocode generation — produces complete Suspense/ErrorBoundary scaffold with proper hook call args (selector()spreading, path params, cache invalidation viainvalidateQueries)apx://inforesource — adds project structure, key frontend/backend patterns, and numbered workflowapx://project/{app_path}resource template — returns app metadata, enriched routes, and installed UI components as JSONTest plan
cargo build -p apx-mcp— no warningscargo test -p apx-mcp— 29 tests pass (15 new)cargo clippy -p apx-mcp— no warningsroutesandget_route_infoagainst a real project🤖 Generated with Claude Code