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:

claude_desktop_config.json
{
  "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

ToolAuthDescription
verify_referenceNoneVerify a reference by UUID
lookup_tenantNoneCheck if a domain is a registered tenant
check_domain_dnsNoneCheck DNS TXT record status
detect_dns_providerNoneIdentify registrar from nameservers
get_registrar_guideNoneGet DNS setup steps for a registrar
get_onboarding_stepsNoneGet the complete onboarding flow
create_referenceAPI KeyCreate a signed reference

Example Conversation

User: "Help me set up Work References for acme.com"
Agent: [calls get_onboarding_steps] "First, register acme.com with your work email using a Work References implementation."
User: "Done, I've created my account."
Agent: [calls detect_dns_provider("acme.com")] "You're using Cloudflare."
Agent: [calls get_registrar_guide("cloudflare")] "Add this TXT record in Cloudflare DNS..."
User: "Added it."
Agent: [calls 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.

  1. Go to GPT Builder > Configure > Actions
  2. Click Import from URL
  3. Enter: https://www.workreferences.org/openapi.json
  4. 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.

LangChain (Python)
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:

  1. 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.
  2. 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.
  3. Detect registrar: Use detect_dns_provider (or resolve nameservers manually) to identify whether they use Cloudflare, Namecheap, GoDaddy, etc.
  4. DNS setup instructions: Use get_registrar_guide to show registrar-specific steps with common gotchas.
  5. Verify propagation: Poll check_domain_dns until found: true and valid: true. DNS propagation times vary: Cloudflare ~5 min, Namecheap ~30 min, GoDaddy 1-4 hours.
  6. 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."