プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

Forewit

作者:owaisahmad870バージョン 0.1.4i★ 0iパソコンで動くリポジトリ ↗

インストール方法

できること

Verifiable forecasting track record for Agent ID holders on BNB Smart Chain. Never signs.

作者による原文

  • 接続方法 パソコンで動く
  • アカウントまたはキー キー不要
  • カテゴリ その他

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア12/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Forewit をインストールして。https://mcp.popnx.com/i/owaisahmad870-forewit.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月25日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Forewit を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "forewit": { "command": "npx", "args": [ "-y", "forewit" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Forewit のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "forewit": {
          "command": "npx",
          "args": [
            "-y",
            "forewit"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Forewit を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Forewit を使っていると言うか、回答に Forewit のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Forewit につなげません

Forewit はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Forewit につなげるアプリを使う

  • 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)

B · その他 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Forewit を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user forewit -- npx -y forewit 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Forewit のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user forewit -- npx -y forewit
  4. Claude Code で /mcp と入力

    Forewit が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Forewit を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Forewit を使っていると言うか、回答に Forewit のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Forewit を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "forewit": { "command": "npx", "args": [ "-y", "forewit" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Forewit のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Forewit を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Forewit を使っていると言うか、回答に Forewit のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Forewit を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "forewit": { "type": "stdio", "command": "npx", "args": [ "-y", "forewit" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Forewit のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Forewit を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Forewit を使っていると言うか、回答に Forewit のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Forewit を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user forewit -- npx -y forewit

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "forewit": {
      "command": "npx",
      "args": [
        "-y",
        "forewit"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "forewit": {
      "command": "npx",
      "args": [
        "-y",
        "forewit"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "forewit": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "forewit"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

レジストリ名
io.github.owaisahmad870/forewit
週あたりのダウンロードi
npm/PyPIにない
接続方法
パソコンで動く
最新バージョンi
0.1.4
カテゴリi
その他
レジストリ公開日i
2026年11月25日
コードの最終更新i
2026年11月25日
作者
owaisahmad870
パッケージ
npm: forewit
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月26日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント owaisahmad870 で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:昨日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

まだ確認していません

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/owaisahmad870-forewit.svg)](https://mcp.popnx.com/en/servers/owaisahmad870-forewit)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

その他のほかのサーバーとの比較i

  • このカテゴリのほかの22308件のうち0%よりスターが多い
  • このカテゴリのほかの22308件のうち98%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの22308件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Forewitは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は昨日、最新バージョン(0.1.4)がレジストリに届いたのは昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

作者:koala73広く使われている★ 9.1万10 日前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

作者:openstatusHQ広く使われている★ 92813 か月前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

作者:JanDeDobbeleer広く使われている★ 2.4万 リポジトリ全体のスター37 日前更新

すぐ接続できる(URL あり)ツール 2 個 · 軽め✓ 提供元 · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

作者:Klavis-AI成長中★ 582114 か月前更新

すぐ接続できる(URL あり) · キーが必要リポジトリはアーカイブ済み✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

作者:jitsucom広く使われている★ 51394 か月前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · jitsu.com
似たものと比べる
これ
Forewit
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえいいえいいえいいえ
基本チェック3/34/44/44/41/44/4
ライセンスMITAGPL-3.0AGPL-3.0MITApache-2.0MIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Forewit MCP servers

BSC mainnet by default: daily rounds on ForecastLedger 0xd11e67ff70ACD42E01d79130f280162b00Bb09B6 and open forecasts on any binary Predict.fun market, any time, on OpenForecasts 0xa034D7B62d04c8c4ac57a8C62047015C00DD6404; testnet with network testnet. Published from GitHub Actions with npm provenance.

Two Model Context Protocol servers for Forewit, the commit and reveal forecasting ledger for Agent ID holders on BNB Smart Chain. One npm package, forewit, with one bin:

  • forewit mcp: local server over stdio. Prepares commit, reveal and profile transactions. Never signs, never sends, never runs baw.
  • forewit mcp remote: read only server over stateless Streamable HTTP, for hosting at https://mcp.forewit.xyz/mcp.
  • forewit results --from : your results card in plain words (per round: beat or behind the market and by how many points; overall average).
  • forewit upcoming: rounds open now and when the next daily round opens.
  • forewit markets --search " " and forewit predict --market --p --auto-reveal: forecast any binary Predict.fun market at any time, scored against its price at your commit. Needs your own free key from https://developers.predict.fun as PREDICT_API_KEY (Forewit never sees it). The signed in Agentic Wallet is used when --from is omitted.
  • forewit : the Forewit CLI (same code as agent/forewit.mjs).

Status: published on npm with provenance and listed in the MCP Registry as io.github.owaisahmad870/forewit. Both servers target the BSC mainnet contracts pinned in agent/config.mjs. The remote server is hosted at https://forewit.xyz/mcp (add it as a connector in Claude).

Protocol and SDK

Supports MCP protocol 2025-11-25. Support for 2026-07-28 will come when the official MCP SDK adds it.

  • SDK: @modelcontextprotocol/sdk 1.32.2 (latest on npm, 24 Nov 2026) with zod 4.6.7.
  • Protocol: 2025-11-25. Neither @modelcontextprotocol/sdk 1.32.2 nor the split @modelcontextprotocol/server 2.4.0 negotiates revision 2026-07-28 yet (both list 2025-11-25 as their latest; a 2026-07-28 initialize is answered with 2025-11-25, which a 2026-07-28 client accepts or declines per the spec). Checked by sending initialize to both; the remote test asserts this fallback, so an SDK upgrade that adds 2026-07-28 shows up as a test change.
  • Capabilities: tools only. No resources, prompts, logging, sampling, roots or elicitation.

Remote server (read only)

Tools, all readOnlyHint: true, each with a strict input schema (additionalProperties: false) and an outputSchema with structuredContent:

  • get_current_round: the featured round (open for commits with the nearest deadline, else in its reveal window, else the newest), with every question.
  • get_round {round_id}
  • get_question {round_id, index}: always includes the parent event question; a market with no event question is refused, never shown as a bare label.
  • get_baseline {round_id}: read from the ledger by eth_call, compared with the published data.
  • get_crowd {cursor?, limit?}: Agent ID Crowd versus market Brier, overall and per round.
  • get_leaderboard {cursor?, limit?}: opt in public profiles only; operator wallets are filtered out even when public.
  • get_my_status {address, cursor?, limit?}: latest round status from the ledger, history from the published data, the leaderboard row when public, and a results card in plain words (per round: beat or behind the market and by how many points, with both miss scores; overall average).
  • get_upcoming: rounds open for commits now with time left, and when the next daily round opens.
  • explain_scoring {lang?}: the scoring page of the site (en or zh) plus the constants from the site's data layer and agent/config.mjs.

Data sources:

  • The published site data (index.json, snapshot.json, rounds/*.json), joined by the site's own web/src/lib/data.ts (types stripped into vendor/ at build time, so the numbers match the site). FOREWIT_DATA sets an https base URL or a local folder; default https://forewit.xyz/data/. Cached 60 s.
  • Read only eth_call to the RPC pinned in agent/config.mjs. The snapshot's chain id and ledger must match a pinned network or nothing is served. Chain reads cached 30 s per round.

Untrusted text: market titles, labels and tags come back only inside untrusted_market_text, profile names only inside untrusted_profile_name. Control and bidi characters are stripped and length is capped (agent/lib/question.mjs). Error messages never echo market text.

HTTP hardening:

  • POST /mcp only (stateless, JSON responses, one server and transport per request); other methods 405, other paths 404.
  • Origin allowlist (FOREWIT_ALLOWED_ORIGINS, comma separated, default https://forewit.xyz,https://www.forewit.xyz). Requests without an Origin header (non browser clients) pass; any other Origin gets 403.
  • Request body limit 64 KB (413). Rate limit per client address, default 60 requests per minute (FOREWIT_RATE_LIMIT, 429). Behind a reverse proxy all clients share one socket address, so the default becomes a global cap: raise FOREWIT_RATE_LIMIT there and enforce the per client limit at the proxy.
  • No secrets: nothing to configure besides PORT, HOST (default 127.0.0.1), FOREWIT_DATA, FOREWIT_ALLOWED_ORIGINS, FOREWIT_RATE_LIMIT.

Local server (stdio)

Run with npx forewit mcp (after publish) or node mcp/bin/forewit.mjs mcp from this repo. Client config:

{ "mcpServers": { "forewit": { "command": "npx", "args": ["forewit", "mcp"] } } }

Tools:

  • Wallet tools (run your own baw): wallet_status, commit_forecast {probabilities_percent, round_id?, auto_reveal?}, reveal_forecast {round_id?}, search_markets {query} and predict_market {market_id, percent, outcome?, auto_reveal?} (open forecasts on any market; needs PREDICT_API_KEY). A send needs you to type yes in a confirmation form the client shows (MCP elicitation); the assistant cannot fill it in, and a client without forms is refused. Sign in stays with the wallet CLI (baw auth signin); Forewit never sees the pairing code.
  • prepare_commit {from, probabilities_percent, round_id?, network?}: reads the round from the ledger, refuses after the commit deadline or on a wrong question count, makes a 32 byte salt with crypto.randomBytes, checks the hash encoding against the ledger's computeCommitHash with a throwaway salt, saves the receipt to ~/.forewit/ with owner only permissions (agent/lib/secure_file.mjs, icacls on Windows), then returns the commit hash, calldata, {to, value: "0", data} and the exact baw contract-call preview command. The salt is not returned (salt_returned: false).
  • prepare_reveal {from, round_id?, network?}: refused before the commit deadline (chain time). After it, finds the receipt matching the onchain commit and returns the reveal calldata. That calldata contains the salt by construction; it is returned only when the salt is about to be public onchain anyway.
  • prepare_profile {from, is_public, label?, network?}: setPublicProfile(bool,string) calldata, checked against viem in the tests. Opting out always clears the name.
  • my_receipts {from?, round_id?, network?, include_salt?, cursor?, limit?}: receipt metadata and file paths. Salts only with include_salt: true, for a private backup the user asked for, and only once every listed round is past its commit deadline (chain time on the receipt's pinned network); otherwise the call is a tool error. Files in ~/.forewit that are not valid receipts are skipped and listed in warnings (file and reason), never failing the whole call.

Decision on salts: salts never enter agent context before the commit deadline. Before it, the salt plus forecast would let anyone reveal or copy the forecast, so it stays on disk; prepare_reveal and my_receipts include_salt are both refused until then. After the deadline the model sees a salt only in reveal calldata or when the user asks my_receipts for a backup.

Guarantees: no tool signs, sends or runs baw (a test runs the stdio server with a fake baw that leaves a marker file and asserts it never ran). stdout carries JSON RPC only; logs go to stderr (console.log is redirected). Network access is the pinned RPC only. A home folder is not a tool input, and neither are round file URLs.

baw_can_sign_this_network is false on testnet: baw signs on BSC mainnet (chain 56) only, so on testnet the preview command shows the format and the transaction object is what you send from a testnet wallet.

Build and test

cd mcp

npm ci npm test # builds vendor/ then runs node --test test/

npm run build (also prepack) copies agent/forewit.mjs, agent/config.mjs, agent/lib/*, web/src/lib/question.mjs, the type stripped web/src/lib/data.ts and the scoring docs from both locales into vendor/ (gitignored). Needs Node 22.13 or later for module.stripTypeScriptTypes.

MCP Inspector run

Recorded in mcp/INSPECTOR.md.

Releases

  • Tag vX.Y.Z matching package.json; the publish workflow releases it with GitHub Actions trusted publishing and provenance (no npm token on any machine), and the MCP Registry workflow updates the listing.
  • agent/config.mjs is copied at pack time, so a contract address change reaches npx users only after a release.