feat(claire): add 4 Claire MCP tools#15
Merged
Merged
Conversation
…watch, find_competitors Wires Max's chat agent into Claire via the existing /api/v1/claire/* proxy in max-agent. Same service-secret + on-behalf-of pattern that onboarding uses — no per-user Claire token needed; Max vouches for the user. Tools: - claire_search(query, mode?) - claire_deep_research(name, entity_type, mode?) - claire_market_watch(url, criteria?, mode?) - claire_find_competitors(url) All four are synchronous from the tool's POV: max-agent's shared runHubJob() handles the Claire submit + poll internally and returns the final result, so the MCP layer stays a thin proxy matching the Apollo / Explorium pattern. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/v1/claire/*routes already onmax-agentmain — same service-secret + on-behalf-of pattern, no per-user Claire token neededregisterClaireToolsinmcp/register.tsTools added
claire_searchclaire_deep_researchclaire_market_watchclaire_find_competitorsAll four are synchronous from the tool's POV —
max-agent's sharedrunHubJob()handles Claire submit + poll internally and returns the final result.How it flows
Test plan
claire_deep_researchcall withentity_type: "company"returning resultclaire_find_competitorsreturning a listDIGITALCREW_API_BASE_URLalready covers ittsc --noEmitclean (verified locally)🤖 Generated with Claude Code