スコープ付きの管理トークンを使用して、ブロックチェーンのRPCキー、ネットワーク、使用量、およびプリペイド請求を管理します。
別名 SolidRPC/agent-toolkit, agent-toolkit, @solidrpc/agent
- スター
- 0
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.1.1
- 最終コミット
- 2026年11月11日
- ライセンス
- MIT
SolidRPC MCPとは
スコープ付きの管理トークンを使用して、ブロックチェーンのRPCキー、ネットワーク、使用量、およびプリペイド請求を管理します。
プロジェクトのREADMEから生成された概要
SolidRPC MCP server について
SolidRPCは、ブロックチェーンRPC接続の管理レイヤーを提供し、開発者が定義された予算内でアプリケーションをさまざまなネットワークに接続できるようにします。ルーティング、監視、フェイルオーバーなどの複雑なタスクを、単一の統合によって処理します。このツールキットには、Node.js管理クライアントと、solidrpc mcpコマンドを使用して実行できるローカルのMCP serverが含まれています。Claude Desktop、Cursor、CodexなどのAIクライアントでの使用を想定して設計されています。
ユーザーは、アカウント、キー、使用量、および請求を制御するsa_管理トークンを使用して、インフラストラクチャを管理します。実際のブロックチェーンリクエストには、システムはak_ RPCキーを使用します。サーバーは、ネットワークの検出、RPCキーのライフサイクル管理、使用量の追跡、および請求に関する問い合わせのためのツールを提供します。開発者は、SOLIDRPC_READ_ONLY環境変数を設定することで読み取り専用セッションを強制でき、これにより、全ツールカタログを表示しつつ、データの変更や認証情報の操作を防止できます。
できること
- 1ブロックチェーンネットワークの使用量を監視するAIエージェントが現在のRPC使用量と請求ステータスを確認し、コストが承認された予算内に収まっていることを確認できます。
- 2RPC認証情報を管理する開発者がエージェントに対し、特定のブロックチェーンネットワーク用のRPCキーの一覧表示や新規作成を指示できます。
- 3利用可能なブロックチェーンネットワークを検出するエージェントが、どのネットワークがサポートされており、接続可能であるかを特定できます。
- 4読み取り専用アクセスを強制する開発者がAIクライアントの権限を制限し、アカウント設定やキーの変更を許可せずにデータの閲覧のみを行わせることができます。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
SolidRPC MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにSolidRPC MCPをインストール
$ claude mcp add --env 'SOLIDRPC_TOKEN_FILE=<SOLIDRPC_TOKEN_FILE>' agent-toolkit -- npx -y @solidrpc/agentCursorにSolidRPC MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"agent-toolkit": {
"command": "npx",
"args": [
"-y",
"@solidrpc/agent"
],
"env": {
"SOLIDRPC_TOKEN_FILE": "<SOLIDRPC_TOKEN_FILE>"
}
}
}
}VS CodeにSolidRPC MCPをインストール
.vscode/mcp.json
{
"servers": {
"agent-toolkit": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@solidrpc/agent"
],
"env": {
"SOLIDRPC_TOKEN_FILE": "<SOLIDRPC_TOKEN_FILE>"
}
}
}
}VS Code CLIにSolidRPC MCPをインストール
$ code --add-mcp '{"name":"agent-toolkit","type":"stdio","command":"npx","args":["-y","@solidrpc/agent"],"env":{"SOLIDRPC_TOKEN_FILE":"<SOLIDRPC_TOKEN_FILE>"}}'Claude DesktopにSolidRPC MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"agent-toolkit": {
"command": "npx",
"args": [
"-y",
"@solidrpc/agent"
],
"env": {
"SOLIDRPC_TOKEN_FILE": "<SOLIDRPC_TOKEN_FILE>"
}
}
}
}CodexにSolidRPC MCPをインストール
$ codex mcp add agent-toolkit --env 'SOLIDRPC_TOKEN_FILE=<SOLIDRPC_TOKEN_FILE>' -- npx -y @solidrpc/agentCodex config.tomlにSolidRPC MCPをインストール
~/.codex/config.toml
[mcp_servers.agent-toolkit] command = "npx" args = ["-y", "@solidrpc/agent"] [mcp_servers.agent-toolkit.env] SOLIDRPC_TOKEN_FILE = "<SOLIDRPC_TOKEN_FILE>"
Gemini CLIにSolidRPC MCPをインストール
$ gemini mcp add -s user -e 'SOLIDRPC_TOKEN_FILE=<SOLIDRPC_TOKEN_FILE>' agent-toolkit npx -- -y @solidrpc/agentGemini settings.jsonにSolidRPC MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"agent-toolkit": {
"command": "npx",
"args": [
"-y",
"@solidrpc/agent"
],
"env": {
"SOLIDRPC_TOKEN_FILE": "<SOLIDRPC_TOKEN_FILE>"
}
}
}
}設定
SOLIDRPC_TOKEN_FILE必須Absolute path to a private file containing only your sa_ management token. Requires Node.js 22.20.0 or newer.
| 名前 | 説明 | 種類 |
|---|---|---|
| SOLIDRPC_TOKEN_FILE | Absolute path to a private file containing only your sa_ management token. Requires Node.js 22.20.0 or newer. | 必須 |
自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能solidrpc/agent-toolkit is public and reachablegithub.com/solidrpc/agent-toolkit ↗合格
- パッケージがこのリポジトリをソースとして指定@solidrpc/agent names solidrpc/agent-toolkit as sourcenpmjs.com/package/@solidrpc/agent ↗合格
- ビルドの来歴 (Sigstore 証明)No build attestation published for this release未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-11github.com/solidrpc/agent-toolkit ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @solidrpc/agent合格
- パッケージおよびその依存関係に重大な勧告なしthe package checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答HTTPS endpoint answered 401 (sign-in required)合格
README
GitHubで見るSolidRPC agent toolkit
Let an agent connect your application to blockchain RPC within your approved budget. SolidRPC handles routing, failover, monitoring, and recovery behind one RPC integration.
This repository contains a Node.js management client, a local MCP server, an agent skill, and runnable RPC examples. The hosted MCP endpoint is also available at https://api.solidrpc.io/agent/mcp.
Start here
Read agent onboarding and the setup guide. The live onboarding response supplies availability, payment network, terms, pricing, limits, and recovery steps. Read those values at setup time.
For an existing account, delegate an agent credential from a paid plan or PAYG account. Free accounts cannot delegate agent control. For a new account, obtain the owner's email, account-creation and terms approval, and separate payment and usage ceilings. Account provisioning itself spends nothing. Email verification and a password are not required for agent activation. The owner can claim dashboard access later.
| Credential | Purpose | Destination |
|---|---|---|
sa_ management token |
Account, keys, usage and billing | https://api.solidrpc.io/agent/v1 and /agent/mcp |
ak_ RPC key |
Blockchain requests | RPC URL returned by /networks |
Install
Requires Node.js 22.20 or later. In a downloaded checkout of this toolkit:
npm ci --ignore-scripts
npm test
node src/cli.mjs request GET /onboarding
Install the pinned version from npm:
npm install --global @solidrpc/agent@0.1.1
solidrpc --help
solidrpc request GET /onboarding
The CLI and local MCP server are included in this one package. Run solidrpc mcp to start the MCP server. Release downloads contain the npm tarball, source ZIP, and desktop MCP bundle. The bundle includes its runtime dependencies and requires Node.js 22.20 or later.
For development, use the source commands above or install a locally built tarball. Published downloads are available in GitHub Releases. See the release procedure for review and verification.
Give your agent access
Save only the sa_ token in an owner-only file outside your repository. Configure SOLIDRPC_TOKEN_FILE with its absolute path. A secret manager can supply SOLIDRPC_TOKEN instead. Choose one source.
export SOLIDRPC_TOKEN_FILE=/absolute/private/solidrpc-management.key
solidrpc request GET /me
solidrpc request GET /networks
solidrpc mcp
From a source checkout, replace solidrpc with node src/cli.mjs.
MCP setup templates for Codex, Claude Code/Desktop, and Cursor are in configs. They use the local process and a token file. The server reads that one file and sends the token to the SolidRPC management API by default. An explicit SOLIDRPC_URL override can send it to a loopback development server. Never use a real credential for loopback tests. Redirects are rejected.
Set SOLIDRPC_READ_ONLY=1 for a locally enforced read-only session. The server still advertises its full tool catalog, but blocks every mutation, credential operation and RPC-key secret read before a network call. Server-side credential scopes remain the authority for account permissions.
Account provisioning and recovery
Read the terms URLs and current revision in onboarding. After owner approval, send JSON on stdin:
node src/cli.mjs provision < /absolute/private/approved-account.json
The input contains email, termsRevision, and acceptTerms: true. The CLI saves the bootstrap secret before the network request. Repeat the same input and profile after a lost response. Use SOLIDRPC_PROFILE for separate accounts.
Follow the live onboarding steps to sign the approved budget and fund the account. The published payment example explains the external wallet flow. This toolkit does not hold wallet keys or automatically pay. Persist idempotency keys and payment proofs privately before submission. For uncertain payments, inspect the existing funding intent and follow its recovery instructions. Never create a second payment to guess whether the first succeeded.
After funding settles, rotate the bootstrap credential to obtain operational scopes. solidrpc rotate saves a replacement and a private retirement journal before retiring the old credential. Its output includes scopes and bootstrap status. If retirement fails, it returns replacementSaved:true and oldRevoked:false with exit code 2. Run solidrpc retire-previous to retry retirement without creating another credential. For external token files or secret managers, use explicit management requests and persist the replacement before revoking the old token. If rotation's response is lost, the old token remains usable. Repeated rotation can create orphaned credentials, so inspect and retire those deliberately.
solidrpc request emits the API response. Key creation and credential rotation can return secrets. On POSIX shells, use an owner-only directory and create a fresh output file with private permissions. For example, with approved key creation input:
(umask 077; set -C; solidrpc request POST /keys \
< /absolute/private/approved-key-request.json \
> /absolute/private/created-key.json)
Use a new output filename for each attempt and reuse the same idempotency key when retrying the same request. On Windows, use an owner-only directory and file ACLs. sa_ credentials alone cannot approve a wallet budget. Card subscription purchases remain an owner action.
Tools
The MCP server exposes network discovery, RPC key listing/creation/revocation, usage, billing, top-up quotes, support tickets, and a generic management request tool. A top-up quote does not transfer USDC. Support-ticket creation sends a message, so use it only when the owner requests contact. Clients must retain their own approval controls for writes and payments.
Examples
Use a separate ak_ key in a private file selected by RPC_KEY_FILE, and set RPC_ORIGIN=https://rpc.solidrpc.io. These scripts make billable read calls and require an approved usage budget. Read examples/README.md before running them.
- Base ETH and USDC balances
- Ethereum USDC Transfer export
- Ethereum, Base and Arbitrum connectivity
Agent skill
The skill is in skills/solidrpc/SKILL.md. From a separate project, install this local checkout with the skills CLI:
npx skills add /absolute/path/to/agent-toolkit --skill solidrpc -a codex claude-code cursor
For Cursor, if the shared skill is not listed, copy the same SKILL.md into .cursor/skills/solidrpc/SKILL.md in your project and start a fresh session. Codex uses .agents/skills/solidrpc/SKILL.md, and Claude Code uses .claude/skills/solidrpc/SKILL.md.
Install the skill directly from this public repository:
npx skills add SolidRPC/agent-toolkit --skill solidrpc -a codex claude-code cursor
The same skill is included in the npm package and release downloads. Installing a skill makes it available in that client. It does not make every agent discover or prefer SolidRPC.
Development
Run npm test and npm run check:public. Never add credentials, local profiles, wallet keys, private infrastructure configuration, or unpublished operational records to this repository. The public package is an extraction of the existing SolidRPC client, with local safety and packaging adaptations.
Credential operations are deliberately unavailable through the generic MCP tool. Use the CLI or an explicit API workflow that saves replacement credentials before retiring old ones. Read-only mode also blocks secret retrieval. Creating an RPC key in normal MCP mode still returns the new key through the tool result, so that client's transcript can contain it. Use a CLI request redirected to a private file when the key must stay out of model transcripts.
Configuration storage must be a dedicated private directory. The CLI rejects shared directories instead of changing their permissions. On POSIX systems it also rejects token files accessible to other users or owned by someone else. On Windows, configure owner-only ACLs yourself. Help and version commands do not load credentials.
SolidRPC MCPのよくある質問
SolidRPC MCPをClaude Codeに追加するには
ターミナルでclaude mcp add --env 'SOLIDRPC_TOKEN_FILE=<SOLIDRPC_TOKEN_FILE>' agent-toolkit -- npx -y @solidrpc/agentを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
SolidRPC MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
SolidRPC MCP serverをローカルで実行するにはどうすればよいですか?
npm経由でパッケージをインストールした後、solidrpc mcpコマンドを実行することで、ローカルのMCP serverを起動できます。
MCP serverを読み取り専用モードで使用できますか?
はい、環境変数SOLIDRPC_READ_ONLY=1を設定することで、データの変更や認証情報の操作をブロックする、ローカルの読み取り専用セッションを強制できます。
MCP serverからはどのようなツールが提供されますか?
このサーバーは、ネットワークの検出、RPCキーの管理(一覧表示、作成、失効)、使用量の監視、請求、チャージの見積もり、およびサポートチケットの作成を行うためのツールを提供します。
このツールキットはウォレットキーや支払いを自動的に処理しますか?
いいえ、このツールキットはウォレットキーを保持したり、自動支払いを実行したりすることはありません。アカウントへの入金には、外部のウォレットフローに従う必要があります。