hospitalverse-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hospitalverse-mcpinject ambulance surge and run coordinator"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hospitalverse-mcp
Rule-based Layer 2 agent logic + Layer 1 tool surface for HospitalVerse AI,
matching the architecture in HospitalVerse_Architecture.md. This is
build-order step 2 ("deterministic agents producing the same JSON
shape a real agent would") — swap in LangGraph + an LLM per module
(step 3) without touching the tool contracts, then MCP-ify (step 4).
What's here vs. what's new
Everything in src/ implements the tool surface from architecture §4.
Two things go beyond the original doc, from the review pass:
Visible conflict resolution.
coordinator.tsdoesn't just chain agent outputs — when the Bed Agent's top pick lands in an understaffed ward, or a doctor is over capacity, the Coordinator picks between two real options and records both: what it rejected, what it chose, and why. That's whatActionStep.conflictcarries through to the Explainer prompt and the dashboard.A queryable audit trail.
audit.resources.tsexposesaudit://trail/{agent}andaudit://trail/by-event/{eventId}as MCP Resources, not just a database table. Every tool call already writes to the log viawithAudit()instate/dts.ts— these resources are what let a judge (or a real compliance reviewer) query it live.
Related MCP server: hospital-ai-secure-assistant
Run it standalone (no MCP, no Studio)
npm install
npm run devsrc/index.ts runs a CLI demo: injects an ambulance surge, runs the
Coordinator, and prints the resulting action chain — including the
conflict-resolution step — plus the audit log size. Good for verifying
agent logic works before wiring up Studio.
Wire it into NitroStack Studio
The folder layout here matches what nitrostack-cli init scaffolds
(src/index.ts, app.module.ts, modules/*.tools.ts), but doesn't
depend on @nitrostack/core yet — src/lib/define-tool.ts is a thin
stand-in. To go from "runs standalone" to "connects in Studio":
nitrostack-cli init hospitalverse-mcp --template typescript-starterCopy this
src/tree into the scaffolded project, replacing the starter's calculator example.In
src/lib/define-tool.ts, swap the plaindefineTool/defineResourcefunctions for whatever@nitrostack/coreexports — every module here only imports from that one file.npm run dev, then Studio → Add Server → Nitro Project → pick the folder (handbook §4). The Tools/Resources pages will list everything inapp.module.tsautomatically.For the "no user typed a question" wow-moment: deploy, then connect to ChatGPT (handbook, "How to connect to ChatGPT") and call
sim.inject_eventfrom a ChatGPT chat instead of a dashboard button — proves the MCP surface is a real interop layer, not just internal plumbing for your own UI.
Files
src/
├── index.ts # standalone CLI demo / bootstrap
├── app.module.ts # registers every tool + resource
├── lib/define-tool.ts # @nitrostack/core stand-in — swap here
├── state/
│ ├── dts.ts # Digital Twin State + event bus + audit hook
│ └── state.tools.ts # state.get_snapshot, get_historical_trend
├── predict/predict.tools.ts # predict.occupancy (Forecaster Agent)
├── beds/beds.tools.ts # beds.*, patients.list_dischargeable
├── staff/staff.tools.ts # staff.* (Staffing Agent)
├── equipment/equipment.tools.ts # equipment.* (Equipment Agent)
├── sim/sim.tools.ts # sim.inject_event — demo trigger
├── audit/audit.resources.ts # audit://trail/* — the new compliance surface
├── coordinator/
│ ├── coordinator.ts # conflict-resolution logic, two cascades
│ └── explainer.prompts.ts # Explainer Agent prompt + fallback
└── health/health.ts # health check for Studio's Health pageThis server cannot be deployed
Maintenance
Related MCP Connectors
Healthcare staffing simulator — ED, walk-in clinic, and appointment office DES tools.
Hosted MCP for denial, prior auth, reimbursement, workflow validation, batch scoring, and feedback.
MCP server for Support & Service Management
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceIntegrates healthcare data from multiple sources (HL7 v2, FHIR, DICOM, device telemetry) and provides clinicians with secure, role-based access to patient context, care unit summaries, device events, diagnostic exams, and other clinical data through specialized MCP tools.MIT
- FlicenseNot gradedqualityDmaintenanceRole-based AI assistant for hospital workflows, patient FAQ, staff tools, and secure document approvals with MCP-style tool access.-
- AlicenseNot gradedqualityBmaintenanceEnables emergency medical coordination with tools for triage, medication guidance, blood donor outreach, mass casualty simulation, and emergency plan generation.MIT
- FlicenseBqualityCmaintenanceAI-powered Hospital Operations MCP server that enables seamless interaction with hospital databases, automated alerts, appointment scheduling, and maintenance management via Jira.191-