FirstKey
FirstKey MCP: agent wallets, free cycles faucet, and one-command site deploys on ICP.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"firstkey-mcp": {
"url": "https://mcp.firstkey.io/mcp"
}
}
}遠端端點
https://mcp.firstkey.io/mcpstreamable-http它能做什麼
工具清單
工具(6)
🟡create_wallet
Generate a fresh Ed25519 wallet for an AI agent: returns the ICP principal and the PKCS#8 PEM private key. The private key is returned exactly once over this call and is never stored anywhere. No signup, no on-chain registration — the keypair IS the wallet.
輸入結構描述
{
"type": "object",
"properties": {}
}⚪claim_faucet_grant(agent)
Claim the one-time free 1T cycles grant from the FirstKey faucet for an agent principal. One claim per principal, ever. The grant lands on the cycles ledger and funds the agent's first canister deploy.
輸入結構描述
{
"type": "object",
"properties": {
"agent": {
"description": "The agent's ICP principal (text form) receiving the grant.",
"type": "string"
}
},
"required": [
"agent"
]
}🟡deploy_site(agent, files)
Deploy a static website for an agent: creates a canister on the Internet Computer, installs the FirstKey static host, uploads every file, and returns the live https URL. The agent is added as a controller of its site canister. One free deploy per agent principal, funded from the FirstKey deploy pool; files must fit in one call (total under ~1.4 MB decoded) — use deploy_upload_chunk for larger files.
輸入結構描述
{
"type": "object",
"properties": {
"agent": {
"description": "The agent's ICP principal — becomes a controller of the site canister.",
"type": "string"
},
"files": {
"description": "Files to publish. Include at least index.html.",
"items": {
"properties": {
"content_base64": {
"description": "File bytes, base64-encoded.",
"type": "string"
},
"content_type": {
"description": "Optional MIME type; guessed from extension when omitted.",
"type": "string"
},
"path": {
"description": "Site path, e.g. index.html or css/main.css",
"type": "string"
}
},
"required": [
"path",
"content_base64"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"agent",
"files"
]
}🟡deploy_upload_chunk(agent, canister, chunk_base64, chunk_index, content_type, ...)
Upload one chunk of a large file to an already-deployed agent site (for files that don't fit in a single deploy_site call). Chunks are appended in order; set is_last on the final chunk to publish the file.
輸入結構描述
{
"type": "object",
"properties": {
"agent": {
"description": "The agent's ICP principal (must own the site).",
"type": "string"
},
"canister": {
"description": "The site canister principal returned by deploy_site.",
"type": "string"
},
"chunk_base64": {
"description": "Chunk bytes, base64-encoded.",
"type": "string"
},
"chunk_index": {
"description": "0-based chunk number. 0 starts a new upload for this path.",
"type": "integer"
},
"content_type": {
"description": "MIME type (only used on the first chunk).",
"type": "string"
},
"is_last": {
"description": "True on the final chunk: assembles and publishes the file.",
"type": "boolean"
},
"path": {
"description": "Site path, e.g. assets/video.mp4",
"type": "string"
},
"total_bytes": {
"description": "Total file size in bytes, as a decimal string (only used on the first chunk).",
"type": "string"
}
},
"required": [
"agent",
"canister",
"path",
"chunk_index",
"chunk_base64",
"is_last"
]
}🟢check_cycles(principal)
Read an ICP principal's cycles balance on the cycles ledger.
輸入結構描述
{
"type": "object",
"properties": {
"principal": {
"description": "ICP principal (text form).",
"type": "string"
}
},
"required": [
"principal"
]
}🟡get_fuel_link(principal)
Get the FirstKey Fuel payment link for a principal: a human pays by card (Stripe) and cycles land in the agent's wallet — the sovereign refuel path when the free faucet grant or deploy pool is exhausted.
輸入結構描述
{
"type": "object",
"properties": {
"principal": {
"description": "The agent's ICP principal to refuel.",
"type": "string"
}
},
"required": [
"principal"
]
}社群
證據