代理关怀 MCP 服务器是一个用于管理人工智能代理的模型控制平台(MCP)。它支持与 Claude Desktop 和 Goose 等 AI 代理框架集成,能让用户访问 Cerner 和 Epic 等医疗保健提供商的患者数据,为医疗领域的人工智能应用提供有力支持。
代理关怀 MCP 服务器是一个强大的模型控制平台,下面为你详细介绍其安装、配置、启动及使用方法。
git clone {agentcare-mcp-github路径}
cd agentcare-mcp
npm install
npm run build
{
"OAUTH_CLIENT_ID": "portal",
"OAUTH_CLIENT_SECRET": "portal",
"OAUTH_TOKEN_HOST": "https://fhir-ehr.cerner.com",
"OAUTH_TOKEN_PATH": "/interconnect-fhir-oauth/oauth2/token",
"OAUTH_AUTHORIZE_PATH": "/interconnect-fhir-oauth/oauth2/authorize",
"OAUTH_AUTHORIZATION_METHOD": "body",
"OAUTH_AUDIENCE": "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
"OAUTH_CALLBACK_URL": "http://localhost:3456/oauth/callback",
"OAUTH_SCOPES": "user/Patient.read user/Observation.read user/MedicationRequest.read user/Condition.read user/AllergyIntolerance.read user/Procedure.read user/CarePlan.read user/CareTeam.read user/Encounter.read user/Immunization.read",
"OAUTH_CALLBACK_PORT": "3456",
"FHIR_BASE_URL": "https://fhir-ehr.cerner.com/r4/ec2458f71b"
}
{
"OAUTH_CLIENT_ID": "FHIRTWO",
"OAUTH_CLIENT_SECRET": "EpicFhir11!",
"OAUTH_TOKEN_HOST": "https://fhir.epic.com",
"OAUTH_TOKEN_PATH": "/interconnect-fhir-oauth/oauth2/token",
"OAUTH_AUTHORIZE_PATH": "/interconnect-fhir-oauth/oauth2/authorize",
"OAUTH_AUTHORIZATION_METHOD": "body",
"OAUTH_AUDIENCE": "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
"OAUTH_CALLBACK_URL": "http://localhost:3456/oauth/callback",
"OAUTH_SCOPES": "user/Patient.read user/Observation.read user/MedicationRequest.read user/Condition.read user/AllergyIntolerance.read user/Procedure.read user/CarePlan.read user/CareTeam.read user/Encounter.read user/Immunization.read",
"OAUTH_CALLBACK_PORT": "3456",
"FHIR_BASE_URL": "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4"
}
npm run build
{
"agent": {
"type": "mcp",
"host": "localhost",
"port": 3000
},
"mcpConfig": {
"OAUTH_CLIENT_ID": "portal",
"OAUTH_CLIENT_SECRET": "portal"
}
}
claudie desktop start
{
"agents": [
{
"name": "mcp-agent",
"type": "mcp",
"host": "localhost",
"port": 3000
}
]
}
sudo lsof -i :3000
sudo kill -9 {PID}
portal
, 密码:portal
FHIRTWO
, 密码:EpicFhir11!