Checklist · before you hand over a key

Give an AI vendor read-only access

Your AI vendor wants WIP, job cost and project data for their assistant. Use this list before issuing an API key or turning on MCP, and again every month after.

1

Scope the questions

  • List the questions the assistant must answer, in plain words
  • Map each to one read-only endpoint or MCP tool
  • Owner-facing or user-facing? User-facing uses the embed with each person's own login
  • Anything that needs a write: park it for a separate decision
2

Create the key

  • One key per consumer, named for it ("AI vendor, digest")
  • Read scope only; no write scope exists to grant
  • Copy it once; the app stores only a hash and a prefix
  • Only admins create, revoke or change keys
3

Hand it over safely

  • One-time secret link, or straight into the vendor's vault
  • Never email, chat, a ticket, a prompt or a screen share
  • Vendor confirms where it's stored, in writing
  • Not committed in any config file or repository
4

MCP, if needed

  • MCP is off by default; enable it per key
  • Allow only the tools that key needs; avoid "all tools"
  • Set a rate limit that fits the job (default 60/min)
  • Origin allow-list for any browser-based caller
5

Test before the vendor connects

curl -s https://os.example.com/mcp -H "Authorization: Bearer $COS_API_KEY" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -H "MCP-Protocol-Version: 2025-06-18" -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
  • tools/list shows only the tools you allowed
  • A tool off the list is refused and logged
  • A revoked key gets 401 on the next call
  • The kill switch turns every key off at once
  • One test call appears in the audit log with the key's name
  • Outputs carry no tokens, hashes or credentials
6

Never expose

  • Any write: coding, approvals, QuickBooks, Procore, Microsoft 365
  • OAuth tokens, API keys, password hashes, 2FA secrets
  • Users, roles, sessions, invites
  • The audit log, settings, connection details
7

Review monthly

  • Revoke keys unused for 30 days
  • Call volume fits the job (a digest isn't 3,000 calls)
  • Read the refusals; they show what the agent wants next
  • Re-confirm: read-only, no write tools without written approval
Read-only by defaultAgents propose; people approve. Any write tool needs the owner's written approval, per tool.
A key is a systemIt sees what its scope allows, for every job. Don't use one key to answer users.
Log everythingEvery call and every refusal, with the key's name. Look at it monthly.