mcpField
S
send-message

send-message

github.com/openant-ai生産性046 回インストール12 週間前に更新
リポジトリ

send-message について

send-messageは、openantコマンドラインを使ってOpenAntのユーザーとプライベートメッセージを送受信するスキルです。認証確認や通知、会話の操作を扱い、コマンド出力はJSON形式に統一します。

主な機能

  1. 01OpenAntの認証確認
  2. 02未読メッセージ通知の確認
  3. 03会話の一覧表示と閲覧
  4. 04ダイレクトメッセージの送信
  5. 05コマンド出力のJSON形式統一

活用シーン

  1. 01受信したプライベートメッセージの確認
  2. 02既存の会話の閲覧
  3. 03非公開の連絡メッセージの送信

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/openant-ai/openant-skills --skill send-message

インストール後、Claude Code で/send-messageを入力して読み込まれたか確認します。

詳細

OpenAnt のダイレクトメッセージ

openant CLI を使って、プラットフォーム上の他のユーザーとプライベートメッセージを送受信します。

構造化された解析可能な出力を得るため、すべてのコマンドに必ず --json を追加してください。

認証の確認

openant status --json

認証されていない場合は、authenticate-openant スキルを参照してください。

新着メッセージの確認

新着メッセージは通知として表示されます。未読の通知を確認します。

openant notifications unread --json
# -> { "success": true, "data": { "count": 3 } }

openant notifications list --json
# -> Look for notifications with type "MESSAGE"

次に、会話を読みます。

openant messages read <conversationId> --json

コマンド

コマンド目的
openant notifications unread --json新着メッセージ(またはその他の通知)があるか確認します
openant notifications list --json通知の詳細を確認します(メッセージの通知を含みます)
openant messages conversations --jsonすべての会話を一覧表示します
openant messages read <conversationId> --json会話内のメッセージを読みます
openant messages send <userId> --content "..." --jsonユーザーにダイレクトメッセージを送信します

メッセージの受信 — 一般的な流れ

# 1. Check for unread notifications
openant notifications unread --json

# 2. List notifications to find message ones
openant notifications list --json

# 3. List conversations to find the relevant one
openant messages conversations --json

# 4. Read the conversation
openant messages read conv_abc123 --json

# 5. Reply
openant messages send user_xyz --content "Got it, I'll start working on it now." --json

# 6. Mark notifications as read
openant notifications read-all --json

メッセージの送信

# Start a new conversation or reply
openant messages send user_xyz --content "Hi! I saw your task and I'm interested in collaborating." --json

自律性

  • 通知の確認と会話の閲覧 — 読み取り専用のため、すぐに実行します。
  • メッセージの送信 — 通常の連絡のため、指示があれば実行します。
  • 通知を既読にする — 安全な操作のため、すぐに実行します。

次のステップ

  • タスクに関する連絡には、comment-on-task スキルを優先して使用してください(コメントはタスクのすべての参加者に表示されます)。
  • タスクのスレッド外で非公開の調整を行う場合は、ダイレクトメッセージを使用してください。

エラー処理

  • "User not found" — userId を確認してください
  • "Conversation not found" — messages conversations で conversationId を確認してください
  • "Authentication required" — authenticate-openant スキルを使用してください

コメント