Conversation
This workflow runs npm test daily at 9:00 AM UTC to detect if upstream MCP documentation changes have broken the URL matching tests. When tests fail, it automatically creates a GitHub issue (avoiding duplicates) to notify maintainers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…hing Implements three new tools that allow LLMs to programmatically fetch MCP documentation resources: - getResource: Fetch any resource by exact URI - getSpecificationResource: Convenient spec fetching by version and section - listAvailableResources: Discover all available resources Refactors resource fetching logic to eliminate ~200+ lines of redundant code by extracting shared fetchResourceContentByUri() helper function used by both the ReadResourceRequestSchema handler and tool handlers. Adds zod and zod-to-json-schema dependencies for tool schema validation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Simplifies tool descriptions to be more concise and action-oriented: - getResource: 63% shorter, removes redundant examples - getSpecificationResource: 60% shorter, removes editorial comments - listAvailableResources: 67% shorter, removes redundant details Follows best practices from reference implementation with direct, verb-led descriptions that focus on the action rather than meta-commentary. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Pull Request Overview
This PR adds programmatic access to MCP documentation resources through three new tools while significantly reducing code duplication. The implementation introduces getResource, getSpecificationResource, and listAvailableResources tools that enable LLMs to fetch documentation programmatically, and refactors the resource fetching logic into a shared helper function that eliminates ~200 lines of duplicate code.
Key changes:
- Added three new MCP tools with Zod schema validation for programmatic resource access
- Refactored resource fetching by extracting common logic into
fetchResourceContentByUri()helper - Added GitHub workflow for daily upstream documentation testing
Reviewed Changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/index.ts | Added tool handlers, Zod schemas, and refactored resource fetching into shared helper function |
| package.json | Added zod and zod-to-json-schema dependencies for tool schema validation |
| .github/workflows/daily-upstream-test.yml | Added daily workflow to test against upstream MCP documentation and create issues on failures |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Addresses GitHub Copilot review comments on PR #47 by using the existing ContentItem interface instead of any type in resource mapping functions, improving type safety and code maintainability. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Refactors GetSpecificationResourceSchema to use the SUPPORTED_VERSIONS constant instead of hardcoding version values, improving maintainability. Adds type-safe helper function isSupportedVersion() to handle version validation consistently throughout the codebase. Changes: - Convert SUPPORTED_VERSIONS to const tuple for Zod enum compatibility - Add SupportedVersion type and isSupportedVersion() type guard - Replace all SUPPORTED_VERSIONS.includes() calls with type-safe helper - Eliminates version list duplication between constant and schema 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes #35
Fixes #49
Summary
New Tools
Key Changes
zodandzod-to-json-schemadependencies for tool schema validationfetchResourceContentByUri()helper functionTest Plan
🤖 Generated with Claude Code