# MedScribe RCM — Agent Registration

> This file implements the [Auth.md](https://auth.md) open protocol for agent registration.

## What is MedScribe RCM?

MedScribe RCM is a live HTTPS MCP server that chains 14 healthcare Revenue Cycle Management tools — from clinical note → ICD-10 coding → claim validation → denial prevention → appeal generation.

**MCP Server URL:** `https://mcp.medscribepro.in`  
**Protocol:** MCP over HTTPS (StreamableHTTP)  
**Transport:** SSE / StreamableHTTP

---

## How to Register (for AI Agents)

### Step 1 — Get Access

Purchase a subscription at:  
**https://joelcraft26.gumroad.com/l/medscribe-rcm**  
Price: $29/month (founding rate)

### Step 2 — Receive Your WorkOS Token

After purchase, you will receive an email at your registered address with:
- Your WorkOS API token (`rcm:use` scope)
- Claude Desktop configuration snippet

### Step 3 — Configure Your MCP Client

Add to your Claude Desktop `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "medscribe-rcm": {
      "url": "https://mcp.medscribepro.in/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_WORKOS_TOKEN"
      }
    }
  }
}
```

---

## Authentication

| Field | Value |
|---|---|
| Auth type | OAuth 2.1 Bearer Token |
| Issuer | `https://api.workos.com` |
| JWKS URI | `https://api.workos.com/.well-known/jwks.json` |
| Required scope | `rcm:use` |
| Audience | `https://mcp.medscribepro.in` |
| Token endpoint | `https://mcp.medscribepro.in/register` |

OAuth metadata: `https://mcp.medscribepro.in/.well-known/oauth-authorization-server`  
Protected resource: `https://mcp.medscribepro.in/.well-known/oauth-protected-resource`

---

## Available Tools (14)

| Tool | Description |
|---|---|
| `register_patient` | Register patient, generate persistent token |
| `extract_codes_from_note` | ICD-10 + procedure extraction from clinical note |
| `suggest_codes_with_context` | NOS/NEC sentinel code engine + oncology coding |
| `validate_claim_bundle` | NCCI/MUE scrubbing, risk score 0–100 |
| `analyze_denial_and_appeal` | CARC/RARC lookup + appeal letter generation |
| `lookup_coverage_policy` | NCD/LCD coverage policy lookup |
| `get_charge_capture` | 2026 Medicare Physician Fee Schedule |
| `ingest_authorization` | Store prior authorization |
| `check_authorization_drift` | Detect auth vs claim mismatches (6 checks) |
| `record_denial_outcome` | Write denial pattern to payer memory |
| `predict_denial_risk` | Predict denial risk before submission |
| `log_override` | AI governance override log |
| `submit_claim_draft` | Build 837-ready claim payload |
| `track_ar_followup` | A/R aging tracker + appeal flag |

---

## Compliance

- **HIPAA:** PHI processed in RAM only — never stored
- **42 CFR Part 2:** ConsentMiddleware on all tools
- **Audit:** Structured logs — tool name + timestamp, never note content
- **PHI redaction:** Microsoft Presidio on all inputs and outputs

---

## Contact

**Email:** contact@medscribepro.in  
**GitHub:** https://github.com/joelenoch0/medscribe-rcm-mcp  
**Support:** Reply to your onboarding email
