Skip to content

Instantly share code, notes, and snippets.

@lance0
lance0 / Using Gemini and Context7 as MCP Server Sub-Agents for Claude Code
Last active December 6, 2025 19:23
Using Gemini as an MCP Server Sub-Agent for Claude Code
Using Gemini and Context7 as MCP Server Sub-Agents for Claude Code
Overview
This guide explains how to integrate Google's Gemini AI models and Context7 (by Upstash) as sub-agents for Claude Code using the Model Context Protocol (MCP). Gemini provides deep code analysis and large context processing, while Context7 fetches version-specific documentation to ensure accuracy and reduce hallucinations. Claude Code orchestrates the workflow, delegating tasks to Gemini for analysis and Context7 for documentation.
Why Use Gemini and Context7?
Gemini Strengths:
Large context window for analyzing extensive codebases or documentation.
Complements Claude’s conversational and editing capabilities.
Cost-effective via Gemini CLI’s free/low-cost plans.
Ideal for deep code review, debugging, and brainstorming.

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable