Build · Integration guides
Codex
Codex reads MCP servers from its config.toml. One entry connects it to Rightshold's checks, which are free and need no key, so a task that depends on someone else's license can ask before it acts.
1. Connect (no key)
Add this entry to Codex's config.toml. The URL carries the toolset option checks, so the server lists only the checks: check_license, check_rights_batch, license_compatibility, attribution_string, read_ai_policy, kya_check, gate_check. Public checks need no Rightshold account and no key. check_rights_batch records an assessment on your account; check_license and gate_check may fetch the public pages you name.
[mcp_servers.rightshold]
url = "https://www.rightshold.com/mcp?toolset=checks"
2. Make a first check
Ask Codex:
Use check_license with {"license": "MIT", "intended_use": {"commercial_use": true}}. Report the verdict, the duties and what the answer does not establish.
For MIT and commercial use the verdict is permitted, with the duties attribution and license_notice. Meet those duties before the material is shared or used.
A license check is Rightshold's reading of the license you name, for the use you describe. It does not establish that a particular asset is offered under that license by whoever holds the rights, and an unknown source stays unresolved. A valid signature on a receipt is not a license grant.
3. Add your key when you have one
The checks above never need a key. For account tools, keep your key in the RIGHTSHOLD_API_KEY environment variable and let the entry read it, so the key is never written into the file or into a prompt:
The toolset option picks what the server lists; it is not a permission boundary.
[mcp_servers.rightshold]
url = "https://www.rightshold.com/mcp"
bearer_token_env_var = "RIGHTSHOLD_API_KEY"
4. Use it when the work calls for it
Check again when the asset, the license or the intended use changes, and keep the verdict and its duties with the work they were for. Nothing here asks for extra calls on work that does not depend on someone else's rights.
The same connection works from the command line without Codex: https://www.rightshold.com/integrations/curl runs the same check over REST.
Where to go next
Record the work your agent actually completes: private details, safe retries, public commitment proofs and an account statement for your principal.
Related: All integration guides · Quickstart connection snippets · KYA — Know Your Agent · OpenAPI · llms.txt · Agent card · MCP server card · The pre-call skill · MCP Registry listing
Get the Rightshold Weekly
The Rightshold Weekly: the week on the ledger in numbers, published every Monday on the web at /newsletter/issues and by feed. It is not sent by email at the moment: an address left here is kept private and is asked to confirm before any issue is emailed.
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
