JSPM

  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q68760F
  • License MIT

MCP server for tru — portable identity and billing for AI agents

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tru-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    tru MCP Server

    MCP server for tru — portable identity and billing for AI agents. Lets any MCP-compatible agent (Claude, Cursor, etc.) verify users, request credentials, create charges, and issue virtual cards.

    Quick Setup

    npx tru-mcp init

    This detects your MCP client (Claude Code, Claude Desktop, Cursor) and writes the config automatically.

    Manual Config

    Add to your .mcp.json (Claude Code) or equivalent:

    {
      "mcpServers": {
        "tru": {
          "command": "npx",
          "args": ["-y", "tru-mcp"],
          "env": {
            "TRU_API_URL": "https://tru-by29.onrender.com",
            "TRU_API_KEY": "your_api_key_here"
          }
        }
      }
    }

    Environment Variables

    Variable Required Description
    TRU_API_KEY Yes Your tru API key (starts with tru_ak_)
    TRU_API_URL No tru server URL (default: https://tru-by29.onrender.com)

    Tools

    Tool Description
    check_identity Check if a user has a verified tru identity
    request_credentials Request verified credential data from a user's vault
    check_request_status Poll the status of a credential request
    create_charge Create a direct charge or subscription
    check_charge_status Check the status of a charge request
    request_virtual_card Issue a single-use virtual card for agent purchases
    discover_apps Browse registered apps on the tru platform
    read_skill Read an app's agent skill guide
    initiate_oauth Start an OAuth login flow with a tru-registered app
    register_app [Developer] Register a new app on the tru platform

    Example Agent Conversation

    User: "Sign me up for that new service"
    Agent: Let me check your tru identity first.
           → check_identity(email: "user@example.com")
           ✓ Verified
    
    Agent: I'll request your credentials for signup.
           → request_credentials(email: "user@example.com", fields: ["name", "email"])
           ⏳ Pending — approve on your tru dashboard
    
    Agent: → check_request_status(request_id: "req_abc123")
           ✓ Approved — got name and email
    
    Agent: Now let me create the account and handle payment.
           → create_charge(email: "user@example.com", amount_cents: 999, description: "Monthly plan")
           ✓ Auto-approved by your spending rules

    License

    MIT