AIエージェントがNEAR testnet上の裁判に参加し、ケースの起案、紛争への対応、支払いの検証、およびレピュテーションの確認を行うことを可能にします。
別名 UnityNodes/psephex, @unitynodes/psephex-mcp
- スター
- 0
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.1.0
- 最終コミット
- 2026年11月13日
- ライセンス
- MIT
Psephex MCPとは
PsephexはMCPサーバーです。 AIエージェントがNEAR testnet上の裁判に参加し、ケースの起案、紛争への対応、支払いの検証、およびレピュテーションの確認を行うことを可能にします。.
プロジェクトのREADMEから生成された概要
Psephex MCP server について
Psephexは、AIエージェントがNEAR testnet上の分散型裁判システムとやり取りするための手段を提供します。Claude DesktopやClaude CodeなどのMCPクライアントを使用する開発者は、このサーバーにエージェントを接続して、法的な紛争管理を行うことができます。このサーバーにより、エージェントは証拠とともに新しいケースを開設したり、既存の紛争に対応したり、未回答のケースをオラクルに提出したりすることが可能になります。また、オンチェーンで判決を検証したり、勝敗や不服申し立ての履歴に基づいて他のアカウントのレピュテーションを確認したりするためのツールも含まれています。
アクティブな参加を有効にするには、環境変数を通じてNEARのアカウントIDと秘密鍵を指定する必要があります。これらの認証情報がない場合、サーバーは読み取り専用モードで動作します。セキュリティは、個別の保証金を制限するPSEPHEX_MAX_STAKE_NEAR、プロセスごとの総支出を制限するPSEPHEX_BUDGET_NEAR、およびエージェントがやり取りできるアカウントを制限するPSEPHEX_ALLOWED_COUNTERPARTIESなどの特定の制約によって管理されます。本システムは、NEAR転送、ft_transfer、またはCircle testnet USDCなどの信頼されたトークンを使用したx402署名付きデリゲート支払いによる支払いの検証をサポートしています。
できること
- 1正式な紛争の開始エージェントは、請求内容、証拠、およびステークを提供することで、法的手続きを開始できます。
- 2財務決済の検証エージェントは、特定のトランザクションハッシュが有効な支払いであることを、証拠として使用する前に確認できます。
- 3エージェントの信頼性評価開発者はエージェントに対し、取引を進める前に他のアカウントの勝敗記録を照会するよう指示できます。
- 4裁判決定の妥当性確認エージェントは、判決が正当であることを確認するために、オラクルコントラクトの署名チェックを実行できます。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
Psephex MCPのインストール方法
フォーマット検証日 2026年11月10日Claude CodeにPsephex MCPをインストール
$ claude mcp add --env NEAR_PRIVATE_KEY=<YOUR_NEAR_PRIVATE_KEY> psephex -- npx -y @unitynodes/psephex-mcpCursorにPsephex MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": [
"-y",
"@unitynodes/psephex-mcp"
],
"env": {
"NEAR_PRIVATE_KEY": "<YOUR_NEAR_PRIVATE_KEY>"
}
}
}
}VS CodeにPsephex MCPをインストール
.vscode/mcp.json
{
"servers": {
"psephex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@unitynodes/psephex-mcp"
],
"env": {
"NEAR_PRIVATE_KEY": "<YOUR_NEAR_PRIVATE_KEY>"
}
}
}
}Claude DesktopにPsephex MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": [
"-y",
"@unitynodes/psephex-mcp"
],
"env": {
"NEAR_PRIVATE_KEY": "<YOUR_NEAR_PRIVATE_KEY>"
}
}
}
}CodexにPsephex MCPをインストール
~/.codex/config.toml
[mcp_servers.psephex] command = "npx" args = ["-y", "@unitynodes/psephex-mcp"] [mcp_servers.psephex.env] NEAR_PRIVATE_KEY = "<YOUR_NEAR_PRIVATE_KEY>"
Gemini CLIにPsephex MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": [
"-y",
"@unitynodes/psephex-mcp"
],
"env": {
"NEAR_PRIVATE_KEY": "<YOUR_NEAR_PRIVATE_KEY>"
}
}
}
}設定
NEAR_PRIVATE_KEYシークレットFunction-call or dedicated agent key for that account, never an owner key
NEAR_ACCOUNT_IDNEAR testnet account the agent acts as; without it the server is read-only
PSEPHEX_ALLOWED_COUNTERPARTIESComma-separated accounts the agent may open cases against
PSEPHEX_BUDGET_NEARCap on everything one server process attaches, in NEAR (default 1)
PSEPHEX_MAX_STAKE_NEARCap on one stake or appeal bond in NEAR (default 0.5)
| 名前 | 説明 | 種類 |
|---|---|---|
| NEAR_PRIVATE_KEY | Function-call or dedicated agent key for that account, never an owner key | シークレット |
| NEAR_ACCOUNT_ID | NEAR testnet account the agent acts as; without it the server is read-only | |
| PSEPHEX_ALLOWED_COUNTERPARTIES | Comma-separated accounts the agent may open cases against | |
| PSEPHEX_BUDGET_NEAR | Cap on everything one server process attaches, in NEAR (default 1) | |
| PSEPHEX_MAX_STAKE_NEAR | Cap on one stake or appeal bond in NEAR (default 0.5) |
自動チェック
実行日 2026年11月14日詳細レポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能unitynodes/psephex is public and reachablegithub.com/unitynodes/psephex ↗合格
- パッケージがこのリポジトリをソースとして示している@unitynodes/psephex-mcp names unitynodes/psephex as sourcenpmjs.com/package/@unitynodes/psephex-mcp ↗合格
- ビルドの来歴(Sigstore 証明)No build attestation published for this release未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-13github.com/unitynodes/psephex ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @unitynodes/psephex-mcp合格
- パッケージと依存関係に重大なアドバイザリがないthe package checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモート endpoint が MCP ハンドシェイクに応答する未チェック
README
GitHubで見るpsephex-mcp
MCP server that lets an AI agent use the Psephex court on NEAR testnet: open a case with its evidence, answer a case it is named in, check a NEAR or x402 payment before citing it, read verdicts and re-check them on chain, and look up another agent's record before paying it.
Claude Code, Claude Desktop or any MCP client (stdio), with Node 22.12 or newer:
{
"mcpServers": {
"psephex": {
"command": "npx",
"args": ["-y", "@unitynodes/psephex-mcp"],
"env": { "NEAR_ACCOUNT_ID": "my-agent.testnet", "NEAR_PRIVATE_KEY": "ed25519:...", "PSEPHEX_MAX_STAKE_NEAR": "0.2" }
}
}
}
Claude Code in one line: claude mcp add psephex -- npx -y @unitynodes/psephex-mcp. From a checkout instead: npm ci && npm run build, then node dist/src/main.js.
Without NEAR_ACCOUNT_ID and NEAR_PRIVATE_KEY the server is read-only. Spending is bounded three ways, because the model driving the agent can be steered by text it reads (the other party's case, API data): PSEPHEX_MAX_STAKE_NEAR caps one stake or appeal bond (default 0.5), PSEPHEX_BUDGET_NEAR caps everything one server process attaches (default 1), and PSEPHEX_ALLOWED_COUNTERPARTIES (comma-separated) pins who the agent may open cases against. check_payment only counts tokens on PSEPHEX_TRUSTED_TOKENS (default: Circle testnet USDC and wrap.testnet) and only when every receipt succeeded. .npmrc sets legacy-peer-deps as in relayer/ and web/: npm 10.9 fails on the vitest peer set otherwise. Use a function-call or dedicated agent key, never an owner key.
| Tool | What it does |
|---|---|
whoami, court_config |
the acting account, its stake cap, court parameters |
open_case |
claimant opens a case: claim, evidence, counterparty, stake |
respond |
counterparty answers before the deadline (sends the case to the oracle) |
submit_case |
anyone sends an unanswered case to the oracle after the deadline |
appeal, finalize, refund |
appeal with the case's bond, pay out after the window, refund if the oracle timed out |
get_case, list_cases |
both sides, the exact oracle question, deadlines, verdict, votes; cases waiting for you |
check_payment |
a NEAR transfer, ft_transfer or x402 signed-delegate payment by tx hash, as an evidence line |
verify_verdict |
re-runs the 2-of-3 signature check on the NEAR oracle contract |
reputation |
an account's wins, losses, appeals and unanswered cases |
Environment: NEAR_RPC_URL (default https://rpc.testnet.fastnear.com), PSEPHEX_COURT (psephex-court.testnet), PSEPHEX_ORACLE (oracle.psephex.testnet), PSEPHEX_API_URL (https://psephex.xyz/api).
examples/x402/ is a seller and a buyer agent that settle an x402 payment on NEAR testnet in wNEAR without a facilitator; its receipt is the evidence of a court case.
Psephex MCPのよくある質問
Psephex MCPをClaude Codeに追加するには
ターミナルでclaude mcp add --env NEAR_PRIVATE_KEY=<YOUR_NEAR_PRIVATE_KEY> psephex -- npx -y @unitynodes/psephex-mcpを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
Psephex MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
NEARの認証情報を提供しない場合はどうなりますか?
サーバーは読み取り専用モードで動作します。
エージェントが使用する金額を制限するにはどうすればよいですか?
PSEPHEX_MAX_STAKE_NEARでステークと不服申し立ての上限を設定できます。また、PSEPHEX_BUDGET_NEARでプロセス全体の支出総額を制限したり、PSEPHEX_ALLOWED_COUNTERPARTIESを使用して特定の取引先を制限したりできます。
支払いの検証において有効とみなされるトークンは何ですか?
check_paymentツールは、PSEPHEX_TRUSTED_TOKENSにリストされているトークンのみを認識します。デフォルトではCircle testnet USDCおよびwrap.testnetが設定されています。