预授权决策支持系统

一个端到端的预授权决策支持系统,包含多智能体AI流程、MCP工具注册表和PostgreSQL后端。

  • by Click2code
  • TypeScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 Click2code/mcp-server

使用说明

事先授权制度

端到端的预先授权决策支持系统,具有多代理AI管道、MCP工具注册表和PostgreSQL后端。

原始线框:https://www.figma.com/design/5qn3BZ9VfJ2eoa06sytSY0/Prior-Authorization-Wireframe

技术栈

  • 前端:React 18+Vite+顺风CSS+shadcn/ui
  • 后端:带JWT身份验证的Express.js(ESM)
  • 数据库PostgreSQL 16(6个表,400+种子行)
  • AI管道:4个代理+6个MCP工具+9步处理流水线

先决条件

  • Node.js 18+
  • PostgreSQL 16+
  • npm

设置

# 1. Install frontend dependencies
npm install

# 2. Install backend dependencies
cd server && npm install && cd ..

# 3. Create database
createdb prior_auth_db

# 4. Run schema + seed data (15 members, 75 claims, 15 policies, 15 PA requests)
node server/db/setup.js

# 5. Create .env.local for frontend API URL
echo "VITE_API_BASE_URL=http://localhost:3001/api/v1" > .env.local

跑步

# Start backend (port 3001)
node server/index.js

# Start frontend (port 5173) — in a new terminal
npm run dev

演示凭据

用户名 密码 角色
admin admin123 医疗总监
护士 nurse123 临床审查员
分析员 分析员123 索赔分析员

验证

# Health check
curl http://localhost:3001/api/v1/health

# List MCP tools
curl http://localhost:3001/api/v1/mcp/tools

# List PA requests
curl http://localhost:3001/api/v1/requests

数据库重置

node server/db/setup.js --reset

建筑

看 设计.md 获取完整的体系结构文档,包括数据库架构、MCP工具注册表、代理管道、API路由和前端集成。