Skip to content

feat(mcp): add geminiclaw_fetch_message tool - #4

Merged
e-mon merged 2 commits into
mainfrom
feat/fetch-message-tool
Mar 13, 2026
Merged

feat(mcp): add geminiclaw_fetch_message tool#4
e-mon merged 2 commits into
mainfrom
feat/fetch-message-tool

Conversation

@e-mon

@e-mon e-mon commented Mar 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Discord / Slack のメッセージ URL を受け取り、対象メッセージと周辺コンテキストを取得する geminiclaw_fetch_message MCP ツールを admin-server に追加
  • URL からプラットフォームを自動判別(Discord: discord.com/channels/{guild}/{channel}/{message}, Slack: {workspace}.slack.com/archives/{channel}/p{ts}
  • Slack は before + after の2リクエスト並列で対象メッセージ前後の周辺コンテキストを取得

Test plan

  • parseMessageUrl の単体テスト 17件追加(Discord 各バリエーション、Slack、無効 URL)
  • ビルド通過(bun run build
  • 全テスト通過(547 tests passed)
  • 実環境で Discord URL を貼って動作確認
  • 実環境で Slack URL を貼って動作確認

🤖 Generated with Claude Code

e-mon and others added 2 commits March 13, 2026 21:37
…solution

Add a new MCP tool to the admin server that fetches message content
and surrounding context from Discord or Slack when given a message URL.
Supports discord.com (incl. ptb/canary/discordapp variants) and
slack.com archive URLs with automatic platform detection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove unused channelId param from fetchSlackHistory (already in
URLSearchParams). Auto-formatted by biome.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@e-mon
e-mon merged commit 28a28bd into main Mar 13, 2026
4 checks passed
@e-mon
e-mon deleted the feat/fetch-message-tool branch March 13, 2026 12:44
Sign up for free to 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