Repository navigation
feat: add Context7 MCP server and agent skill - #194
Conversation
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
me | a466438 | Commit Preview URL Branch Preview URL |
May 21 2026, 06:31 PM |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Bundle ReportBundle size has no change ✅ Affected Assets, Files, and Routes:view changes for bundle: molecular-mars-esmAssets Changed:
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR adds Context7 MCP server integration to the agent skills documentation and configuration, then refactors the chat API handler to access Cloudflare Worker bindings through the request context instead of direct imports, updates missing-binding error responses from 500 to 503, and refactors tests to use per-test environment injection. ChangesContext7 MCP Server Integration
Chat API Handler Binding Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
- Update mcp_config.json with Context7 server details - Add Context7 setup instructions to docs/mcp.md - Create new agent skill for Context7 documentation retrieval - Update AGENTS.md with Context7 server and skill reference Co-authored-by: alehar9320 <5390430+alehar9320@users.noreply.github.com>
Co-authored-by: alehar9320 <5390430+alehar9320@users.noreply.github.com>
- Add test case for missing runtime/env fallback in chat API - Ensure 100% coverage for src/pages/api/chat.ts Co-authored-by: alehar9320 <5390430+alehar9320@users.noreply.github.com>
- Add Context7 MCP server configuration and agent skill - Update docs/mcp.md with setup instructions - Fix Render build failure by using locals.runtime.env for Cloudflare bindings - Improve chat API test coverage and fix merge conflicts Co-authored-by: alehar9320 <5390430+alehar9320@users.noreply.github.com>
- Integrate Context7 MCP server and agent skill - Update documentation with Context7 setup instructions - Fix Render build failure by removing direct 'cloudflare:workers' import - Improve chat API test coverage for binding resolution logic - Resolve merge conflicts with latest main branch Co-authored-by: alehar9320 <5390430+alehar9320@users.noreply.github.com>
3434a43 to
a0c36a3
Compare
- Fixes linting error (no-unused-vars) in src/__tests__/chat-api.test.ts - Ensures CI quality checks pass Co-authored-by: alehar9320 <5390430+alehar9320@users.noreply.github.com>
- Add beforeEach hook to reset mockEnv state between tests - Replace runtime env parameter with shared mockEnv object for better test isolation - Update AI binding mock to use proper Env type signature - Change missing AI binding error status from 503 to 500 - Simplify test context creation by removing runtimeEnv parameter - Add comments explaining process.env fallback test behavior
- Integrate Context7 MCP server and agent skill - Update documentation with Context7 setup instructions - Fix Render build failure by removing direct 'cloudflare:workers' import - Improve chat API test coverage for binding resolution logic - Resolve linting and type errors in tests Co-authored-by: alehar9320 <5390430+alehar9320@users.noreply.github.com>
This PR adds the Context7 Model Context Protocol (MCP) server to the repository. Context7 provides up-to-date, version-specific documentation and code examples for various libraries and APIs.
Changes:
context7MCP server configuration tomcp_config.json.docs/mcp.md..agents/skills/context7/SKILL.mdto guide AI agents on how to use the server effectively.AGENTS.mdto include Context7 in the list of available MCP servers and skills.Verified with
npm run format,npm run lint,npm run check, andnpm run test.PR created automatically by Jules for task 14185377194801000755 started by @alehar9320
Summary by CodeRabbit
New Features
Documentation
Improvements