mcp-client-config.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. {
  2. "name": "drg-iris-client",
  3. "version": "1.0.0",
  4. "description": "DRG医保控费预警系统MCP客户端配置",
  5. "author": "DRG开发团队",
  6. "license": "MIT",
  7. "mcp": {
  8. "version": "1.0",
  9. "servers": [
  10. {
  11. "name": "drg-iris-server",
  12. "type": "http",
  13. "url": "http://localhost:8090",
  14. "description": "本地代理服务器连接内网IRIS(172.16.2.15)",
  15. "auth": {
  16. "type": "api_key",
  17. "header": "X-API-Key",
  18. "value": "drg-mcp-access-key-2026"
  19. },
  20. "timeout": 30000,
  21. "retry": {
  22. "attempts": 3,
  23. "delay": 1000
  24. }
  25. }
  26. ],
  27. "tools": {
  28. "query_drg_data": {
  29. "description": "查询DRG相关数据",
  30. "parameters": {
  31. "interface_code": {
  32. "type": "string",
  33. "description": "接口代码,如02010001",
  34. "required": true
  35. },
  36. "params": {
  37. "type": "array",
  38. "description": "查询参数数组",
  39. "required": false
  40. },
  41. "session": {
  42. "type": "object",
  43. "description": "会话信息",
  44. "required": true
  45. }
  46. },
  47. "execution": {
  48. "url": "{{base_url}}/iris-api/invoke",
  49. "method": "POST",
  50. "headers": {
  51. "Content-Type": "application/json",
  52. "X-API-Key": "{{api_key}}"
  53. }
  54. }
  55. },
  56. "execute_drg_grouping": {
  57. "description": "执行DRIS分组操作",
  58. "parameters": {
  59. "patient_data": {
  60. "type": "object",
  61. "description": "病案首页数据",
  62. "required": true
  63. },
  64. "grouping_rules": {
  65. "type": "object",
  66. "description": "分组规则配置",
  67. "required": false
  68. }
  69. },
  70. "execution": {
  71. "url": "{{base_url}}/iris-api/invoke",
  72. "method": "POST",
  73. "headers": {
  74. "Content-Type": "application/json"
  75. }
  76. }
  77. },
  78. "get_warning_records": {
  79. "description": "获取预警记录",
  80. "parameters": {
  81. "start_date": {
  82. "type": "string",
  83. "description": "开始日期,格式: YYYY-MM-DD",
  84. "required": false
  85. },
  86. "end_date": {
  87. "type": "string",
  88. "description": "结束日期,格式: YYYY-MM-DD",
  89. "required": false
  90. },
  91. "warning_level": {
  92. "type": "string",
  93. "description": "预警级别",
  94. "required": false
  95. }
  96. },
  97. "execution": {
  98. "url": "{{base_url}}/iris-api/invoke",
  99. "method": "POST",
  100. "headers": {
  101. "Content-Type": "application/json"
  102. }
  103. }
  104. }
  105. },
  106. "resources": {
  107. "iris_database": {
  108. "type": "iris-database",
  109. "description": "内网IRIS数据库连接(172.16.2.15)",
  110. "uri": "iris://172.16.2.15:52773/USER",
  111. "access": {
  112. "username": "_system",
  113. "password": "pryk@2020"
  114. }
  115. }
  116. },
  117. "settings": {
  118. "base_url": "http://localhost:8090",
  119. "api_key": "drg-mcp-access-key-2026",
  120. "default_session": {
  121. "userID": "158",
  122. "userCode": "admin",
  123. "userName": "admin",
  124. "locID": "2300",
  125. "locDesc": "信息中心",
  126. "groupID": "3",
  127. "groupDesc": "医院维护员",
  128. "hospID": "25",
  129. "hospCode": "H03",
  130. "hospDesc": "合肥普瑞眼科医院",
  131. "langID": 1,
  132. "langDesc": "简体中文",
  133. "changeFlag": "N",
  134. "changeDesc": "",
  135. "lastLoginDate": "2026-01-01",
  136. "lastLoginTime": "00:00:00",
  137. "directorAuth": "N",
  138. "defaultMenuType": "2",
  139. "titleDesc": "",
  140. "userYBCode": "",
  141. "hospYBCode": "H34010400768",
  142. "path": "",
  143. "sessionID": "P9BXebxmDI",
  144. "errorMessageTime": "",
  145. "language": "CN",
  146. "messageTime": 1
  147. },
  148. "pagination": {
  149. "default_page": 1,
  150. "default_limit": 20,
  151. "max_limit": 100
  152. },
  153. "timeout": {
  154. "request": 30000,
  155. "connect": 10000
  156. },
  157. "retry": {
  158. "attempts": 3,
  159. "delay": 1000,
  160. "backoff": "exponential"
  161. }
  162. },
  163. "endpoints": {
  164. "drg_group": {
  165. "path": "/iris-api/invoke",
  166. "method": "POST",
  167. "content_type": "application/json",
  168. "description": "DRG分组接口调用"
  169. },
  170. "basic_data": {
  171. "path": "/iris-api/invoke",
  172. "method": "POST",
  173. "content_type": "application/json",
  174. "description": "基础数据接口调用"
  175. },
  176. "warning": {
  177. "path": "/iris-api/invoke",
  178. "method": "POST",
  179. "content_type": "application/json",
  180. "description": "预警接口调用"
  181. },
  182. "profit": {
  183. "path": "/iris-api/invoke",
  184. "method": "POST",
  185. "content_type": "application/json",
  186. "description": "盈亏分析接口调用"
  187. }
  188. },
  189. "authentication": {
  190. "type": "api_key",
  191. "header": "X-API-Key",
  192. "value": "drg-mcp-access-key-2026",
  193. "description": "API密钥认证",
  194. "required": true
  195. },
  196. "logging": {
  197. "enabled": true,
  198. "level": "info",
  199. "format": "json",
  200. "output": "console",
  201. "file": {
  202. "enabled": false,
  203. "path": "./logs/mcp-client.log",
  204. "max_size": "100MB",
  205. "max_files": 10
  206. }
  207. },
  208. "monitoring": {
  209. "enabled": true,
  210. "metrics": ["request_count", "response_time", "error_rate"],
  211. "health_check": {
  212. "enabled": true,
  213. "interval": 30,
  214. "endpoint": "/health"
  215. }
  216. },
  217. "security": {
  218. "ssl": {
  219. "enabled": false,
  220. "verify": false
  221. },
  222. "cors": {
  223. "enabled": true,
  224. "origins": ["*"]
  225. },
  226. "rate_limiting": {
  227. "enabled": true,
  228. "requests_per_minute": 60
  229. }
  230. }
  231. }
  232. }