Skip to main content
Glama

🚩 Flag MCP


✨ 「Flag」とは?

ビジュアルノベルやギャルゲーにおいて、「フラグ」(flag)とは、選択肢が新しい物語の分岐を引き起こす瞬間のことです。一つの決断がすべてを変えます。

Flag MCPは、その力をAI支援コーディングにもたらします。AIアシスタントが岐路に立ったとき、推測するのではなく、フラグを立ててあなたがルートを選択するのを待ちます。

🎮 あなたが主人公です。 AIはすべての分岐点で待機します。

💎 すべてのフラグがルートを形作ります。 推測による書き直しはもう必要ありません。

🚀 リッチな対話。 テキスト、スクリーンショット、アノテーション — あなたの武器をフル活用できます。

これにより、AIコーディングは「うまくいくことを願う」ものから、あなたがコントローラーを握る物語へと変わります。


適用範囲:

  • リクエスト単位で課金されるコーディングプラン。

  • AIの挙動を制御したい開発者。

Related MCP server: Human-In-the-Loop MCP Server

🔥 Before & After

❌ Flag MCPなし

✅ Flag MCPあり

AIが推測 → 間違ったコード → 苦痛な修正

AIがフラグを立てる → あなたが選択 → 正しいコード

「えっ、どういう意味?」というやり取りが何度も続く

構造化されたダイアログ1回で、非常に明確

不安:「AIは何をしようとしているんだ?!」

自信:すべての行動をあなたが確認

無力な乗客

あなたがルート設定者


🎯 主な機能

  • 🖥️ ダークテーマUI — ワークフローに馴染む洗練されたネイティブデスクトップダイアログ

  • ✅ ルート選択 — 構造化された事前定義オプション(チェックボックス形式)

  • 💬 フリーテキスト — 事前定義されたルートでは不十分な場合、独自のスクリプトを記述可能

  • 📷 リッチメディアツール

    • クリップボードからの画像貼り付け

    • ローカルファイルの選択

    • スクリーンショット + 内蔵アノテーター(矩形、円、矢印、ペン、テキスト、切り抜き)

  • 🖼️ プロンプト画像 — AIが画像を表示可能(ローカルパス、file://、http(s)://)

  • 🔒 セキュリティ第一 — リモート画像の検証、サイズ制限、非同期読み込み

  • 🎨 macOS最適化 — 適切なアイコン処理と視覚的な洗練


📦 インストール

前提条件

  • Python >= 3.11

  • uv (推奨) または pip

クイックインストール

git clone https://github.com/pauoliva/interactive-feedback-mcp.git
cd interactive-feedback-mcp
uv sync

⚙️ 設定

MCPクライアントの設定に追加してください:

Cursor (mcp.json) / Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "interactive-feedback": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/interactive-feedback-mcp",
        "run",
        "server.py"
      ],
      "timeout": 900000,
      "autoApprove": ["interactive_feedback"]
    }
  }
}

⚠️ 注意: タイムアウトはCursorの場合ミリ秒単位です(900000 = 15分)。クライアントによっては秒単位を使用する場合があるため、適宜調整してください。


🚩 interactive_feedback ツール

引数

パラメータ

型

説明

message

string

表示する質問/プロンプト

predefined_options

array

オプション。迅速な決定のためのルート選択肢

message_images

array

オプション。表示する画像(ローカル/リモートURL)

戻り値

  • ユーザーからのテキストフィードバック

  • オプションの画像添付ファイル(MCP画像コンテンツブロックとして)


🧙 プロのヒント

推奨エージェントルール

AIアシスタントのカスタム指示に以下を追加してください:

If requirements are unclear, call interactive_feedback before implementing.
Present predefined options whenever possible — give the user clear route choices.
Before finishing a task, call interactive_feedback once more for final confirmation.

環境変数

変数

デフォルト

説明

INTERACTIVE_FEEDBACK_TIMEOUT_SEC

60000

UIプロセスの最大生存時間

INTERACTIVE_FEEDBACK_ICON

—

カスタムアプリのアイコンパス

INTERACTIVE_FEEDBACK_REMOTE_IMAGE_TIMEOUT_SEC

5

リモート画像取得のタイムアウト

INTERACTIVE_FEEDBACK_REMOTE_IMAGE_MAX_BYTES

10485760

リモート画像の最大サイズ(10MB)


🛡️ セキュリティと信頼性

  • ✅ リモート画像はコンテンツタイプ(image/*)で検証済み

  • ✅ サイズ制限により大きなペイロードを拒否

  • ✅ 非同期フェッチによりUIの応答性を維持

  • ✅ ローカルファイルは明示的に参照された場合のみ読み取り


📄 ライセンス

MITライセンス — フォークして、フラグを立てて、リリースしよう。


🚩 フラグを立てろ。独自のルートを書き記せ。

自分のコードベースのNPCになることを拒む開発者のために、💜を込めて作成。

Available Tools

1 tool
interactive_feedbackA

Request interactive feedback from the user. Supports text and image attachments. 使用方式:

  • 当你通过此工具询问用户时,务必说明需要用户确定的内容。

  • 请在完成用户布置的工作后调用该工具时,提供"结束"的选项,如果用户选择,则本次请求结束. 使用技巧:

  • 请给出可选项,让用户选择,选项中请包涵你最推荐的选项,并说明理由.

  • 针对每个选项,请给出对应的描述,让用户了解每个选项的含义. 什么时候使用:

  • 每当你全部工作完成时,请调用此工具,而非直接结束流程.

  • 每当你遇到需要用户确定的点时(例如进行需求讨论,或者执行任务中遇到重要分岔路口时),务必调用此工具.

Inputs: message, predefined_options, message_images. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool available, there is no ambiguity or risk of tool misselection. The single tool has a clear, distinct purpose that does not overlap with any other tools.

    Naming Consistency5/5

    The single tool follows a clear snake_case naming convention. While 'interactive' is an adjective rather than a verb, there are no other tools to create inconsistency, so the naming pattern is uniform.

    Tool Count2/5

    A single tool is insufficient for the apparent 'Flag' domain suggested by the server name. Even for a minimal utility server, one generic feedback tool represents a severely undersized tool surface that likely cannot fulfill the server's intended purpose.

    Completeness1/5

    The server named 'Flag MCP' implies a feature flag or flagging domain, yet provides only a generic user feedback tool with no flag creation, management, querying, or lifecycle operations. This represents a severely incomplete surface for the stated purpose.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to request user input through interactive popups in VS Code, supporting button selections, text inputs, and confirmation dialogs. This system allows for seamless human-in-the-loop interactions without interrupting the conversational flow.
      4
      -
    • A
      license
      A
      quality
      F
      maintenance
      Enables AI assistants like Claude to interact with humans through intuitive GUI dialogs, supporting text input, choices, confirmations, and information displays.
      6
      164
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to render native-looking floating dialogs and forms on the user's desktop, capturing user interactions like button clicks and form inputs.
      -