AuthWeaver MCP
AuthWeaver is an MCP server tool that extracts prior-authorization evidence from synthetic FHIR data and returns a structured evidence packet for clinicians.
What It Does
- Receives SHARP context (patient ID + optional FHIR server URL + token)
- Queries a synthetic FHIR server for relevant resources
- Uses an LLM to extract medical-necessity evidence
- Returns a strict JSON evidence packet
Safety & Privacy
- Stateless: no patient data stored
- Data-minimized FHIR queries
- Output is structured for audit review
- Synthetic/de-identified data only
Quick Start (Local)
python -m venv venvvenv\Scripts\activate(Windows) orsource venv/bin/activate(macOS/Linux)pip install -r requirements.txt- Copy
.env.exampleto.envand set an LLM key python server.py
MCP Tool
Tool name: extract_prior_auth_evidence
Inputs:
procedure_name(string)sharp_context(object, optional)patient_id(string, optional, dev only)
Output (JSON):
procedurecriteria_met(list of evidence items)criteria_not_met(list)clinical_summary
Demo Flow
- Prompt Opinion agent invokes
extract_prior_auth_evidencewith SHARP context. - AuthWeaver pulls synthetic FHIR data and extracts evidence.
- Agent displays the evidence packet in the clinician workflow.
Notes
- The MCP SDK wiring may differ based on Prompt Opinion docs. This repo includes a best-effort MCP server plus a FastAPI fallback for local testing.
- Use only synthetic data (Synthea or public FHIR sandbox).