Skip to content

feat: add get_chats MCP tool - #173

Merged
sweetmantech merged 1 commit into
testfrom
sweetmantech/myc-4064-mcp-tool-get_chats
Jan 29, 2026
Merged

feat: add get_chats MCP tool#173
sweetmantech merged 1 commit into
testfrom
sweetmantech/myc-4064-mcp-tool-get_chats

Conversation

@sweetmantech

Copy link
Copy Markdown
Contributor

Summary

  • Adds new get_chats MCP tool that mirrors /api/chats endpoint functionality
  • Reuses buildGetChatsParams for authorization logic (DRY)
  • Reuses selectRooms for database queries (DRY)
  • Supports account_id and artist_account_id filters
  • Follows same auth patterns as get_pulses tool

Test plan

  • Unit tests pass (11 tests)
  • Manual testing with MCP client

🤖 Generated with Claude Code

Adds a new MCP tool that mirrors the /api/chats endpoint functionality:
- Reuses buildGetChatsParams for authorization logic
- Reuses selectRooms for database queries
- Supports account_id and artist_account_id filters
- Follows same auth patterns as get_pulses tool
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel

vercelBot commented Jan 29, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentReviewUpdated (UTC)
recoup-apiReadyReadyPreviewJan 29, 2026 4:04pm

@coderabbitai

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actionsBot commented Jan 29, 2026

Copy link
Copy Markdown

Braintrust eval report

Catalog Opportunity Analysis Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
Catalog_availability2.3% (-47pp)1 🟢3 🔴
Llm_calls0 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration42.31s (-0.48s)1 🟢4 🔴

Catalog Songs Count Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
AnswerCorrectness19.4% (0pp)1 🟢2 🔴
Factuality66.7% (+33pp)1 🟢-
Llm_calls4 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Completion_accepted_prediction_tokens0tok (+0tok)--
Completion_rejected_prediction_tokens0tok (+0tok)--
Completion_audio_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration17.02s (-0.95s)1 🟢2 🔴

First Week Album Sales Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
Factuality35% (-30pp)-2 🔴
Llm_calls1 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Completion_accepted_prediction_tokens0tok (+0tok)--
Completion_rejected_prediction_tokens0tok (+0tok)--
Completion_audio_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration15.21s (-0.18s)2 🟢2 🔴

Memory & Storage Tools Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
Tools_called0% (+0pp)--
Llm_calls0 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration19.33s (+0.1s)-1 🔴

Monthly Listeners Tracking Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
AnswerSimilarity78.5% (0pp)2 🟢3 🔴
Llm_calls2 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration13.66s (+1.5s)1 🟢4 🔴

Search Web Tool Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
AnswerCorrectness26.5% (+2pp)4 🟢7 🔴
Llm_calls3 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Completion_accepted_prediction_tokens0tok (+0tok)--
Completion_rejected_prediction_tokens0tok (+0tok)--
Completion_audio_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration24.38s (+0.35s)4 🟢7 🔴

Social Scraping Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
Tools_called0% (+0pp)--
Llm_calls0 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration21.47s (-2.74s)3 🟢3 🔴

Spotify Followers Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
AnswerCorrectness20.7% (+0pp)4 🟢1 🔴
Llm_calls3 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Completion_accepted_prediction_tokens0tok (+0tok)--
Completion_rejected_prediction_tokens0tok (+0tok)--
Completion_audio_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration15.49s (+0.03s)3 🟢2 🔴

Spotify Tools Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
Tools_called0% (+0pp)--
Llm_calls0 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration31.98s (-2.23s)2 🟢-

TikTok Analytics Questions Evaluation (HEAD-1769702661)

ScoreAverageImprovementsRegressions
Question_answered0% (+0pp)--
Llm_calls0 (+0)--
Tool_calls0 (+0)--
Errors0 (+0)--
Llm_errors0 (+0)--
Tool_errors0 (+0)--
Prompt_tokens0tok (+0tok)--
Prompt_cached_tokens0tok (+0tok)--
Prompt_cache_creation_tokens0tok (+0tok)--
Completion_tokens0tok (+0tok)--
Completion_reasoning_tokens0tok (+0tok)--
Total_tokens0tok (+0tok)--
Duration20.84s (+5.1s)-2 🔴

@sweetmantech
sweetmantech merged commit ab79e1c into testJan 29, 2026
5 checks passed
@sweetmantech
sweetmantech deleted the sweetmantech/myc-4064-mcp-tool-get_chats branch January 29, 2026 16:26
@sweetmantechsweetmantech mentioned this pull request Jan 29, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@sweetmantech