This is the documentation for version 0.1. Read this page for version 0.2, the latest.
Integrations you need, with instructions#
Everything needed to go live is free, except a domain. Paid services are listed separately and are not needed until you charge money or file for a trademark.
What you need#
| Service | Why | Cost | When |
|---|---|---|---|
| GitHub (organisation + public repo) | code, issues, CI, website (Pages), Docker images (GHCR), log witness | free | today |
Domain, e.g. grantstamp.io |
brand ownership, website, registry URL, email, owner verification | about $10–20 a year | today |
| Neon (Postgres) | registry database that survives restarts | free plan: 1 GB per project, no card | today |
| Render (web service) | runs the registry API from the Dockerfile | free plan (sleeps after 15 min idle) | today |
| PyPI | pip install grantstamp and pip install grantstamp-server |
free | today |
| MCP Registry | makes the MCP server discoverable by AI clients | free | today |
| Cloudflare (DNS, email routing, web analytics) | DNS, contact@ forwarding, privacy-friendly stats |
free | optional |
| UptimeRobot | uptime alerts for /healthz |
free plan | optional |
| Slack or Discord webhook | your own alerts | free | optional |
| Zenodo + Software Heritage | DOI and public archive per release (dated priority evidence) | free | recommended |
| Bluesky, Mastodon, LinkedIn, dev.to | promotion, partly automated | free | launch day |
| Later: Stripe, USPTO trademark, attorney, company formation | billing, legal protection | paid | when revenue or risk justifies it |
Sources for the free plans: Render free web services (15-minute idle spin-down, ephemeral disk) and Neon free plan (no card, permanent free plan).
GitHub (15 minutes)#
- Create an organisation named after the brand (
grantstamp), or use your personal account. The MCP name inserver.jsonand the README isio.github.<org>/grantstamp; runpython scripts/rebrand.py Grantstamp --github-org <yours>if your org name differs. - Create a public repository
grantstampwith no template. Then push:bash unzip grantstamp.zip && cd grantstamp git init -b main && git add -A && git commit -m "Grantstamp 0.1.0" git remote add origin https://github.com/<org>/grantstamp.git && git push -u origin main - Settings → Pages → Source: GitHub Actions. Settings → Secrets and variables → Actions → Variables: add
SITE_DOMAIN=grantstamp.ioandREGISTRY_URL=https://registry.grantstamp.io. - Settings → Code security → enable Private vulnerability reporting. Settings → General → enable Discussions for community questions.
- Settings → Environments → create
pypi(used by the release workflow).
Domain and DNS (20 minutes plus propagation)#
Buy grantstamp.io from any registrar (Cloudflare Registrar sells at cost; Porkbun and Namecheap also work). .dev sites must use HTTPS; GitHub Pages and Render handle certificates for you. Then add these records:
| Record | Name | Value | Purpose |
|---|---|---|---|
| A ×4 | @ |
185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153 |
website on GitHub Pages |
| AAAA ×4 (optional) | @ |
2606:50c0:8000::153 … 2606:50c0:8003::153 |
IPv6 for Pages |
| CNAME | www |
<org>.github.io |
www redirect |
| CNAME | registry |
<your-service>.onrender.com (from Render) |
the API |
| TXT | _grantstamp |
grantstamp-verify=<owner id>:<key id> (from grantstamp owner domain grantstamp.io) |
verify yourself as owner (dogfooding) |
In GitHub, add the custom domain under Settings → Pages before you create the DNS records, as GitHub's documentation recommends. Then tick "Enforce HTTPS" once the certificate is issued.
Email: turn on your registrar's free forwarding (Cloudflare Email Routing, Porkbun or Namecheap) for contact@, security@ and legal@, pointing at your inbox.
Neon Postgres (5 minutes)#
- Sign up at neon.com with GitHub and create a project named
grantstamp. Pick the region closest to your Render region (both have US-East options). - Copy the connection string. It looks like
postgresql://user:password@ep-xxxx.us-east-2.aws.neon.tech/neondb?sslmode=require. - Keep it secret. It goes into Render as
GRANTSTAMP_DB.
The registry creates its tables on first start. The free plan's 1 GB holds roughly tens of thousands of registered files at prototype density.
Render web service (10 minutes)#
- Sign up at render.com with GitHub, then choose New → Blueprint and pick the repository.
render.yamldefines a free Docker web service. - Set the environment variables:
-
GRANTSTAMP_DB: the Neon connection string. -GRANTSTAMP_PUBLIC_URL:https://registry.grantstamp.io. -GRANTSTAMP_REGISTRY_KEY: a PEM key that keeps receipts verifiable even if the database is reset. Generate it locally:bash python -c "from grantstamp.crypto import generate_key, private_key_to_pem; print(private_key_to_pem(generate_key()).decode())" - Deploy, then open
https://<service>.onrender.com/healthzand check that it shows{"ok": true}. - Settings → Custom Domains → add
registry.grantstamp.io, then create the CNAME from 5.3.
Free-plan behaviour: the service sleeps after 15 minutes without traffic and takes about a minute to wake. That is fine for a prototype. An UptimeRobot check every 5 minutes keeps it awake; one service running all month stays within Render's 750 free hours. For always-on with no cold starts, move to a paid instance (about $7 a month).
Alternatives:
- Free, persistent, your own machine: grantstamp serve --host 127.0.0.1 --port 8000 behind a Cloudflare Tunnel. Install cloudflared, then:
bash
cloudflared tunnel login
cloudflared tunnel create grantstamp
cloudflared tunnel route dns grantstamp registry.grantstamp.io
cloudflared tunnel run --url http://localhost:8000 grantstamp
This needs the domain's DNS on Cloudflare. It is up only while your computer is on.
- Cheap and always on: a small VPS (about $4–6 a month). Run git clone …, edit Caddyfile, then docker compose up -d. Caddy gets HTTPS certificates automatically, and SQLite lives on a Docker volume.
PyPI (10 minutes)#
- Create an account at pypi.org and turn on two-factor authentication.
- Account → Publishing → Add a pending publisher, twice: once for project
grantstamp(the Apache-2.0 client) and once forgrantstamp-server(the AGPL-3.0 registry). Both use your GitHub owner and repository, workflowrelease.ymland environmentpypi. This is trusted publishing, so no token needs to be stored. - Release:
bash git tag v0.1.0 && git push origin v0.1.0The release workflow builds both packages, publishes them to PyPI, creates a GitHub release, pushesghcr.io/<org>/grantstampand publishes to the MCP Registry. - On GitHub → Packages → grantstamp → Package settings, set the visibility to Public.
Publishing to PyPI early also claims both package names.
MCP Registry and directories (10 minutes)#
The release workflow runs mcp-publisher login github-oidc and mcp-publisher publish using server.json. Two things must be true:
- the README must contain mcp-name: io.github.<org>/grantstamp (it does, in an HTML comment);
- the PyPI version must exist before publishing (the workflow waits 60 seconds).
To validate locally, install mcp-publisher and run mcp-publisher validate. Then submit the GitHub URL to community directories: Smithery, Glama, PulseMCP and mcp.so (free forms).
Zenodo and Software Heritage (5 minutes; recommended for priority evidence)#
- Zenodo: log in with GitHub, open the GitHub tab, and switch on the
grantstamprepository. Every GitHub release is then archived with a DOI and a date stamp. Add the DOI badge to the README. - Software Heritage: submit the repository URL at softwareheritage.org → "Save code now". It archives the history with permanent identifiers (SWHIDs).
Alerts, uptime and witness#
- Your alerts: create a Slack incoming webhook or a Discord channel webhook, then run
grantstamp owner webhook <url> --format slack(or--format discord). - Uptime: create a free UptimeRobot HTTP monitor on
https://registry.grantstamp.io/healthzevery 5 minutes, with email alerts. - Log witness:
.github/workflows/witness.ymlcommits the signed log head daily towitness/heads.jsonl. It needs theREGISTRY_URLvariable from 5.2, and you can run it manually once to test.
Social automation (optional)#
Add these repository secrets (Settings → Secrets → Actions), and .github/workflows/announce.yml posts each release automatically:
BLUESKY_HANDLEandBLUESKY_APP_PASSWORD(Bluesky → Settings → Privacy and security → App passwords). Tip: use your domain as your handle (@grantstamp.io); Bluesky verifies it with a DNS TXT record.MASTODON_INSTANCE(e.g.https://mastodon.social) andMASTODON_TOKEN(Preferences → Development → New application, scopewrite:statuses).
X/Twitter posting through the API is paid, so post there by hand. The same goes for LinkedIn, Hacker News and Reddit, which work best posted by a person anyway.
Agent integrations#
See ../integrations/README.md: Claude Code (MCP and enforced hook), Claude Desktop, Cursor, VS Code, plain HTTP, the Python client, and instructions for AI providers.
Operating the registry#
| Task | Command |
|---|---|
| verify an owner's domain by hand (e.g. after an email check) | grantstamp admin --db "$GRANTSTAMP_DB" verify-domain own_… example.com --note "emailed legal@" |
| trust an AI provider's agent (full evidence) | grantstamp admin --db … trust-agent agt_… |
| list and resolve disputes | grantstamp admin --db … disputes · grantstamp admin --db … resolve dsp_… upheld --note "…" |
| suspend an abusive owner or stamp | grantstamp admin --db … owner-status own_… suspended · stamp-status stamp_… suspended |
| stats | grantstamp admin --db … stats or GET /v1/stats |
Run these from your own machine with the Neon connection string. Each one is written to the transparency log.
Source of this page on GitHub. Documentation for Grantstamp 0.1, licensed CC BY 4.0.