exa-code-search
Code Search (Exa)
Tool
Use exec to call: mcporter call exa-code.get_code_context_exa <params>
Critical Rules
- Never run in main context. Spawn subagents or run sequentially.
- Always include the programming language in the query to reduce noise.
- Good: "Go generics", "Python asyncio", "React 19 hooks"
- Bad: "generics", "async", "hooks"
- Include framework + version when relevant: "Next.js 14", "Playwright Python".
- Include exact identifiers (function names, error messages) when you have them.
Token Tuning
| Need | tokensNum |
|---|---|
| Quick snippet | 1000-3000 |
| Most tasks | 5000 (default) |
| Complex integration | 10000-20000 |
Call Syntax
# Find code example
mcporter call exa-code.get_code_context_exa \
query="Python asyncio aiohttp client example" \
tokensNum=5000
# API usage
mcporter call exa-code.get_code_context_exa \
query="OpenAI Responses API streaming Python" \
tokensNum=8000
# Debugging
mcporter call exa-code.get_code_context_exa \
query="Next.js 14 App Router useSearchParams error boundary" \
tokensNum=5000
# Complex integration
mcporter call exa-code.get_code_context_exa \
query="Playwright Python page.wait_for_selector timeout handling" \
tokensNum=15000
Output Format
Return:
- Best minimal working snippet(s) — copy/paste ready
- Notes — version constraints, gotchas
- Sources — URLs if present
Deduplicate similar results; keep only the best representative snippet per approach.
More from codealive-ai/ai-cofounder
exa-people-research
People research using Exa search. Finds LinkedIn profiles, professional backgrounds, experts, team members, and public bios. Use when searching for people, finding experts, or looking up professional profiles.
2strategic-review
Deep multi-phase strategic review of a specific decision — premise challenge, alternatives, risk map, adversarial review. Use for big choices (wedge, pricing, channel, hire, pivot). For quick framework lookup, use decision-playbook. For diagnosing why something is broken, use business-investigation.
2enterprise-sales
Help users navigate enterprise sales. Use when someone is closing large deals, managing complex buying committees, handling procurement, or converting PLG users to enterprise contracts.
2web-browser
Browse the web using agent-browser CLI with Lightpanda engine. Read pages, extract content, interact with elements.
2daily-recap
End-of-day consolidation — summarize daily log, promote durable facts to MEMORY.md, identify open threads
2launch-marketing
Plan and execute general product launches — PR outreach, GTM campaigns, buzz generation. For Product Hunt specifically, use product-hunt-launch (specs/tactics) and ph-launch-timeline (30-day prep plan) instead.
2