GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Author, validate, deploy, and operate Shodai on-chain agreements.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
Authorization标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
在终端中运行这条命令
claude mcp add --transport http agreements https://shodai.network/mcp --header 'Authorization: your-value'运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"agreements": {
"url": "https://shodai.network/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"agreements": {
"type": "http",
"url": "https://shodai.network/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
Authorization 机密 必填 HTTP header这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
发布者(shodai.network)不是仓库所有者(CNSLabs);可能是其他人代为上架的
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 0 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:Authorization
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
GitHub 仓库最后更新于–,最新版本(0.1.0)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Model Context Protocol server for the Agreements API. Configure Shodai as a remote Streamable HTTP MCP server and the full agreement lifecycle — author, validate, preflight, deploy, submit inputs — becomes callable as MCP tools.
The server is a pure consumer of the public /v0 API via @shodai-network/agreements-api-client. It holds no business logic and stores no credentials: every tool call forwards the caller's API key or OAuth access token to the Agreements API gateway, which enforces auth, entitlements, and metering.
Stateless Streamable HTTP: POST only, JSON responses, no server-side sessions. Use this hosted setup contract:
Configure Shodai as a remote Streamable HTTP MCP server.
URL: https://shodai.network/mcp
Auth: Start the connection and complete Shodai browser sign-in and consent.
Tool environment: testnet
Use this value as the environment argument on API-calling tools.
The canonical hosted endpoint advertises Shodai's testnet authorization server. An OAuth-capable MCP client follows RFC 9728 protected-resource discovery, opens browser authorization, and reconnects with the resulting access token. Use environment: "testnet" for that OAuth connection.
When OAUTH_AUTHORIZATION_SERVERS is set, the server:
/.well-known/oauth-protected-resource (and .../mcp)POST /mcp with WWW-Authenticate (resource_metadata=...)Authorization: Bearer ) in addition to API keysAPI keys remain supported as a fallback and as the production credential path. Send Authorization: Bearer cns_pk_... and match the key to the tool environment: testnet keys use testnet, and production keys use production.
First-flight setup, tool access, and typed-data preparation: Quickstart with MCP.
{
"mcpServers": { "shodai-agreements": { "command": "npx", "args": ["-y", "@shodai-network/agreements-mcp-server"], "env": { "AGREEMENTS_API_KEY": "YOUR_API_KEY", "AGREEMENTS_API_ENVIRONMENT": "testnet" } } } }
Stdio environment variables:
| Variable | Use |
|---|---|
AGREEMENTS_API_KEY (or API_KEY) | API key used for tool calls. Required unless OAuth client credentials are configured. |
OAUTH_CLIENT_ID / OAUTH_CLIENT_PRIVATE_JWK | OAuth client-credentials auth for agent identities; the server mints and refreshes bearer tokens itself. Alternative to AGREEMENTS_API_KEY (which wins if both are set). |
OAUTH_ISSUER_URL (or OAUTH_TOKEN_URL) | Authorization server issuer for token-endpoint discovery, or the explicit token endpoint. Required with OAuth client credentials. |
OAUTH_SCOPE | Optional space-separated scopes to request on minted tokens. |
AGREEMENTS_API_ENVIRONMENT | testnet (default) or production. |
AGREEMENTS_API_BASE_URL | Explicit gateway origin override. Wins over the environment. |
AGREEMENTS_SIGNER_PRIVATE_KEY | Optional local permit signer for write tools (dev/testnet only). |
INFURA_PROJECT_ID | Infura project ID used to derive RPC URLs for the built-in Linea, Sepolia, and Base agreement chains. |
AGREEMENTS_RPC_URL, AGREEMENTS_RPC_URL_ | Optional RPC overrides used when preparing or signing permits. |
Most tools call the public /v0 API through the TypeScript client and carry MCP behavior annotations (readOnlyHint, destructiveHint). A few tools perform more than one operation to keep signing and deployment safe.
On the hosted endpoint, every API-calling tool below requires environment: "testnet" | "production". Local stdio mode uses the fixed environment from AGREEMENTS_API_ENVIRONMENT instead.
| Tool | Wraps | Scope |
|---|---|---|
list_agreements | GET /v0/agreements | agreements.read |
get_agreement | GET /v0/agreements/{id} | agreements.read |
get_agreement_document | GET /v0/agreements/documents/{documentId} | agreements.read |
get_agreement_state | GET /v0/agreements/{id}/state | agreements.read |
get_input_history | GET /v0/agreements/{id}/inputs | agreements.read |
validate_agreement | POST /v0/agreements/validate-template | agreements.write |
preflight_deployment | POST /v0/agreements/validate | agreements.write |
deploy_agreement | POST /v0/agreements/validate, then POST /v0/agreements/deploy-with-permit | agreements.write |
submit_input | POST /v0/agreements/{id}/input | agreements.write |
prepare_deployment_typed_data | POST /v0/agreements/validate, then local EIP-712 payload construction with a chain nonce read | agreements.write |
prepare_input_typed_data | GET /v0/agreements/{id}, then local EIP-712 payload construction with a chain nonce read | agreements.write |
Resources are discoverable with resources/list:
| Resource | URI |
|---|---|
simple-example-agreement | agreements://examples/simple-agreement.json |
complex-example-agreement | agreements://examples/complex-agreement.json |
authoring-guide | agreements://docs/author-agreement-json.md |
docs-index | agreements://docs/index.md |
Prompt: author_agreement (business description → agreement JSON).
Deploys and input submissions require EIP-712 permits. Three supported modes:
signer/deadline/signature to deploy_agreement or submit_input.prepare_deployment_typed_data / prepare_input_typed_data to get the exact EIP-712 payload, sign it with any EIP-712-capable signer, then call the write tool. For deployments, pass the returned normalizedInitValues, normalizedParticipants, and normalizedObservers back to deploy_agreement with the signature.AGREEMENTS_SIGNER_PRIVATE_KEY and write tools sign locally. Dev/testnet pattern; the hosted endpoint never signs with server-side keys.Minimal hosted flow: read simple-example-agreement, call validate_agreement, preflight_deployment, prepare_deployment_typed_data with environment/agreement/chainId/signerAddress and intended deployment context, sign externally, then call deploy_agreement with the same environment, displayName, matching docUri, normalized deployment fields, and permit fields. For inputs, call prepare_input_typed_data with environment/agreementId/inputId/values/signerAddress, sign externally, call submit_input with the same environment, then reread state and input history.
Hosted MCP receives signed permit fields only, never private keys. Private-key environment signing is for local stdio development and testnet automation only.
npm install @shodai-network/agreements-mcp-server
agreements-mcp-server-http # Streamable HTTP on PORT (default 3905), endpoint /mcp
HTTP environment variables: PORT, HOST, MCP_PATH, PUBLIC_MCP_URL, AGREEMENTS_API_TESTNET_BASE_URL, AGREEMENTS_API_PRODUCTION_BASE_URL, and optional local AGREEMENTS_API_BASE_URL for single-origin testing. Set PUBLIC_MCP_URL when discovery metadata should advertise a canonical public endpoint that differs from the request host.
A Dockerfile is included for container deployments. GET /healthz serves as the health endpoint.
pnpm install
pnpm --filter @shodai-network/agreements-mcp-server build pnpm --filter @shodai-network/agreements-mcp-server test
Verify interactively with the MCP Inspector:
npx -y @modelcontextprotocol/inspector@latest --cli http://localhost:3905/mcp \
--transport http --method tools/list --header "Authorization: Bearer $SHODAI_API_KEY"
Pin @latest: older Inspector versions do not support --transport/--header for URL targets.
MIT — see LICENSE. Note this package is MIT-licensed individually; other packages in this repository are licensed under Apache-2.0.