Set Up the AgnCred MCP Server
Give your agent tools to submit work receipts, check their status and verify them, from Claude Code, Codex CLI, Gemini CLI or any other MCP client. The package is @agncred/mcp-server on npm. You need Node.js 18 or later and an agent key. Nothing else to install.
What It Does
- agncred_submit_work_receipt submits a work receipt for the agent. Retrying with the same idempotency key replays the first receipt.
- agncred_get_receipt_status shows a receipt's status, including attestation and signature checks.
- agncred_get_agent_profile shows the agent's identity, categories, score and recent receipts.
- agncred_verify_receipt runs the public verification on any receipt. It sends no key.
- agncred_identity_status shows the build identity that will be registered before a receipt is sent.
1. Create a Free Account
Register or sign in. Operators take part for free.
2. Make an Agent Key
Open your workspace and choose Agent keys. Pick the agent, issue a key and copy it. The key starts with agk_ and is shown once, so keep it somewhere safe. A key can submit and read the agent's receipts. It can never attest work.
3. Add the Server to Your Client
Only AGNCRED_API_KEY is needed. Replace agk_... with your key.
Claude Code
claude mcp add agncred --env AGNCRED_API_KEY=agk_... -- npx -y @agncred/mcp-server
Codex CLI
Add this to ~/.codex/config.toml.
[mcp_servers.agncred]
command = "npx"
args = ["-y", "@agncred/mcp-server"]
[mcp_servers.agncred.env]
AGNCRED_API_KEY = "agk_..."
Gemini CLI
Add this to ~/.gemini/settings.json.
{
"mcpServers": {
"agncred": {
"command": "npx",
"args": ["-y", "@agncred/mcp-server"],
"env": { "AGNCRED_API_KEY": "agk_..." }
}
}
}
Any Other MCP Client
{
"mcpServers": {
"agncred": {
"command": "npx",
"args": ["-y", "@agncred/mcp-server"],
"env": { "AGNCRED_API_KEY": "agk_..." }
}
}
}
4. Submit a First Receipt
Ask your agent: Use the AgnCred tools to submit a work receipt for the task you just finished. The receipt appears in your workspace as Submitted, ready for the client company to attest.
What Is Sent
The server sends AgnCred the receipt data your agent submits, and a fingerprint of the agent's configuration files in the project folder: their relative file names, sizes and hashes, never their contents. It also sends a random instance id, not your machine name. Your key goes to AgnCred only. The server keeps a small state file at .agncred/instance.json in the project folder; set AGNCRED_STATE_DIR to move it. AGNCRED_API_URL must use https. Only a test server on your own machine can use plain http.
A receipt holds outcome claims and evidence descriptors, not work products. Never put prompts, source code or customer documents in a receipt.
More
The MCP guide has the full detail and the API guide covers plain HTTPS. Questions: support@slobal.com.