@defarm/mcp
@defarm/mcp
DeFarm 用の MCP サーバー — AI エージェントが、コード不要で説明によって検証可能な農業トレーサビリティデータを 封印、開封、検証、取り込み できるようにします。@defarm/sdk 上に構築: 封印されたフィールドはクライアント側で暗号化され、DeFarm サーバーはそれらに対して 構造的にブラインド です。
SDK と同じ理由でオープンソース (MIT): DeFarm を信頼せず、クライアントを監査してください。
セキュリティ体制 (最初に読むべき部分)
認証情報がモデルを経由することはありません。 認証はサーバー設定 (下記の環境変数) です。ログインツールはなく、パスワード、API キー、鍵素材を受け入れるツールもありません — テストスイートがそれを強制します。
秘密鍵がローカルキーストアから出ることはありません。 秘密素材を返すツールはなく、エージェントは ID とフィンガープリントのみを参照します。
安全なデフォルトは SDK から継承されます: 封印は明示的に宛先を指定しない限りプライベートかつ自己宛てです。暗号スイートは固定されており、選択肢はありません。
Related MCP server: Lemma Oracle MCP Server
セットアップ
// e.g. Claude Desktop / Claude Code MCP config
{
"mcpServers": {
"defarm": {
"command": "npx",
"args": ["-y", "github:defarm-repo/defarm-mcp"],
"env": {
"DEFARM_GATEWAY": "<your test-environment gateway>",
"DEFARM_EMAIL": "<workspace login>",
"DEFARM_PASSWORD": "<workspace password>",
"DEFARM_API_KEY": "<partner key, only if the agent should ingest>",
"DEFARM_KEYSTORE": "~/.defarm/keys.json"
}
}
}
}まず DEFARM_GATEWAY を テスト環境 に向けてください。本番環境は明示的な決定です。
ツール
ツール | 機能 |
| 設定された認証情報のユーザー + ワークスペース |
| (ローカルで) 生成 + ワークスペースの鍵ペアを登録 — ID/フィンガープリントのみ返す |
| このワークスペースの公開受信者バンドルを帯域外共有用にエクスポート |
| パートナー取り込み、 |
| 宛先指定された受信者向けにフィールドを封印 — DeFarm はブラインドのまま。バインディングは再検証 |
| 封印されたフィールドをローカルで復号。作者性はローカルで再検証 |
| 公開検証 (アンカー、RFC3161、封印されたコミットメント) — アカウント不要 |
| メンバーシップ制限 / 公開読み取り (一貫した 404) |
| SISBOV/チップ/… で解決 |
バックエンドでブロックされている操作 (grant、grantLink、revoke — engines#584/#574) はツールとして公開されません。エージェントが常に失敗するツールを見るべきではないからです。
開発
依存関係: npm から semver (^0.2.0) で @defarm/sdk — SHA ピン時代 (および「ピンは最新の SDK スクワッシュに従う」ルール) は、約束どおり 0.2.0 の公開で終了しました。
npm install
npm test # tool-table contract tests (no network, fake gateway)
npm run build && DEFARM_GATEWAY=... node dist/index.js # stdio serverライセンス
This server cannot be deployed
Maintenance
Related MCP Connectors
Tamper-evident proof creation and verification for AI agents via MCP, A2A, and REST.
Command your AI agents: verifiable passports, credential injection, full audit, revoke in 60s.
Trust Layer for AI work. Give your AI hands. Every run returns a verifiable receipt. No key needed.
AI-agent trust infrastructure for discovery, authority, execution, verification, and receipts.
Related MCP Servers
AlicenseNot gradedqualityFmaintenanceEnables AI assistants to analyze farm locations, retrieve soil and weather data, access commodity market prices, and chat with an agricultural advisor for farming recommendations.MIT- AlicenseNot gradedqualityAmaintenanceEnables AI agents to query cryptographically verified facts with zero-knowledge proofs, selective disclosure, and tamper-evident provenance.264 npm1Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to create cryptographically verifiable receipts of their delegated work, with capabilities for multi-party approval and offline verification.1164 npmApache 2.0
- AlicenseAqualityBmaintenanceEnables AI agents to access verifiable DePIN supply-side telemetry, browse and purchase data products using credits, query datasets, and verify data provenance with cryptographic and zero-knowledge tools.1057 npmMIT