-
Notifications
You must be signed in to change notification settings - Fork 93
fix MCP Resource List issue #33 #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughUpdated browser-status resource registration to use a descriptor with uriTemplate, list, and get handlers instead of ResourceTemplate. Added a list endpoint returning metadata and adjusted get to include mimeType and session-aware text. No other functional changes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant S as MCP Server
participant R as Resource Registry
participant SS as Session State
rect rgba(230,245,255,0.5)
note over C,S: List resources
C->>S: list("browser-status")
S->>R: resolve descriptor
R-->>S: { uriTemplate, list, get }
S->>R: list()
R-->>S: [{ uri: "browser-status://current", name, description, mimeType }]
S-->>C: Resource list
end
rect rgba(235,255,235,0.5)
note over C,S: Get resource
C->>S: get("browser-status://current")
S->>R: resolve descriptor
R-->>S: { get }
S->>SS: read currentSession
SS-->>S: sessionId or null
S->>R: get(uri)
R-->>S: { contents: [{ uri, mimeType: "text/plain", text }] }
S-->>C: Resource contents
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
|
@angiejones : this is to make the MCP compliant with the standard. Also allows it to work with assistants like Kiro |
fixes #33
Summary by CodeRabbit