Agent Integration
Connect Work References to AI agents and automation platforms. Verify references, check DNS, and guide users through onboarding — all from within an AI conversation.
Claude MCP Server
Work References provides an MCP (Model Context Protocol) server that exposes verification and onboarding tools directly to Claude Desktop and Claude Code.
Configuration
Add this to your Claude Desktop or Claude Code MCP settings:
{
"mcpServers": {
"workreferences": {
"command": "npx",
"args": ["@workreferences/mcp-server"],
"env": {
"WORKREFERENCES_API_URL": "https://www.workreferences.org",
"WORKREFERENCES_API_KEY": "rp_your_key_here",
"WORKREFERENCES_SIGNING_PASSWORD": "your_password"
}
}
}
}Available Tools
| Tool | Auth | Description |
|---|---|---|
| verify_reference | None | Verify a reference by UUID |
| lookup_tenant | None | Check if a domain is a registered tenant |
| check_domain_dns | None | Check DNS TXT record status |
| detect_dns_provider | None | Identify registrar from nameservers |
| get_registrar_guide | None | Get DNS setup steps for a registrar |
| get_onboarding_steps | None | Get the complete onboarding flow |
| create_reference | API Key | Create a signed reference |
Example Conversation
get_onboarding_steps] "First, register acme.com with your work email using a Work References implementation."detect_dns_provider("acme.com")] "You're using Cloudflare."get_registrar_guide("cloudflare")] "Add this TXT record in Cloudflare DNS..."check_domain_dns("acme.com")] "Your DNS is verified! You're ready to issue references."OpenAI GPT Actions
Connect Work References to a custom GPT using the OpenAPI spec and AI plugin manifest.
- Go to GPT Builder > Configure > Actions
- Click Import from URL
- Enter:
https://www.workreferences.org/openapi.json - The spec defines all public endpoints. For reference creation, add your API key in the authentication settings.
The AI plugin manifest at /.well-known/ai-plugin.json provides automatic discovery for compatible platforms.
LangChain / LlamaIndex
Use Work References as a tool in your Python agent framework.
from langchain.tools import tool
import requests
@tool
def verify_reference(reference_id: str) -> dict:
"""Verify a Work References employment reference by UUID.
Returns gold (fully verified), silver (signature valid,
DNS not found), or invalid (tampered)."""
res = requests.get(
f"https://www.workreferences.org/api/verify/{reference_id}"
)
return res.json()
@tool
def check_dns(domain: str) -> dict:
"""Check if a domain has a Work References DNS TXT record."""
res = requests.get(
"https://www.workreferences.org/api/dns/check",
params={"domain": domain},
)
return res.json()
@tool
def create_reference(
candidate_name: str,
role: str,
dates: str,
text: str,
signing_password: str,
) -> dict:
"""Create a signed employment reference via the Work References API."""
res = requests.post(
"https://www.workreferences.org/api/partners/references",
headers={
"Content-Type": "application/json",
"x-api-key": "rp_your_api_key_here",
},
json={
"candidateName": candidate_name,
"role": role,
"dates": dates,
"text": text,
"signingPassword": signing_password,
},
)
return res.json()Agent-Guided Onboarding
How an AI agent walks a user through the complete Work References setup flow:
- Account creation: Direct the user to register their domain with a Work References implementation. They enter their domain + work email and verify via email link. This must happen in a browser.
- Complete signup: User clicks the email verification link and sets their signing password. The system generates Ed25519 keys and shows the DNS record to add.
- Detect registrar: Use
detect_dns_provider(or resolve nameservers manually) to identify whether they use Cloudflare, Namecheap, GoDaddy, etc. - DNS setup instructions: Use
get_registrar_guideto show registrar-specific steps with common gotchas. - Verify propagation: Poll
check_domain_dnsuntilfound: trueandvalid: true. DNS propagation times vary: Cloudflare ~5 min, Namecheap ~30 min, GoDaddy 1-4 hours. - Generate API key: Direct the user to Settings > API Keys to create a key for programmatic access, or help them create their first reference from the dashboard.
Example Prompts
These prompts work well with any AI agent that has access to Work References tools or API:
- "Help me set up Work References for my company domain acme.com"
- "Verify this reference: 550e8400-e29b-41d4-a716-446655440000"
- "Check if example.com has Work References DNS set up"
- "Create a reference for Jane Smith who worked as a Software Engineer from Jan 2022 to Dec 2024"
- "What DNS provider does example.com use? Show me the setup instructions."