Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ commands.
## Client vs provider tools

Only tools relevant to the service account's organization are registered: client
orgs get VMs, DNS and marketplace search; provider orgs get nodes, platforms,
orgs get VMs, DNS, domain registration and marketplace search; provider orgs get nodes, platforms,
regions, agents, customers, guest VMs, IPAM, templates, and preflight. Provider
writes (assign agent, create network or prefix, reserve an address, placement
policy, create VM template) stay off unless `--disable-write=false`. Both org
Expand Down Expand Up @@ -103,6 +103,12 @@ tools in the tools picker. Example prompts:
- "Find the cheapest 4 GB VPS plans in Frankfurt."
- "List my virtual machines and show their IP addresses."
- "Create a DNS zone for example.com and add an A record for www."
- "Find a domain for my evergreen coffee shop and tell me the yearly price."

Domain tools search names, prepare register and renew orders, and manage
nameservers, auto-renew, the transfer lock and DNSSEC. They never charge a
card: payment, unlocking a transfer and transfer auth codes are done by the
user in the NodeRings portal, at the link the tool returns.

Tools that create, change or delete resources ask for confirmation in Copilot
before they run.
Expand Down
1 change: 1 addition & 0 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ tools:
- identity
- vms
- dns
- domains
- tickets
- catalog
# provider is off unless the SA is meant to list nodes/platforms/regions
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/noderings-mcp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ config:
- identity
- vms
- dns
- domains
- tickets
- catalog
# provider is off: enable only if the SA may list nodes/platforms/regions
Expand Down
8 changes: 6 additions & 2 deletions docs/mcp/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,24 @@ stdio trusts process/environment (MCP spec); logs go to **stderr**.

## Tools

Curated snake_case tools by category (`identity`, `vms`, `dns`, `tickets`,
Curated snake_case tools by category (`identity`, `vms`, `dns`, `domains`, `tickets`,
`catalog`, `provider`). No generic `call_api`. No progressive `search_tools` in v1.

Write tools (`create_virtual_machine`, `update_virtual_machine_power`,
`delete_virtual_machine`, `create_snapshot`, `create_dns_zone`, `upsert_dns_record`,
`upsert_dns_geo_record`, `delete_dns_geo_record`, `create_ticket`,
`create_domain_order`, `renew_domain`, `set_domain_nameservers`,
`set_domain_auto_renew`, `set_domain_transfer_lock`, `set_domain_dnssec`,
`create_network`, `create_prefix`, `add_reserved_ip`,
`remove_reserved_ip`, `update_node_placement_policy`, `create_vm_template`,
`create_plan`) are
registered only when `tools.disableWrite` is false (default true). VM create
uses SSH key IDs only. `create_dns_zone` creates a blank apex zone (no record
import). `upsert_dns_record` maps to proto `UpsertDnsRecord` and is create-only
unless `allow_overwrite` is true. `upsert_dns_geo_record` maps to
`UpsertDnsGeoRecord` with the same create-only default.
`UpsertDnsGeoRecord` with the same create-only default. Domain order tools
create and price orders only; checkout (card, 3-D Secure, terms acceptance) is
done by the user in the portal, so the server never sends a payment method.

HTTP Host/Origin allowlists must not contain `*`. Tool concurrency is capped by
`limits.maxConcurrentTools`.
Expand Down
9 changes: 6 additions & 3 deletions docs/mcp/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ same server and auth, but omits tools that start a new billed purchase
| `backend.tlsCAFile` / `tlsServerName` / `tlsInsecure` | yaml/env | verify on; `tlsInsecure` refused on non-loopback HTTP / Helm | no | no |
| `backend.timeout` | yaml/env | `30s` | no | no |
| `log.level` | yaml/env | `info` | no | no |
| `tools.enabled` | yaml/env/flag `--enabled-tools` | identity,vms,dns,tickets,catalog | no | no |
| `tools.enabled` | yaml/env/flag `--enabled-tools` | identity,vms,dns,domains,tickets,catalog | no | no |
| `tools.disableWrite` | yaml/env/flag `--disable-write` | `true` | no | no |
| `tools.orgType` | yaml/env/flag `--org-type` | `auto` (`auto` \| `client` \| `provider`) | no | no |
| `limits.maxConcurrentTools` | yaml/env | `32` | no | no |
Expand All @@ -49,12 +49,15 @@ Service DNS plus Ingress hosts (the chart injects those).
When `tools.disableWrite` is `true` (the default), mutating tools are not registered:
`create_virtual_machine`, `update_virtual_machine_power`, `delete_virtual_machine`, `create_snapshot`,
`create_dns_zone`, `upsert_dns_record`, `upsert_dns_geo_record`, `delete_dns_geo_record`,
`create_ticket`. Set it to `false` to
`create_ticket`, `create_domain_order`, `renew_domain`, `set_domain_nameservers`,
`set_domain_auto_renew`, `set_domain_transfer_lock`, `set_domain_dnssec`. Set it to `false` to
expose those tools for enabled categories. VM create accepts SSH key UUIDs only
(no password / user_data). `create_dns_zone` creates a blank apex zone.
`upsert_dns_record` maps to backend `UpsertDnsRecord` and refuses overwrite
unless `allow_overwrite` is true. `upsert_dns_geo_record` does the same for
GeoDNS records (A, AAAA, CNAME, SRV, NAPTR; TTL 30-60 s). An empty `tools.enabled` list registers no
GeoDNS records (A, AAAA, CNAME, SRV, NAPTR; TTL 30-60 s). `create_domain_order`
and `renew_domain` create and price an order but never charge: the user pays in
the portal at the returned `checkout_url`. An empty `tools.enabled` list registers no
categories.

**Organization type.** Tools are filtered to the organization type of the service
Expand Down
57 changes: 56 additions & 1 deletion docs/mcp/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ matches:
| Category / tools | Client org | Provider org | Unknown org |
|------------------|:----------:|:------------:|:-----------:|
| `identity`, `tickets`, `list_plans`, `list_distros` | yes | yes | yes |
| `vms`, `dns`, `list_marketplace_offerings`, `get_marketplace_plan` | yes | no | no |
| `vms`, `dns`, `domains`, `list_marketplace_offerings`, `get_marketplace_plan` | yes | no | no |
| `provider` | no | yes | no |

"Unknown" means detection failed or several organizations are visible without
Expand Down Expand Up @@ -92,6 +92,61 @@ Both also include `capabilities`, the optional features the VM's provider suppor
| `upsert_dns_geo_record` | `DnsRecordService.UpsertDnsGeoRecord` | `PUT /v1/dns/zones/{id}/geo-records` |
| `delete_dns_geo_record` | `DnsRecordService.DeleteDnsGeoRecord` | `DELETE /v1/dns/zones/{id}/geo-records` |

## domains (read)

| Tool | gRPC | HTTP |
|------|------|------|
| `search_domains` | `DomainSearchService.SearchDomains` (once per keyword) | `POST /v1/registrar/search` |
| `check_domains` | `DomainSearchService.CheckDomains` | `POST /v1/registrar/check` |
| `list_tld_prices` | `DomainSearchService.ListTldPrices` | `GET /v1/registrar/tlds` |
| `list_domains` | `RegisteredDomainService.ListRegisteredDomains` | `GET /v1/registrar/domains` |
| `get_domain` | `RegisteredDomainService.GetRegisteredDomain` | `GET /v1/registrar/domains/{name}` |
| `list_domain_events` | `RegisteredDomainService.ListDomainEvents` | `GET /v1/registrar/domains/{name}/events` |
| `list_domain_contacts` | `DomainContactService.ListDomainContacts` | `GET /v1/registrar/contacts` |
| `get_domain_order` | `DomainOrderService.GetDomainOrder` | `GET /v1/registrar/orders/{id}` |

`search_domains` takes 1-5 keywords. The MCP client's model extracts them from
the user's sentence ("a domain for my evergreen coffee shop" becomes
`evergreen coffee`); each keyword is one search, and rows are merged by name.
Signed-in callers do not need a Turnstile token. Contacts are returned without
phone, street or extension data, events without IP addresses, and domains
without contact details. There is no auth-code tool: transfer auth codes are
shown only in the portal.

## domains (writes)

| Tool | gRPC | HTTP |
|------|------|------|
| `create_domain_order` | `DomainOrderService.CreateDomainOrder`, then `PriceDomainOrder` | `POST /v1/registrar/orders`, `POST /v1/registrar/orders/{id}/price` |
| `renew_domain` | `RegisteredDomainService.RenewDomain`, then `DomainOrderService.PriceDomainOrder` | `POST /v1/registrar/domains/{name}/renew`, `POST /v1/registrar/orders/{id}/price` |
| `set_domain_nameservers` | `RegisteredDomainService.SetDomainNameservers` | `PUT /v1/registrar/domains/{name}/nameservers` |
| `set_domain_auto_renew` | `RegisteredDomainService.SetDomainAutoRenew` | `PUT /v1/registrar/domains/{name}/auto-renew` |
| `set_domain_transfer_lock` | `RegisteredDomainService.SetDomainTransferLock` (lock only) | `PUT /v1/registrar/domains/{name}/lock` |
| `set_domain_dnssec` | `RegisteredDomainService.SetDomainDnssec` | `PUT /v1/registrar/domains/{name}/dnssec` |

**Nothing here charges a card.** Domains are paid by card only, with the
customer's acceptance of the current terms and consent to renewal charges, and
3-D Secure cannot be completed by a non-interactive caller. So
`create_domain_order` and `renew_domain` create and price the order (tax
included when known) and return `checkout_url`; the user pays there.
`DomainOrderService.CheckoutDomainOrder` is not vendored and the server never
sends a payment method. Both tools mint the idempotency key themselves (like
`create_virtual_machine`), so repeating a call returns the same order. Both are
left out of the `/chatgpt` endpoint with the other paid-create tools.

`set_domain_auto_renew` with `auto_renew: true` needs `mit_consent: true`
(the user agreed to renewal charges on the saved card); without it the call is
refused before the backend is contacted. `set_domain_transfer_lock` only
locks: unlocking needs a fresh sign-in (`REAUTH_REQUIRED`) and is refused with
a link to the domain's portal page. When the backend answers
`REAUTH_REQUIRED`, the tool returns `failed_precondition` with that link as the
hint; other registrar reasons keep the backend's message.

The service account (or, in OAuth mode, the acting user) needs `read` on the
read RPCs and `update` on the `Set*` RPCs. `RenewDomain` maps to the
`purchase` action, which the built-in roles grant only to Owner, Admin and
Billing.

## tickets (read)

| Tool | gRPC | HTTP |
Expand Down
Loading