@wardby/cli 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/.env.example +5 -5
  2. package/README.md +6 -1
  3. package/deploy/local/docker-compose.quickstart-coding.yml +11 -0
  4. package/dist/claude-coding-worker/driver.d.ts +12 -0
  5. package/dist/claude-coding-worker/driver.js +29 -7
  6. package/dist/claude-coding-worker/main.js +5 -1
  7. package/dist/claude-coding-worker/sdk.js +17 -1
  8. package/dist/claude-plugin/command.d.ts +64 -0
  9. package/dist/claude-plugin/command.js +379 -0
  10. package/dist/cli-help.d.ts +1 -1
  11. package/dist/cli-help.js +2 -1
  12. package/dist/cli.js +71 -3
  13. package/dist/coding/code-host.d.ts +16 -0
  14. package/dist/coding/code-host.js +60 -0
  15. package/dist/coding/mcp-token.d.ts +12 -0
  16. package/dist/coding/mcp-token.js +26 -0
  17. package/dist/coding/protocol.js +2 -0
  18. package/dist/coding/redact.js +6 -1
  19. package/dist/coding/transcript/recorder.d.ts +5 -4
  20. package/dist/coding/transcript/recorder.js +3 -9
  21. package/dist/coding-worker/debug-trace.d.ts +3 -1
  22. package/dist/coding-worker/debug-trace.js +4 -2
  23. package/dist/coding-worker/driver.js +8 -1
  24. package/dist/coding-worker/main.js +5 -1
  25. package/dist/coding-worker/mcp-config.d.ts +27 -0
  26. package/dist/coding-worker/mcp-config.js +32 -0
  27. package/dist/coding-worker/sdk.d.ts +36 -0
  28. package/dist/coding-worker/sdk.js +28 -1
  29. package/dist/coding-worker/types.d.ts +4 -0
  30. package/dist/config/mcp-call-limit.d.ts +8 -0
  31. package/dist/config/mcp-call-limit.js +18 -0
  32. package/dist/config/mcp-servers.d.ts +8 -0
  33. package/dist/config/mcp-servers.js +12 -0
  34. package/dist/config/test-simulators.d.ts +10 -0
  35. package/dist/config/test-simulators.js +28 -0
  36. package/dist/config/tool-timeout.d.ts +1 -0
  37. package/dist/config/tool-timeout.js +18 -0
  38. package/dist/core/coding-mcp.d.ts +36 -0
  39. package/dist/core/coding-mcp.js +253 -0
  40. package/dist/core/coding-repository.d.ts +46 -0
  41. package/dist/core/coding-repository.js +92 -0
  42. package/dist/core/delegation-slots.d.ts +27 -0
  43. package/dist/core/delegation-slots.js +44 -0
  44. package/dist/core/dispatch.d.ts +6 -2
  45. package/dist/core/dispatch.js +39 -11
  46. package/dist/core/engine-native.d.ts +2 -0
  47. package/dist/core/engine-native.js +13 -0
  48. package/dist/core/error-code.js +2 -0
  49. package/dist/core/grants.d.ts +28 -3
  50. package/dist/core/grants.js +46 -4
  51. package/dist/core/host-events.js +7 -3
  52. package/dist/core/host-status.js +2 -2
  53. package/dist/core/issue-status.js +4 -3
  54. package/dist/core/listen-address.d.ts +10 -0
  55. package/dist/core/listen-address.js +14 -0
  56. package/dist/core/mark-ready.d.ts +1 -1
  57. package/dist/core/mark-ready.js +1 -1
  58. package/dist/core/mcp-client/client.d.ts +47 -0
  59. package/dist/core/mcp-client/client.js +141 -0
  60. package/dist/core/mcp-client/jsonrpc.d.ts +15 -0
  61. package/dist/core/mcp-client/jsonrpc.js +54 -0
  62. package/dist/core/mcp-client/results.d.ts +13 -0
  63. package/dist/core/mcp-client/results.js +42 -0
  64. package/dist/core/mcp-servers.d.ts +90 -0
  65. package/dist/core/mcp-servers.js +230 -0
  66. package/dist/core/mcp-tools.d.ts +108 -0
  67. package/dist/core/mcp-tools.js +287 -0
  68. package/dist/core/merge-order-check.js +38 -19
  69. package/dist/core/notification-dispatcher.js +2 -1
  70. package/dist/core/power-idle.d.ts +8 -2
  71. package/dist/core/power-idle.js +17 -3
  72. package/dist/core/power.d.ts +5 -0
  73. package/dist/core/power.js +5 -0
  74. package/dist/core/related-pull-requests.js +26 -10
  75. package/dist/core/retention-days.d.ts +5 -0
  76. package/dist/core/retention-days.js +14 -0
  77. package/dist/core/review-fix.js +2 -2
  78. package/dist/core/review-host-tools.js +3 -1
  79. package/dist/core/run-steps/config.d.ts +25 -0
  80. package/dist/core/run-steps/config.js +40 -0
  81. package/dist/core/run-steps/control-chars.d.ts +16 -0
  82. package/dist/core/run-steps/control-chars.js +26 -0
  83. package/dist/core/run-steps/detail.d.ts +32 -0
  84. package/dist/core/run-steps/detail.js +240 -0
  85. package/dist/core/run-steps/extract.d.ts +52 -0
  86. package/dist/core/run-steps/extract.js +467 -0
  87. package/dist/core/run-steps/ingress.d.ts +51 -0
  88. package/dist/core/run-steps/ingress.js +160 -0
  89. package/dist/core/run-steps/last-step.d.ts +15 -0
  90. package/dist/core/run-steps/last-step.js +35 -0
  91. package/dist/core/run-steps/native.d.ts +48 -0
  92. package/dist/core/run-steps/native.js +164 -0
  93. package/dist/core/run-steps/seen.d.ts +16 -0
  94. package/dist/core/run-steps/seen.js +35 -0
  95. package/dist/core/run-steps/summarize.d.ts +57 -0
  96. package/dist/core/run-steps/summarize.js +304 -0
  97. package/dist/core/run-steps/sweep.d.ts +21 -0
  98. package/dist/core/run-steps/sweep.js +41 -0
  99. package/dist/core/run-steps/types.d.ts +89 -0
  100. package/dist/core/run-steps/types.js +39 -0
  101. package/dist/core/run-steps/wire.d.ts +35 -0
  102. package/dist/core/run-steps/wire.js +47 -0
  103. package/dist/core/run-steps/writer.d.ts +49 -0
  104. package/dist/core/run-steps/writer.js +279 -0
  105. package/dist/core/runner.d.ts +70 -16
  106. package/dist/core/runner.js +296 -74
  107. package/dist/core/secret-broker-config.d.ts +2 -0
  108. package/dist/core/secret-broker-config.js +1 -1
  109. package/dist/core/secret-guard.d.ts +5 -2
  110. package/dist/core/secret-guard.js +22 -7
  111. package/dist/core/secrets.d.ts +11 -1
  112. package/dist/core/secrets.js +27 -1
  113. package/dist/core/serializable-retry.d.ts +18 -0
  114. package/dist/core/serializable-retry.js +43 -0
  115. package/dist/core/tool-admin.d.ts +5 -1
  116. package/dist/core/tool-admin.js +7 -2
  117. package/dist/core/tool-names.d.ts +13 -0
  118. package/dist/core/tool-names.js +20 -0
  119. package/dist/core/webhooks.d.ts +4 -0
  120. package/dist/core/webhooks.js +68 -49
  121. package/dist/core/workflow-run-events.js +2 -1
  122. package/dist/generated/prisma/browser.d.ts +39 -0
  123. package/dist/generated/prisma/client.d.ts +39 -0
  124. package/dist/generated/prisma/commonInputTypes.d.ts +80 -50
  125. package/dist/generated/prisma/enums.d.ts +6 -0
  126. package/dist/generated/prisma/enums.js +5 -0
  127. package/dist/generated/prisma/internal/class.d.ts +77 -0
  128. package/dist/generated/prisma/internal/class.js +4 -4
  129. package/dist/generated/prisma/internal/prismaNamespace.d.ts +632 -1
  130. package/dist/generated/prisma/internal/prismaNamespace.js +94 -3
  131. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +98 -0
  132. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +94 -3
  133. package/dist/generated/prisma/models/Agent.d.ts +372 -1
  134. package/dist/generated/prisma/models/AgentMcpServer.d.ts +1412 -0
  135. package/dist/generated/prisma/models/AgentMcpServer.js +1 -0
  136. package/dist/generated/prisma/models/AgentRepository.d.ts +40 -1
  137. package/dist/generated/prisma/models/AuthUser.d.ts +1 -1
  138. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +0 -7
  139. package/dist/generated/prisma/models/CodingProxySession.d.ts +159 -2
  140. package/dist/generated/prisma/models/CodingRun.d.ts +76 -1
  141. package/dist/generated/prisma/models/HostProvider.d.ts +2176 -0
  142. package/dist/generated/prisma/models/HostProvider.js +1 -0
  143. package/dist/generated/prisma/models/HostProviderCredential.d.ts +1285 -0
  144. package/dist/generated/prisma/models/HostProviderCredential.js +1 -0
  145. package/dist/generated/prisma/models/HostProviderOperation.d.ts +1470 -0
  146. package/dist/generated/prisma/models/HostProviderOperation.js +1 -0
  147. package/dist/generated/prisma/models/HostProviderTrustedAccount.d.ts +1145 -0
  148. package/dist/generated/prisma/models/HostProviderTrustedAccount.js +1 -0
  149. package/dist/generated/prisma/models/McpServer.d.ts +1500 -0
  150. package/dist/generated/prisma/models/McpServer.js +1 -0
  151. package/dist/generated/prisma/models/NativeGatewayCall.d.ts +39 -1
  152. package/dist/generated/prisma/models/Principal.d.ts +167 -0
  153. package/dist/generated/prisma/models/ResourceGrant.d.ts +1 -1
  154. package/dist/generated/prisma/models/Run.d.ts +503 -1
  155. package/dist/generated/prisma/models/RunStep.d.ts +1453 -0
  156. package/dist/generated/prisma/models/RunStep.js +1 -0
  157. package/dist/generated/prisma/models/Secret.d.ts +387 -0
  158. package/dist/generated/prisma/models/Tool.d.ts +223 -1
  159. package/dist/generated/prisma/models.d.ts +7 -0
  160. package/dist/help/search.js +12 -3
  161. package/dist/help-index.json +812 -52
  162. package/dist/import/create.js +16 -1
  163. package/dist/import/neutral-schema.d.ts +1 -0
  164. package/dist/import/neutral-schema.js +2 -0
  165. package/dist/mcp/auth/access.d.ts +1 -0
  166. package/dist/mcp/auth/grants-cli.d.ts +6 -4
  167. package/dist/mcp/auth/grants-cli.js +42 -3
  168. package/dist/mcp/auth/resource-server.d.ts +3 -1
  169. package/dist/mcp/auth/resource-server.js +17 -2
  170. package/dist/mcp/context.d.ts +6 -0
  171. package/dist/mcp/index.js +21 -0
  172. package/dist/mcp/tools/agents.js +135 -20
  173. package/dist/mcp/tools/grants.js +66 -28
  174. package/dist/mcp/tools/host-providers.d.ts +2 -0
  175. package/dist/mcp/tools/host-providers.js +215 -0
  176. package/dist/mcp/tools/mcp-servers.d.ts +26 -0
  177. package/dist/mcp/tools/mcp-servers.js +481 -0
  178. package/dist/mcp/tools/power.js +2 -2
  179. package/dist/mcp/tools/repositories.js +50 -10
  180. package/dist/mcp/tools/run-access.d.ts +7 -0
  181. package/dist/mcp/tools/run-access.js +14 -0
  182. package/dist/mcp/tools/run-steps.d.ts +16 -0
  183. package/dist/mcp/tools/run-steps.js +85 -0
  184. package/dist/mcp/tools/runs.js +186 -18
  185. package/dist/mcp/tools/secret-elicitation.d.ts +2 -0
  186. package/dist/mcp/tools/secret-elicitation.js +25 -2
  187. package/dist/mcp/tools/secrets.js +38 -4
  188. package/dist/mcp/tools/tools.d.ts +6 -4
  189. package/dist/mcp/tools/tools.js +40 -8
  190. package/dist/mcp/tools/trigger.js +28 -6
  191. package/dist/mcp/transport/http-limits.d.ts +2 -0
  192. package/dist/mcp/transport/http-limits.js +6 -2
  193. package/dist/mcp/webhooks/ingress.js +10 -0
  194. package/dist/native-worker/gateway-server.d.ts +18 -1
  195. package/dist/native-worker/gateway-server.js +38 -9
  196. package/dist/native-worker/gateway.d.ts +5 -0
  197. package/dist/native-worker/gateway.js +13 -1
  198. package/dist/native-worker/http-server.d.ts +6 -4
  199. package/dist/native-worker/http-server.js +53 -8
  200. package/dist/native-worker/ledger.d.ts +6 -2
  201. package/dist/native-worker/ledger.js +5 -4
  202. package/dist/native-worker/protocol.d.ts +1 -0
  203. package/dist/native-worker/protocol.js +4 -1
  204. package/dist/providers/coding-proxy/capability-hash.d.ts +2 -0
  205. package/dist/providers/coding-proxy/capability-hash.js +5 -0
  206. package/dist/providers/coding-proxy/mcp-route.d.ts +34 -0
  207. package/dist/providers/coding-proxy/mcp-route.js +166 -0
  208. package/dist/providers/coding-proxy/memory-ledger.d.ts +2 -0
  209. package/dist/providers/coding-proxy/memory-ledger.js +16 -0
  210. package/dist/providers/coding-proxy/prisma-ledger.d.ts +1 -0
  211. package/dist/providers/coding-proxy/prisma-ledger.js +36 -2
  212. package/dist/providers/coding-proxy/proxy.d.ts +33 -1
  213. package/dist/providers/coding-proxy/proxy.js +266 -75
  214. package/dist/providers/coding-proxy/run-step-forwarder.d.ts +42 -0
  215. package/dist/providers/coding-proxy/run-step-forwarder.js +206 -0
  216. package/dist/providers/coding-proxy/runtime.d.ts +13 -0
  217. package/dist/providers/coding-proxy/runtime.js +87 -4
  218. package/dist/providers/coding-proxy/server.d.ts +3 -0
  219. package/dist/providers/coding-proxy/server.js +10 -0
  220. package/dist/providers/coding-proxy/types.d.ts +18 -0
  221. package/dist/providers/engine/types.d.ts +26 -0
  222. package/dist/providers/executor/composition.js +5 -0
  223. package/dist/providers/executor/container.d.ts +47 -1
  224. package/dist/providers/executor/container.js +84 -8
  225. package/dist/providers/host-tools/invoke.d.ts +37 -0
  226. package/dist/providers/host-tools/invoke.js +117 -0
  227. package/dist/providers/host-tools/operations.d.ts +65 -0
  228. package/dist/providers/host-tools/operations.js +149 -0
  229. package/dist/providers/host-tools/registry.d.ts +79 -0
  230. package/dist/providers/host-tools/registry.js +362 -0
  231. package/dist/providers/host-tools/request-guard.d.ts +17 -0
  232. package/dist/providers/host-tools/request-guard.js +99 -0
  233. package/dist/providers/host-tools/self-test.d.ts +64 -0
  234. package/dist/providers/host-tools/self-test.js +142 -0
  235. package/dist/providers/jobs/docker-isolation.d.ts +2 -2
  236. package/dist/providers/jobs/docker-isolation.js +30 -8
  237. package/dist/providers/jobs/docker.d.ts +8 -0
  238. package/dist/providers/jobs/docker.js +33 -9
  239. package/dist/providers/jobs/kubernetes-isolation.d.ts +3 -1
  240. package/dist/providers/jobs/kubernetes-isolation.js +15 -2
  241. package/dist/providers/jobs/kubernetes.d.ts +13 -0
  242. package/dist/providers/jobs/kubernetes.js +28 -5
  243. package/dist/providers/jobs/types.d.ts +6 -0
  244. package/dist/providers/review-host/types.d.ts +6 -4
  245. package/dist/providers/review-host/types.js +1 -1
  246. package/dist/providers/vcs/git.d.ts +6 -2
  247. package/dist/providers/vcs/git.js +15 -4
  248. package/dist/providers/vcs/github.d.ts +2 -71
  249. package/dist/providers/vcs/github.js +8 -11
  250. package/dist/providers/vcs/index.d.ts +1 -1
  251. package/dist/providers/vcs/index.js +1 -1
  252. package/dist/providers/vcs/remote.d.ts +4 -0
  253. package/dist/providers/vcs/remote.js +7 -1
  254. package/dist/providers/vcs/routing.d.ts +12 -6
  255. package/dist/providers/vcs/routing.js +21 -6
  256. package/dist/providers/vcs/types.d.ts +71 -3
  257. package/dist/quickstart/index.d.ts +5 -0
  258. package/dist/quickstart/index.js +21 -0
  259. package/dist/quickstart-images.json +1 -1
  260. package/dist/sandbox/eval-core.d.ts +12 -2
  261. package/dist/sandbox/eval-core.js +20 -4
  262. package/dist/sandbox/host-functions.d.ts +4 -0
  263. package/dist/sandbox/host-functions.js +7 -2
  264. package/dist/sandbox/limits.d.ts +4 -1
  265. package/dist/sandbox/limits.js +4 -1
  266. package/dist/sandbox/run-in-sandbox.d.ts +6 -0
  267. package/dist/sandbox/run-in-sandbox.js +14 -2
  268. package/dist/sandbox/safe-fetch.d.ts +2 -0
  269. package/dist/sandbox/safe-fetch.js +1 -1
  270. package/dist/sandbox/secret-broker.d.ts +1 -0
  271. package/dist/sandbox/secret-broker.js +1 -1
  272. package/dist/sandbox/tool-timeout.d.ts +32 -0
  273. package/dist/sandbox/tool-timeout.js +52 -0
  274. package/dist/sandbox/user-tool.d.ts +8 -1
  275. package/dist/sandbox/user-tool.js +9 -3
  276. package/dist/serve.js +26 -18
  277. package/dist/viewer/api-schema.d.ts +66 -0
  278. package/dist/viewer/api-schema.js +31 -0
  279. package/dist/viewer/graph.js +2 -1
  280. package/dist/viewer/openapi.js +2 -1
  281. package/dist/viewer/run-detail.d.ts +2 -0
  282. package/dist/viewer/run-detail.js +26 -1
  283. package/dist/wardby-bin.js +5 -0
  284. package/docs/README.md +11 -1
  285. package/docs/agent-recipes.md +37 -4
  286. package/docs/architecture-runtime.md +1 -1
  287. package/docs/claude-code-plugin.md +208 -0
  288. package/docs/code-review-agents.md +6 -0
  289. package/docs/coding-agent-setup.md +94 -1
  290. package/docs/coding-worker-byo-images.md +4 -2
  291. package/docs/coding-worker-isolation.md +94 -7
  292. package/docs/debugging-agent-runs.md +354 -0
  293. package/docs/getting-started-gke.md +33 -11
  294. package/docs/getting-started-identity-provider.md +43 -37
  295. package/docs/getting-started.md +8 -0
  296. package/docs/host-providers.md +294 -0
  297. package/docs/mcp-servers.md +263 -0
  298. package/docs/native-sandbox.md +31 -9
  299. package/docs/security-deployment.md +161 -31
  300. package/docs/tool-secrets.md +3 -0
  301. package/docs/viewer-api.md +27 -12
  302. package/docs/viewer-api.openapi.yml +78 -2
  303. package/help/admin-viewer.md +5 -0
  304. package/help/agent-recipes.md +33 -2
  305. package/help/brokered-secrets.md +3 -0
  306. package/help/build-claude-code-image.md +1 -1
  307. package/help/claude-code-run-pane.md +63 -0
  308. package/help/deploy-gke.md +5 -0
  309. package/help/errors/coding-mcp-gateway-unavailable.md +46 -0
  310. package/help/errors/coding-mcp-pins-unavailable.md +35 -0
  311. package/help/errors/database-auth-invalid.md +1 -1
  312. package/help/errors/host-provider-error.md +40 -0
  313. package/help/errors/host-tool-failed.md +36 -0
  314. package/help/errors/mcp-call-limit.md +22 -0
  315. package/help/errors/mcp-call-timeout.md +22 -0
  316. package/help/errors/mcp-server-auth-failed.md +22 -0
  317. package/help/errors/mcp-server-credentials-unavailable.md +45 -0
  318. package/help/errors/mcp-server-error.md +28 -0
  319. package/help/errors/mcp-server-unreachable.md +22 -0
  320. package/help/errors/mcp-servers-off.md +21 -0
  321. package/help/errors/mcp-tool-not-allowed.md +26 -0
  322. package/help/errors/mcp-tool-removed.md +22 -0
  323. package/help/errors/mcp-unavailable.md +25 -0
  324. package/help/errors/native-sandbox-capacity.md +1 -1
  325. package/help/errors/native-sandbox-deadline-exceeded.md +1 -1
  326. package/help/errors/native-sandbox-docker-failed.md +1 -1
  327. package/help/errors/native-sandbox-gateway-error.md +1 -1
  328. package/help/errors/native-sandbox-gateway-unavailable.md +1 -1
  329. package/help/errors/native-sandbox-image-not-pinned.md +1 -1
  330. package/help/errors/native-sandbox-isolation-mismatch.md +1 -1
  331. package/help/errors/native-sandbox-network-unenforced.md +1 -1
  332. package/help/errors/native-sandbox-requires-catalog.md +1 -1
  333. package/help/errors/native-sandbox-unavailable.md +1 -1
  334. package/help/errors/native-sandbox-warm-delivery-failed.md +1 -1
  335. package/help/errors/native-sandbox-worker-exited.md +1 -1
  336. package/help/errors/native-sandbox-worker-lost.md +1 -1
  337. package/help/errors/native-sandbox-worker-unready.md +1 -1
  338. package/help/errors/repository-not-listed.md +36 -0
  339. package/help/errors/repository-required.md +36 -0
  340. package/help/errors/tool-timeout.md +38 -0
  341. package/help/host-providers.md +40 -0
  342. package/help/identity-and-access.md +4 -1
  343. package/help/low-power-mode.md +19 -8
  344. package/help/mcp-servers.md +73 -0
  345. package/help/mcp.md +9 -2
  346. package/help/native-capabilities.md +27 -1
  347. package/help/native-sandbox.md +1 -1
  348. package/help/operating-agents.md +16 -0
  349. package/help/related-pull-requests.md +7 -3
  350. package/help/repo-instructions-and-skills.md +3 -1
  351. package/help/resume-runs-locally.md +7 -0
  352. package/help/run-steps.md +140 -0
  353. package/help/stop-run.md +1 -1
  354. package/help/troubleshooting/coding-workers.md +9 -1
  355. package/help/troubleshooting/debugging-agent-runs.md +29 -0
  356. package/package.json +2 -1
  357. package/prisma/migrations/20261102000000_host_providers/migration.sql +56 -0
  358. package/prisma/migrations/20261104000000_coding_agent_repository_list/migration.sql +5 -0
  359. package/prisma/migrations/20261106000000_tool_timeout/migration.sql +4 -0
  360. package/prisma/migrations/20261107000000_mcp_servers/migration.sql +33 -0
  361. package/prisma/migrations/20261108000000_coding_mcp/migration.sql +5 -0
  362. package/prisma/migrations/20261109000000_task_run_index/migration.sql +3 -0
  363. package/prisma/migrations/20261110000000_run_steps/migration.sql +26 -0
  364. package/prisma/migrations/20261111000000_run_steps_viewer_notify/migration.sql +59 -0
  365. package/prisma/migrations/20261112000000_run_steps_detail/migration.sql +9 -0
  366. package/prisma/schema.prisma +211 -14
  367. package/scripts/git-askpass.sh +1 -1
@@ -0,0 +1,1412 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model AgentMcpServer
5
+ * An MCP server attached to an agent, with the server tools it may call.
6
+ */
7
+ export type AgentMcpServerModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentMcpServerPayload>;
8
+ export type AggregateAgentMcpServer = {
9
+ _count: AgentMcpServerCountAggregateOutputType | null;
10
+ _avg: AgentMcpServerAvgAggregateOutputType | null;
11
+ _sum: AgentMcpServerSumAggregateOutputType | null;
12
+ _min: AgentMcpServerMinAggregateOutputType | null;
13
+ _max: AgentMcpServerMaxAggregateOutputType | null;
14
+ };
15
+ export type AgentMcpServerAvgAggregateOutputType = {
16
+ callTimeoutMs: number | null;
17
+ };
18
+ export type AgentMcpServerSumAggregateOutputType = {
19
+ callTimeoutMs: number | null;
20
+ };
21
+ export type AgentMcpServerMinAggregateOutputType = {
22
+ agentId: string | null;
23
+ serverId: string | null;
24
+ callTimeoutMs: number | null;
25
+ attachedById: string | null;
26
+ createdAt: Date | null;
27
+ updatedAt: Date | null;
28
+ };
29
+ export type AgentMcpServerMaxAggregateOutputType = {
30
+ agentId: string | null;
31
+ serverId: string | null;
32
+ callTimeoutMs: number | null;
33
+ attachedById: string | null;
34
+ createdAt: Date | null;
35
+ updatedAt: Date | null;
36
+ };
37
+ export type AgentMcpServerCountAggregateOutputType = {
38
+ agentId: number;
39
+ serverId: number;
40
+ allowedTools: number;
41
+ callTimeoutMs: number;
42
+ attachedById: number;
43
+ createdAt: number;
44
+ updatedAt: number;
45
+ _all: number;
46
+ };
47
+ export type AgentMcpServerAvgAggregateInputType = {
48
+ callTimeoutMs?: true;
49
+ };
50
+ export type AgentMcpServerSumAggregateInputType = {
51
+ callTimeoutMs?: true;
52
+ };
53
+ export type AgentMcpServerMinAggregateInputType = {
54
+ agentId?: true;
55
+ serverId?: true;
56
+ callTimeoutMs?: true;
57
+ attachedById?: true;
58
+ createdAt?: true;
59
+ updatedAt?: true;
60
+ };
61
+ export type AgentMcpServerMaxAggregateInputType = {
62
+ agentId?: true;
63
+ serverId?: true;
64
+ callTimeoutMs?: true;
65
+ attachedById?: true;
66
+ createdAt?: true;
67
+ updatedAt?: true;
68
+ };
69
+ export type AgentMcpServerCountAggregateInputType = {
70
+ agentId?: true;
71
+ serverId?: true;
72
+ allowedTools?: true;
73
+ callTimeoutMs?: true;
74
+ attachedById?: true;
75
+ createdAt?: true;
76
+ updatedAt?: true;
77
+ _all?: true;
78
+ };
79
+ export type AgentMcpServerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
80
+ /**
81
+ * Filter which AgentMcpServer to aggregate.
82
+ */
83
+ where?: Prisma.AgentMcpServerWhereInput;
84
+ /**
85
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
86
+ *
87
+ * Determine the order of AgentMcpServers to fetch.
88
+ */
89
+ orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[];
90
+ /**
91
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
92
+ *
93
+ * Sets the start position
94
+ */
95
+ cursor?: Prisma.AgentMcpServerWhereUniqueInput;
96
+ /**
97
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
98
+ *
99
+ * Take `±n` AgentMcpServers from the position of the cursor.
100
+ */
101
+ take?: number;
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
104
+ *
105
+ * Skip the first `n` AgentMcpServers.
106
+ */
107
+ skip?: number;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
110
+ *
111
+ * Count returned AgentMcpServers
112
+ **/
113
+ _count?: true | AgentMcpServerCountAggregateInputType;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
116
+ *
117
+ * Select which fields to average
118
+ **/
119
+ _avg?: AgentMcpServerAvgAggregateInputType;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
122
+ *
123
+ * Select which fields to sum
124
+ **/
125
+ _sum?: AgentMcpServerSumAggregateInputType;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
+ *
129
+ * Select which fields to find the minimum value
130
+ **/
131
+ _min?: AgentMcpServerMinAggregateInputType;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Select which fields to find the maximum value
136
+ **/
137
+ _max?: AgentMcpServerMaxAggregateInputType;
138
+ };
139
+ export type GetAgentMcpServerAggregateType<T extends AgentMcpServerAggregateArgs> = {
140
+ [P in keyof T & keyof AggregateAgentMcpServer]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAgentMcpServer[P]> : Prisma.GetScalarType<T[P], AggregateAgentMcpServer[P]>;
141
+ };
142
+ export type AgentMcpServerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
143
+ where?: Prisma.AgentMcpServerWhereInput;
144
+ orderBy?: Prisma.AgentMcpServerOrderByWithAggregationInput | Prisma.AgentMcpServerOrderByWithAggregationInput[];
145
+ by: Prisma.AgentMcpServerScalarFieldEnum[] | Prisma.AgentMcpServerScalarFieldEnum;
146
+ having?: Prisma.AgentMcpServerScalarWhereWithAggregatesInput;
147
+ take?: number;
148
+ skip?: number;
149
+ _count?: AgentMcpServerCountAggregateInputType | true;
150
+ _avg?: AgentMcpServerAvgAggregateInputType;
151
+ _sum?: AgentMcpServerSumAggregateInputType;
152
+ _min?: AgentMcpServerMinAggregateInputType;
153
+ _max?: AgentMcpServerMaxAggregateInputType;
154
+ };
155
+ export type AgentMcpServerGroupByOutputType = {
156
+ agentId: string;
157
+ serverId: string;
158
+ allowedTools: string[];
159
+ callTimeoutMs: number | null;
160
+ attachedById: string;
161
+ createdAt: Date;
162
+ updatedAt: Date;
163
+ _count: AgentMcpServerCountAggregateOutputType | null;
164
+ _avg: AgentMcpServerAvgAggregateOutputType | null;
165
+ _sum: AgentMcpServerSumAggregateOutputType | null;
166
+ _min: AgentMcpServerMinAggregateOutputType | null;
167
+ _max: AgentMcpServerMaxAggregateOutputType | null;
168
+ };
169
+ export type GetAgentMcpServerGroupByPayload<T extends AgentMcpServerGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AgentMcpServerGroupByOutputType, T['by']> & {
170
+ [P in ((keyof T) & (keyof AgentMcpServerGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AgentMcpServerGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AgentMcpServerGroupByOutputType[P]>;
171
+ }>>;
172
+ export type AgentMcpServerWhereInput = {
173
+ AND?: Prisma.AgentMcpServerWhereInput | Prisma.AgentMcpServerWhereInput[];
174
+ OR?: Prisma.AgentMcpServerWhereInput[];
175
+ NOT?: Prisma.AgentMcpServerWhereInput | Prisma.AgentMcpServerWhereInput[];
176
+ agentId?: Prisma.StringFilter<"AgentMcpServer"> | string;
177
+ serverId?: Prisma.StringFilter<"AgentMcpServer"> | string;
178
+ allowedTools?: Prisma.StringNullableListFilter<"AgentMcpServer">;
179
+ callTimeoutMs?: Prisma.IntNullableFilter<"AgentMcpServer"> | number | null;
180
+ attachedById?: Prisma.StringFilter<"AgentMcpServer"> | string;
181
+ createdAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string;
182
+ updatedAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string;
183
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
184
+ server?: Prisma.XOR<Prisma.McpServerScalarRelationFilter, Prisma.McpServerWhereInput>;
185
+ };
186
+ export type AgentMcpServerOrderByWithRelationInput = {
187
+ agentId?: Prisma.SortOrder;
188
+ serverId?: Prisma.SortOrder;
189
+ allowedTools?: Prisma.SortOrder;
190
+ callTimeoutMs?: Prisma.SortOrderInput | Prisma.SortOrder;
191
+ attachedById?: Prisma.SortOrder;
192
+ createdAt?: Prisma.SortOrder;
193
+ updatedAt?: Prisma.SortOrder;
194
+ agent?: Prisma.AgentOrderByWithRelationInput;
195
+ server?: Prisma.McpServerOrderByWithRelationInput;
196
+ };
197
+ export type AgentMcpServerWhereUniqueInput = Prisma.AtLeast<{
198
+ agentId_serverId?: Prisma.AgentMcpServerAgentIdServerIdCompoundUniqueInput;
199
+ AND?: Prisma.AgentMcpServerWhereInput | Prisma.AgentMcpServerWhereInput[];
200
+ OR?: Prisma.AgentMcpServerWhereInput[];
201
+ NOT?: Prisma.AgentMcpServerWhereInput | Prisma.AgentMcpServerWhereInput[];
202
+ agentId?: Prisma.StringFilter<"AgentMcpServer"> | string;
203
+ serverId?: Prisma.StringFilter<"AgentMcpServer"> | string;
204
+ allowedTools?: Prisma.StringNullableListFilter<"AgentMcpServer">;
205
+ callTimeoutMs?: Prisma.IntNullableFilter<"AgentMcpServer"> | number | null;
206
+ attachedById?: Prisma.StringFilter<"AgentMcpServer"> | string;
207
+ createdAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string;
208
+ updatedAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string;
209
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
210
+ server?: Prisma.XOR<Prisma.McpServerScalarRelationFilter, Prisma.McpServerWhereInput>;
211
+ }, "agentId_serverId">;
212
+ export type AgentMcpServerOrderByWithAggregationInput = {
213
+ agentId?: Prisma.SortOrder;
214
+ serverId?: Prisma.SortOrder;
215
+ allowedTools?: Prisma.SortOrder;
216
+ callTimeoutMs?: Prisma.SortOrderInput | Prisma.SortOrder;
217
+ attachedById?: Prisma.SortOrder;
218
+ createdAt?: Prisma.SortOrder;
219
+ updatedAt?: Prisma.SortOrder;
220
+ _count?: Prisma.AgentMcpServerCountOrderByAggregateInput;
221
+ _avg?: Prisma.AgentMcpServerAvgOrderByAggregateInput;
222
+ _max?: Prisma.AgentMcpServerMaxOrderByAggregateInput;
223
+ _min?: Prisma.AgentMcpServerMinOrderByAggregateInput;
224
+ _sum?: Prisma.AgentMcpServerSumOrderByAggregateInput;
225
+ };
226
+ export type AgentMcpServerScalarWhereWithAggregatesInput = {
227
+ AND?: Prisma.AgentMcpServerScalarWhereWithAggregatesInput | Prisma.AgentMcpServerScalarWhereWithAggregatesInput[];
228
+ OR?: Prisma.AgentMcpServerScalarWhereWithAggregatesInput[];
229
+ NOT?: Prisma.AgentMcpServerScalarWhereWithAggregatesInput | Prisma.AgentMcpServerScalarWhereWithAggregatesInput[];
230
+ agentId?: Prisma.StringWithAggregatesFilter<"AgentMcpServer"> | string;
231
+ serverId?: Prisma.StringWithAggregatesFilter<"AgentMcpServer"> | string;
232
+ allowedTools?: Prisma.StringNullableListFilter<"AgentMcpServer">;
233
+ callTimeoutMs?: Prisma.IntNullableWithAggregatesFilter<"AgentMcpServer"> | number | null;
234
+ attachedById?: Prisma.StringWithAggregatesFilter<"AgentMcpServer"> | string;
235
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AgentMcpServer"> | Date | string;
236
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AgentMcpServer"> | Date | string;
237
+ };
238
+ export type AgentMcpServerCreateInput = {
239
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
240
+ callTimeoutMs?: number | null;
241
+ attachedById: string;
242
+ createdAt?: Date | string;
243
+ updatedAt?: Date | string;
244
+ agent: Prisma.AgentCreateNestedOneWithoutMcpServersInput;
245
+ server: Prisma.McpServerCreateNestedOneWithoutAgentsInput;
246
+ };
247
+ export type AgentMcpServerUncheckedCreateInput = {
248
+ agentId: string;
249
+ serverId: string;
250
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
251
+ callTimeoutMs?: number | null;
252
+ attachedById: string;
253
+ createdAt?: Date | string;
254
+ updatedAt?: Date | string;
255
+ };
256
+ export type AgentMcpServerUpdateInput = {
257
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
258
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
259
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
260
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
261
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
262
+ agent?: Prisma.AgentUpdateOneRequiredWithoutMcpServersNestedInput;
263
+ server?: Prisma.McpServerUpdateOneRequiredWithoutAgentsNestedInput;
264
+ };
265
+ export type AgentMcpServerUncheckedUpdateInput = {
266
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ serverId?: Prisma.StringFieldUpdateOperationsInput | string;
268
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
269
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
270
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
271
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
272
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
273
+ };
274
+ export type AgentMcpServerCreateManyInput = {
275
+ agentId: string;
276
+ serverId: string;
277
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
278
+ callTimeoutMs?: number | null;
279
+ attachedById: string;
280
+ createdAt?: Date | string;
281
+ updatedAt?: Date | string;
282
+ };
283
+ export type AgentMcpServerUpdateManyMutationInput = {
284
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
285
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
286
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
287
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
288
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
289
+ };
290
+ export type AgentMcpServerUncheckedUpdateManyInput = {
291
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
292
+ serverId?: Prisma.StringFieldUpdateOperationsInput | string;
293
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
294
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
295
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
297
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
298
+ };
299
+ export type AgentMcpServerListRelationFilter = {
300
+ every?: Prisma.AgentMcpServerWhereInput;
301
+ some?: Prisma.AgentMcpServerWhereInput;
302
+ none?: Prisma.AgentMcpServerWhereInput;
303
+ };
304
+ export type AgentMcpServerOrderByRelationAggregateInput = {
305
+ _count?: Prisma.SortOrder;
306
+ };
307
+ export type AgentMcpServerAgentIdServerIdCompoundUniqueInput = {
308
+ agentId: string;
309
+ serverId: string;
310
+ };
311
+ export type AgentMcpServerCountOrderByAggregateInput = {
312
+ agentId?: Prisma.SortOrder;
313
+ serverId?: Prisma.SortOrder;
314
+ allowedTools?: Prisma.SortOrder;
315
+ callTimeoutMs?: Prisma.SortOrder;
316
+ attachedById?: Prisma.SortOrder;
317
+ createdAt?: Prisma.SortOrder;
318
+ updatedAt?: Prisma.SortOrder;
319
+ };
320
+ export type AgentMcpServerAvgOrderByAggregateInput = {
321
+ callTimeoutMs?: Prisma.SortOrder;
322
+ };
323
+ export type AgentMcpServerMaxOrderByAggregateInput = {
324
+ agentId?: Prisma.SortOrder;
325
+ serverId?: Prisma.SortOrder;
326
+ callTimeoutMs?: Prisma.SortOrder;
327
+ attachedById?: Prisma.SortOrder;
328
+ createdAt?: Prisma.SortOrder;
329
+ updatedAt?: Prisma.SortOrder;
330
+ };
331
+ export type AgentMcpServerMinOrderByAggregateInput = {
332
+ agentId?: Prisma.SortOrder;
333
+ serverId?: Prisma.SortOrder;
334
+ callTimeoutMs?: Prisma.SortOrder;
335
+ attachedById?: Prisma.SortOrder;
336
+ createdAt?: Prisma.SortOrder;
337
+ updatedAt?: Prisma.SortOrder;
338
+ };
339
+ export type AgentMcpServerSumOrderByAggregateInput = {
340
+ callTimeoutMs?: Prisma.SortOrder;
341
+ };
342
+ export type AgentMcpServerCreateNestedManyWithoutAgentInput = {
343
+ create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpServerCreateWithoutAgentInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput[];
344
+ connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput | Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput[];
345
+ createMany?: Prisma.AgentMcpServerCreateManyAgentInputEnvelope;
346
+ connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
347
+ };
348
+ export type AgentMcpServerUncheckedCreateNestedManyWithoutAgentInput = {
349
+ create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpServerCreateWithoutAgentInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput[];
350
+ connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput | Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput[];
351
+ createMany?: Prisma.AgentMcpServerCreateManyAgentInputEnvelope;
352
+ connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
353
+ };
354
+ export type AgentMcpServerUpdateManyWithoutAgentNestedInput = {
355
+ create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpServerCreateWithoutAgentInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput[];
356
+ connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput | Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput[];
357
+ upsert?: Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput[];
358
+ createMany?: Prisma.AgentMcpServerCreateManyAgentInputEnvelope;
359
+ set?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
360
+ disconnect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
361
+ delete?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
362
+ connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
363
+ update?: Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput[];
364
+ updateMany?: Prisma.AgentMcpServerUpdateManyWithWhereWithoutAgentInput | Prisma.AgentMcpServerUpdateManyWithWhereWithoutAgentInput[];
365
+ deleteMany?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[];
366
+ };
367
+ export type AgentMcpServerUncheckedUpdateManyWithoutAgentNestedInput = {
368
+ create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput> | Prisma.AgentMcpServerCreateWithoutAgentInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput[];
369
+ connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput | Prisma.AgentMcpServerCreateOrConnectWithoutAgentInput[];
370
+ upsert?: Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput[];
371
+ createMany?: Prisma.AgentMcpServerCreateManyAgentInputEnvelope;
372
+ set?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
373
+ disconnect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
374
+ delete?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
375
+ connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
376
+ update?: Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput | Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput[];
377
+ updateMany?: Prisma.AgentMcpServerUpdateManyWithWhereWithoutAgentInput | Prisma.AgentMcpServerUpdateManyWithWhereWithoutAgentInput[];
378
+ deleteMany?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[];
379
+ };
380
+ export type AgentMcpServerCreateNestedManyWithoutServerInput = {
381
+ create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutServerInput> | Prisma.AgentMcpServerCreateWithoutServerInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutServerInput[];
382
+ connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutServerInput | Prisma.AgentMcpServerCreateOrConnectWithoutServerInput[];
383
+ createMany?: Prisma.AgentMcpServerCreateManyServerInputEnvelope;
384
+ connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
385
+ };
386
+ export type AgentMcpServerUncheckedCreateNestedManyWithoutServerInput = {
387
+ create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutServerInput> | Prisma.AgentMcpServerCreateWithoutServerInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutServerInput[];
388
+ connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutServerInput | Prisma.AgentMcpServerCreateOrConnectWithoutServerInput[];
389
+ createMany?: Prisma.AgentMcpServerCreateManyServerInputEnvelope;
390
+ connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
391
+ };
392
+ export type AgentMcpServerUpdateManyWithoutServerNestedInput = {
393
+ create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutServerInput> | Prisma.AgentMcpServerCreateWithoutServerInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutServerInput[];
394
+ connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutServerInput | Prisma.AgentMcpServerCreateOrConnectWithoutServerInput[];
395
+ upsert?: Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutServerInput | Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutServerInput[];
396
+ createMany?: Prisma.AgentMcpServerCreateManyServerInputEnvelope;
397
+ set?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
398
+ disconnect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
399
+ delete?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
400
+ connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
401
+ update?: Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutServerInput | Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutServerInput[];
402
+ updateMany?: Prisma.AgentMcpServerUpdateManyWithWhereWithoutServerInput | Prisma.AgentMcpServerUpdateManyWithWhereWithoutServerInput[];
403
+ deleteMany?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[];
404
+ };
405
+ export type AgentMcpServerUncheckedUpdateManyWithoutServerNestedInput = {
406
+ create?: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutServerInput> | Prisma.AgentMcpServerCreateWithoutServerInput[] | Prisma.AgentMcpServerUncheckedCreateWithoutServerInput[];
407
+ connectOrCreate?: Prisma.AgentMcpServerCreateOrConnectWithoutServerInput | Prisma.AgentMcpServerCreateOrConnectWithoutServerInput[];
408
+ upsert?: Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutServerInput | Prisma.AgentMcpServerUpsertWithWhereUniqueWithoutServerInput[];
409
+ createMany?: Prisma.AgentMcpServerCreateManyServerInputEnvelope;
410
+ set?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
411
+ disconnect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
412
+ delete?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
413
+ connect?: Prisma.AgentMcpServerWhereUniqueInput | Prisma.AgentMcpServerWhereUniqueInput[];
414
+ update?: Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutServerInput | Prisma.AgentMcpServerUpdateWithWhereUniqueWithoutServerInput[];
415
+ updateMany?: Prisma.AgentMcpServerUpdateManyWithWhereWithoutServerInput | Prisma.AgentMcpServerUpdateManyWithWhereWithoutServerInput[];
416
+ deleteMany?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[];
417
+ };
418
+ export type AgentMcpServerCreateallowedToolsInput = {
419
+ set: string[];
420
+ };
421
+ export type AgentMcpServerUpdateallowedToolsInput = {
422
+ set?: string[];
423
+ push?: string | string[];
424
+ };
425
+ export type AgentMcpServerCreateWithoutAgentInput = {
426
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
427
+ callTimeoutMs?: number | null;
428
+ attachedById: string;
429
+ createdAt?: Date | string;
430
+ updatedAt?: Date | string;
431
+ server: Prisma.McpServerCreateNestedOneWithoutAgentsInput;
432
+ };
433
+ export type AgentMcpServerUncheckedCreateWithoutAgentInput = {
434
+ serverId: string;
435
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
436
+ callTimeoutMs?: number | null;
437
+ attachedById: string;
438
+ createdAt?: Date | string;
439
+ updatedAt?: Date | string;
440
+ };
441
+ export type AgentMcpServerCreateOrConnectWithoutAgentInput = {
442
+ where: Prisma.AgentMcpServerWhereUniqueInput;
443
+ create: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput>;
444
+ };
445
+ export type AgentMcpServerCreateManyAgentInputEnvelope = {
446
+ data: Prisma.AgentMcpServerCreateManyAgentInput | Prisma.AgentMcpServerCreateManyAgentInput[];
447
+ skipDuplicates?: boolean;
448
+ };
449
+ export type AgentMcpServerUpsertWithWhereUniqueWithoutAgentInput = {
450
+ where: Prisma.AgentMcpServerWhereUniqueInput;
451
+ update: Prisma.XOR<Prisma.AgentMcpServerUpdateWithoutAgentInput, Prisma.AgentMcpServerUncheckedUpdateWithoutAgentInput>;
452
+ create: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutAgentInput, Prisma.AgentMcpServerUncheckedCreateWithoutAgentInput>;
453
+ };
454
+ export type AgentMcpServerUpdateWithWhereUniqueWithoutAgentInput = {
455
+ where: Prisma.AgentMcpServerWhereUniqueInput;
456
+ data: Prisma.XOR<Prisma.AgentMcpServerUpdateWithoutAgentInput, Prisma.AgentMcpServerUncheckedUpdateWithoutAgentInput>;
457
+ };
458
+ export type AgentMcpServerUpdateManyWithWhereWithoutAgentInput = {
459
+ where: Prisma.AgentMcpServerScalarWhereInput;
460
+ data: Prisma.XOR<Prisma.AgentMcpServerUpdateManyMutationInput, Prisma.AgentMcpServerUncheckedUpdateManyWithoutAgentInput>;
461
+ };
462
+ export type AgentMcpServerScalarWhereInput = {
463
+ AND?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[];
464
+ OR?: Prisma.AgentMcpServerScalarWhereInput[];
465
+ NOT?: Prisma.AgentMcpServerScalarWhereInput | Prisma.AgentMcpServerScalarWhereInput[];
466
+ agentId?: Prisma.StringFilter<"AgentMcpServer"> | string;
467
+ serverId?: Prisma.StringFilter<"AgentMcpServer"> | string;
468
+ allowedTools?: Prisma.StringNullableListFilter<"AgentMcpServer">;
469
+ callTimeoutMs?: Prisma.IntNullableFilter<"AgentMcpServer"> | number | null;
470
+ attachedById?: Prisma.StringFilter<"AgentMcpServer"> | string;
471
+ createdAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string;
472
+ updatedAt?: Prisma.DateTimeFilter<"AgentMcpServer"> | Date | string;
473
+ };
474
+ export type AgentMcpServerCreateWithoutServerInput = {
475
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
476
+ callTimeoutMs?: number | null;
477
+ attachedById: string;
478
+ createdAt?: Date | string;
479
+ updatedAt?: Date | string;
480
+ agent: Prisma.AgentCreateNestedOneWithoutMcpServersInput;
481
+ };
482
+ export type AgentMcpServerUncheckedCreateWithoutServerInput = {
483
+ agentId: string;
484
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
485
+ callTimeoutMs?: number | null;
486
+ attachedById: string;
487
+ createdAt?: Date | string;
488
+ updatedAt?: Date | string;
489
+ };
490
+ export type AgentMcpServerCreateOrConnectWithoutServerInput = {
491
+ where: Prisma.AgentMcpServerWhereUniqueInput;
492
+ create: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutServerInput>;
493
+ };
494
+ export type AgentMcpServerCreateManyServerInputEnvelope = {
495
+ data: Prisma.AgentMcpServerCreateManyServerInput | Prisma.AgentMcpServerCreateManyServerInput[];
496
+ skipDuplicates?: boolean;
497
+ };
498
+ export type AgentMcpServerUpsertWithWhereUniqueWithoutServerInput = {
499
+ where: Prisma.AgentMcpServerWhereUniqueInput;
500
+ update: Prisma.XOR<Prisma.AgentMcpServerUpdateWithoutServerInput, Prisma.AgentMcpServerUncheckedUpdateWithoutServerInput>;
501
+ create: Prisma.XOR<Prisma.AgentMcpServerCreateWithoutServerInput, Prisma.AgentMcpServerUncheckedCreateWithoutServerInput>;
502
+ };
503
+ export type AgentMcpServerUpdateWithWhereUniqueWithoutServerInput = {
504
+ where: Prisma.AgentMcpServerWhereUniqueInput;
505
+ data: Prisma.XOR<Prisma.AgentMcpServerUpdateWithoutServerInput, Prisma.AgentMcpServerUncheckedUpdateWithoutServerInput>;
506
+ };
507
+ export type AgentMcpServerUpdateManyWithWhereWithoutServerInput = {
508
+ where: Prisma.AgentMcpServerScalarWhereInput;
509
+ data: Prisma.XOR<Prisma.AgentMcpServerUpdateManyMutationInput, Prisma.AgentMcpServerUncheckedUpdateManyWithoutServerInput>;
510
+ };
511
+ export type AgentMcpServerCreateManyAgentInput = {
512
+ serverId: string;
513
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
514
+ callTimeoutMs?: number | null;
515
+ attachedById: string;
516
+ createdAt?: Date | string;
517
+ updatedAt?: Date | string;
518
+ };
519
+ export type AgentMcpServerUpdateWithoutAgentInput = {
520
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
521
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
522
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
523
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
524
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
525
+ server?: Prisma.McpServerUpdateOneRequiredWithoutAgentsNestedInput;
526
+ };
527
+ export type AgentMcpServerUncheckedUpdateWithoutAgentInput = {
528
+ serverId?: Prisma.StringFieldUpdateOperationsInput | string;
529
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
530
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
531
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
532
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
533
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
534
+ };
535
+ export type AgentMcpServerUncheckedUpdateManyWithoutAgentInput = {
536
+ serverId?: Prisma.StringFieldUpdateOperationsInput | string;
537
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
538
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
539
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
540
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
541
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
542
+ };
543
+ export type AgentMcpServerCreateManyServerInput = {
544
+ agentId: string;
545
+ allowedTools?: Prisma.AgentMcpServerCreateallowedToolsInput | string[];
546
+ callTimeoutMs?: number | null;
547
+ attachedById: string;
548
+ createdAt?: Date | string;
549
+ updatedAt?: Date | string;
550
+ };
551
+ export type AgentMcpServerUpdateWithoutServerInput = {
552
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
553
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
554
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
555
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
556
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
557
+ agent?: Prisma.AgentUpdateOneRequiredWithoutMcpServersNestedInput;
558
+ };
559
+ export type AgentMcpServerUncheckedUpdateWithoutServerInput = {
560
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
561
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
562
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
563
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
564
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
565
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
566
+ };
567
+ export type AgentMcpServerUncheckedUpdateManyWithoutServerInput = {
568
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
569
+ allowedTools?: Prisma.AgentMcpServerUpdateallowedToolsInput | string[];
570
+ callTimeoutMs?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
571
+ attachedById?: Prisma.StringFieldUpdateOperationsInput | string;
572
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
573
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
574
+ };
575
+ export type AgentMcpServerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
576
+ agentId?: boolean;
577
+ serverId?: boolean;
578
+ allowedTools?: boolean;
579
+ callTimeoutMs?: boolean;
580
+ attachedById?: boolean;
581
+ createdAt?: boolean;
582
+ updatedAt?: boolean;
583
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
584
+ server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>;
585
+ }, ExtArgs["result"]["agentMcpServer"]>;
586
+ export type AgentMcpServerSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
587
+ agentId?: boolean;
588
+ serverId?: boolean;
589
+ allowedTools?: boolean;
590
+ callTimeoutMs?: boolean;
591
+ attachedById?: boolean;
592
+ createdAt?: boolean;
593
+ updatedAt?: boolean;
594
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
595
+ server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>;
596
+ }, ExtArgs["result"]["agentMcpServer"]>;
597
+ export type AgentMcpServerSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
598
+ agentId?: boolean;
599
+ serverId?: boolean;
600
+ allowedTools?: boolean;
601
+ callTimeoutMs?: boolean;
602
+ attachedById?: boolean;
603
+ createdAt?: boolean;
604
+ updatedAt?: boolean;
605
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
606
+ server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>;
607
+ }, ExtArgs["result"]["agentMcpServer"]>;
608
+ export type AgentMcpServerSelectScalar = {
609
+ agentId?: boolean;
610
+ serverId?: boolean;
611
+ allowedTools?: boolean;
612
+ callTimeoutMs?: boolean;
613
+ attachedById?: boolean;
614
+ createdAt?: boolean;
615
+ updatedAt?: boolean;
616
+ };
617
+ export type AgentMcpServerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"agentId" | "serverId" | "allowedTools" | "callTimeoutMs" | "attachedById" | "createdAt" | "updatedAt", ExtArgs["result"]["agentMcpServer"]>;
618
+ export type AgentMcpServerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
619
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
620
+ server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>;
621
+ };
622
+ export type AgentMcpServerIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
623
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
624
+ server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>;
625
+ };
626
+ export type AgentMcpServerIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
627
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
628
+ server?: boolean | Prisma.McpServerDefaultArgs<ExtArgs>;
629
+ };
630
+ export type $AgentMcpServerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
631
+ name: "AgentMcpServer";
632
+ objects: {
633
+ agent: Prisma.$AgentPayload<ExtArgs>;
634
+ server: Prisma.$McpServerPayload<ExtArgs>;
635
+ };
636
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
637
+ agentId: string;
638
+ serverId: string;
639
+ /**
640
+ * Exact tool names from the server's saved list. Never empty.
641
+ */
642
+ allowedTools: string[];
643
+ /**
644
+ * Per call; null = 30000. Capped by WARDBY_TOOL_MAX_TIMEOUT_MS at call time.
645
+ */
646
+ callTimeoutMs: number | null;
647
+ attachedById: string;
648
+ createdAt: Date;
649
+ updatedAt: Date;
650
+ }, ExtArgs["result"]["agentMcpServer"]>;
651
+ composites: {};
652
+ };
653
+ export type AgentMcpServerGetPayload<S extends boolean | null | undefined | AgentMcpServerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload, S>;
654
+ export type AgentMcpServerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AgentMcpServerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
655
+ select?: AgentMcpServerCountAggregateInputType | true;
656
+ };
657
+ export interface AgentMcpServerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
658
+ [K: symbol]: {
659
+ types: Prisma.TypeMap<ExtArgs>['model']['AgentMcpServer'];
660
+ meta: {
661
+ name: 'AgentMcpServer';
662
+ };
663
+ };
664
+ /**
665
+ * Find zero or one AgentMcpServer that matches the filter.
666
+ * @param {AgentMcpServerFindUniqueArgs} args - Arguments to find a AgentMcpServer
667
+ * @example
668
+ * // Get one AgentMcpServer
669
+ * const agentMcpServer = await prisma.agentMcpServer.findUnique({
670
+ * where: {
671
+ * // ... provide filter here
672
+ * }
673
+ * })
674
+ */
675
+ findUnique<T extends AgentMcpServerFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentMcpServerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
676
+ /**
677
+ * Find one AgentMcpServer that matches the filter or throw an error with `error.code='P2025'`
678
+ * if no matches were found.
679
+ * @param {AgentMcpServerFindUniqueOrThrowArgs} args - Arguments to find a AgentMcpServer
680
+ * @example
681
+ * // Get one AgentMcpServer
682
+ * const agentMcpServer = await prisma.agentMcpServer.findUniqueOrThrow({
683
+ * where: {
684
+ * // ... provide filter here
685
+ * }
686
+ * })
687
+ */
688
+ findUniqueOrThrow<T extends AgentMcpServerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentMcpServerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
689
+ /**
690
+ * Find the first AgentMcpServer that matches the filter.
691
+ * Note, that providing `undefined` is treated as the value not being there.
692
+ * Read more here: https://pris.ly/d/null-undefined
693
+ * @param {AgentMcpServerFindFirstArgs} args - Arguments to find a AgentMcpServer
694
+ * @example
695
+ * // Get one AgentMcpServer
696
+ * const agentMcpServer = await prisma.agentMcpServer.findFirst({
697
+ * where: {
698
+ * // ... provide filter here
699
+ * }
700
+ * })
701
+ */
702
+ findFirst<T extends AgentMcpServerFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
703
+ /**
704
+ * Find the first AgentMcpServer that matches the filter or
705
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
706
+ * Note, that providing `undefined` is treated as the value not being there.
707
+ * Read more here: https://pris.ly/d/null-undefined
708
+ * @param {AgentMcpServerFindFirstOrThrowArgs} args - Arguments to find a AgentMcpServer
709
+ * @example
710
+ * // Get one AgentMcpServer
711
+ * const agentMcpServer = await prisma.agentMcpServer.findFirstOrThrow({
712
+ * where: {
713
+ * // ... provide filter here
714
+ * }
715
+ * })
716
+ */
717
+ findFirstOrThrow<T extends AgentMcpServerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
718
+ /**
719
+ * Find zero or more AgentMcpServers that matches the filter.
720
+ * Note, that providing `undefined` is treated as the value not being there.
721
+ * Read more here: https://pris.ly/d/null-undefined
722
+ * @param {AgentMcpServerFindManyArgs} args - Arguments to filter and select certain fields only.
723
+ * @example
724
+ * // Get all AgentMcpServers
725
+ * const agentMcpServers = await prisma.agentMcpServer.findMany()
726
+ *
727
+ * // Get first 10 AgentMcpServers
728
+ * const agentMcpServers = await prisma.agentMcpServer.findMany({ take: 10 })
729
+ *
730
+ * // Only select the `agentId`
731
+ * const agentMcpServerWithAgentIdOnly = await prisma.agentMcpServer.findMany({ select: { agentId: true } })
732
+ *
733
+ */
734
+ findMany<T extends AgentMcpServerFindManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
735
+ /**
736
+ * Create a AgentMcpServer.
737
+ * @param {AgentMcpServerCreateArgs} args - Arguments to create a AgentMcpServer.
738
+ * @example
739
+ * // Create one AgentMcpServer
740
+ * const AgentMcpServer = await prisma.agentMcpServer.create({
741
+ * data: {
742
+ * // ... data to create a AgentMcpServer
743
+ * }
744
+ * })
745
+ *
746
+ */
747
+ create<T extends AgentMcpServerCreateArgs>(args: Prisma.SelectSubset<T, AgentMcpServerCreateArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
748
+ /**
749
+ * Create many AgentMcpServers.
750
+ * @param {AgentMcpServerCreateManyArgs} args - Arguments to create many AgentMcpServers.
751
+ * @example
752
+ * // Create many AgentMcpServers
753
+ * const agentMcpServer = await prisma.agentMcpServer.createMany({
754
+ * data: [
755
+ * // ... provide data here
756
+ * ]
757
+ * })
758
+ *
759
+ */
760
+ createMany<T extends AgentMcpServerCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
761
+ /**
762
+ * Create many AgentMcpServers and returns the data saved in the database.
763
+ * @param {AgentMcpServerCreateManyAndReturnArgs} args - Arguments to create many AgentMcpServers.
764
+ * @example
765
+ * // Create many AgentMcpServers
766
+ * const agentMcpServer = await prisma.agentMcpServer.createManyAndReturn({
767
+ * data: [
768
+ * // ... provide data here
769
+ * ]
770
+ * })
771
+ *
772
+ * // Create many AgentMcpServers and only return the `agentId`
773
+ * const agentMcpServerWithAgentIdOnly = await prisma.agentMcpServer.createManyAndReturn({
774
+ * select: { agentId: true },
775
+ * data: [
776
+ * // ... provide data here
777
+ * ]
778
+ * })
779
+ * Note, that providing `undefined` is treated as the value not being there.
780
+ * Read more here: https://pris.ly/d/null-undefined
781
+ *
782
+ */
783
+ createManyAndReturn<T extends AgentMcpServerCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
784
+ /**
785
+ * Delete a AgentMcpServer.
786
+ * @param {AgentMcpServerDeleteArgs} args - Arguments to delete one AgentMcpServer.
787
+ * @example
788
+ * // Delete one AgentMcpServer
789
+ * const AgentMcpServer = await prisma.agentMcpServer.delete({
790
+ * where: {
791
+ * // ... filter to delete one AgentMcpServer
792
+ * }
793
+ * })
794
+ *
795
+ */
796
+ delete<T extends AgentMcpServerDeleteArgs>(args: Prisma.SelectSubset<T, AgentMcpServerDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
797
+ /**
798
+ * Update one AgentMcpServer.
799
+ * @param {AgentMcpServerUpdateArgs} args - Arguments to update one AgentMcpServer.
800
+ * @example
801
+ * // Update one AgentMcpServer
802
+ * const agentMcpServer = await prisma.agentMcpServer.update({
803
+ * where: {
804
+ * // ... provide filter here
805
+ * },
806
+ * data: {
807
+ * // ... provide data here
808
+ * }
809
+ * })
810
+ *
811
+ */
812
+ update<T extends AgentMcpServerUpdateArgs>(args: Prisma.SelectSubset<T, AgentMcpServerUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
813
+ /**
814
+ * Delete zero or more AgentMcpServers.
815
+ * @param {AgentMcpServerDeleteManyArgs} args - Arguments to filter AgentMcpServers to delete.
816
+ * @example
817
+ * // Delete a few AgentMcpServers
818
+ * const { count } = await prisma.agentMcpServer.deleteMany({
819
+ * where: {
820
+ * // ... provide filter here
821
+ * }
822
+ * })
823
+ *
824
+ */
825
+ deleteMany<T extends AgentMcpServerDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentMcpServerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
826
+ /**
827
+ * Update zero or more AgentMcpServers.
828
+ * Note, that providing `undefined` is treated as the value not being there.
829
+ * Read more here: https://pris.ly/d/null-undefined
830
+ * @param {AgentMcpServerUpdateManyArgs} args - Arguments to update one or more rows.
831
+ * @example
832
+ * // Update many AgentMcpServers
833
+ * const agentMcpServer = await prisma.agentMcpServer.updateMany({
834
+ * where: {
835
+ * // ... provide filter here
836
+ * },
837
+ * data: {
838
+ * // ... provide data here
839
+ * }
840
+ * })
841
+ *
842
+ */
843
+ updateMany<T extends AgentMcpServerUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentMcpServerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
844
+ /**
845
+ * Update zero or more AgentMcpServers and returns the data updated in the database.
846
+ * @param {AgentMcpServerUpdateManyAndReturnArgs} args - Arguments to update many AgentMcpServers.
847
+ * @example
848
+ * // Update many AgentMcpServers
849
+ * const agentMcpServer = await prisma.agentMcpServer.updateManyAndReturn({
850
+ * where: {
851
+ * // ... provide filter here
852
+ * },
853
+ * data: [
854
+ * // ... provide data here
855
+ * ]
856
+ * })
857
+ *
858
+ * // Update zero or more AgentMcpServers and only return the `agentId`
859
+ * const agentMcpServerWithAgentIdOnly = await prisma.agentMcpServer.updateManyAndReturn({
860
+ * select: { agentId: true },
861
+ * where: {
862
+ * // ... provide filter here
863
+ * },
864
+ * data: [
865
+ * // ... provide data here
866
+ * ]
867
+ * })
868
+ * Note, that providing `undefined` is treated as the value not being there.
869
+ * Read more here: https://pris.ly/d/null-undefined
870
+ *
871
+ */
872
+ updateManyAndReturn<T extends AgentMcpServerUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentMcpServerUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
873
+ /**
874
+ * Create or update one AgentMcpServer.
875
+ * @param {AgentMcpServerUpsertArgs} args - Arguments to update or create a AgentMcpServer.
876
+ * @example
877
+ * // Update or create a AgentMcpServer
878
+ * const agentMcpServer = await prisma.agentMcpServer.upsert({
879
+ * create: {
880
+ * // ... data to create a AgentMcpServer
881
+ * },
882
+ * update: {
883
+ * // ... in case it already exists, update
884
+ * },
885
+ * where: {
886
+ * // ... the filter for the AgentMcpServer we want to update
887
+ * }
888
+ * })
889
+ */
890
+ upsert<T extends AgentMcpServerUpsertArgs>(args: Prisma.SelectSubset<T, AgentMcpServerUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentMcpServerClient<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
891
+ /**
892
+ * Count the number of AgentMcpServers.
893
+ * Note, that providing `undefined` is treated as the value not being there.
894
+ * Read more here: https://pris.ly/d/null-undefined
895
+ * @param {AgentMcpServerCountArgs} args - Arguments to filter AgentMcpServers to count.
896
+ * @example
897
+ * // Count the number of AgentMcpServers
898
+ * const count = await prisma.agentMcpServer.count({
899
+ * where: {
900
+ * // ... the filter for the AgentMcpServers we want to count
901
+ * }
902
+ * })
903
+ **/
904
+ count<T extends AgentMcpServerCountArgs>(args?: Prisma.Subset<T, AgentMcpServerCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AgentMcpServerCountAggregateOutputType> : number>;
905
+ /**
906
+ * Allows you to perform aggregations operations on a AgentMcpServer.
907
+ * Note, that providing `undefined` is treated as the value not being there.
908
+ * Read more here: https://pris.ly/d/null-undefined
909
+ * @param {AgentMcpServerAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
910
+ * @example
911
+ * // Ordered by age ascending
912
+ * // Where email contains prisma.io
913
+ * // Limited to the 10 users
914
+ * const aggregations = await prisma.user.aggregate({
915
+ * _avg: {
916
+ * age: true,
917
+ * },
918
+ * where: {
919
+ * email: {
920
+ * contains: "prisma.io",
921
+ * },
922
+ * },
923
+ * orderBy: {
924
+ * age: "asc",
925
+ * },
926
+ * take: 10,
927
+ * })
928
+ **/
929
+ aggregate<T extends AgentMcpServerAggregateArgs>(args: Prisma.Subset<T, AgentMcpServerAggregateArgs>): Prisma.PrismaPromise<GetAgentMcpServerAggregateType<T>>;
930
+ /**
931
+ * Group by AgentMcpServer.
932
+ * Note, that providing `undefined` is treated as the value not being there.
933
+ * Read more here: https://pris.ly/d/null-undefined
934
+ * @param {AgentMcpServerGroupByArgs} args - Group by arguments.
935
+ * @example
936
+ * // Group by city, order by createdAt, get count
937
+ * const result = await prisma.user.groupBy({
938
+ * by: ['city', 'createdAt'],
939
+ * orderBy: {
940
+ * createdAt: true
941
+ * },
942
+ * _count: {
943
+ * _all: true
944
+ * },
945
+ * })
946
+ *
947
+ **/
948
+ groupBy<T extends AgentMcpServerGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
949
+ orderBy: AgentMcpServerGroupByArgs['orderBy'];
950
+ } : {
951
+ orderBy?: AgentMcpServerGroupByArgs['orderBy'];
952
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
953
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
954
+ Error,
955
+ 'Field ',
956
+ P,
957
+ ` in "having" needs to be provided in "by"`
958
+ ];
959
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
960
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
961
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
962
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
963
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
964
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
965
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AgentMcpServerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentMcpServerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
966
+ /**
967
+ * Fields of the AgentMcpServer model
968
+ */
969
+ readonly fields: AgentMcpServerFieldRefs;
970
+ }
971
+ /**
972
+ * The delegate class that acts as a "Promise-like" for AgentMcpServer.
973
+ * Why is this prefixed with `Prisma__`?
974
+ * Because we want to prevent naming conflicts as mentioned in
975
+ * https://github.com/prisma/prisma-client-js/issues/707
976
+ */
977
+ export interface Prisma__AgentMcpServerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
978
+ readonly [Symbol.toStringTag]: "PrismaPromise";
979
+ agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
980
+ server<T extends Prisma.McpServerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpServerDefaultArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
981
+ /**
982
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
983
+ * @param onfulfilled The callback to execute when the Promise is resolved.
984
+ * @param onrejected The callback to execute when the Promise is rejected.
985
+ * @returns A Promise for the completion of which ever callback is executed.
986
+ */
987
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
988
+ /**
989
+ * Attaches a callback for only the rejection of the Promise.
990
+ * @param onrejected The callback to execute when the Promise is rejected.
991
+ * @returns A Promise for the completion of the callback.
992
+ */
993
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
994
+ /**
995
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
996
+ * resolved value cannot be modified from the callback.
997
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
998
+ * @returns A Promise for the completion of the callback.
999
+ */
1000
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1001
+ }
1002
+ /**
1003
+ * Fields of the AgentMcpServer model
1004
+ */
1005
+ export interface AgentMcpServerFieldRefs {
1006
+ readonly agentId: Prisma.FieldRef<"AgentMcpServer", 'String'>;
1007
+ readonly serverId: Prisma.FieldRef<"AgentMcpServer", 'String'>;
1008
+ readonly allowedTools: Prisma.FieldRef<"AgentMcpServer", 'String[]'>;
1009
+ readonly callTimeoutMs: Prisma.FieldRef<"AgentMcpServer", 'Int'>;
1010
+ readonly attachedById: Prisma.FieldRef<"AgentMcpServer", 'String'>;
1011
+ readonly createdAt: Prisma.FieldRef<"AgentMcpServer", 'DateTime'>;
1012
+ readonly updatedAt: Prisma.FieldRef<"AgentMcpServer", 'DateTime'>;
1013
+ }
1014
+ /**
1015
+ * AgentMcpServer findUnique
1016
+ */
1017
+ export type AgentMcpServerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1018
+ /**
1019
+ * Select specific fields to fetch from the AgentMcpServer
1020
+ */
1021
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1022
+ /**
1023
+ * Omit specific fields from the AgentMcpServer
1024
+ */
1025
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1026
+ /**
1027
+ * Choose, which related nodes to fetch as well
1028
+ */
1029
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1030
+ /**
1031
+ * Filter, which AgentMcpServer to fetch.
1032
+ */
1033
+ where: Prisma.AgentMcpServerWhereUniqueInput;
1034
+ };
1035
+ /**
1036
+ * AgentMcpServer findUniqueOrThrow
1037
+ */
1038
+ export type AgentMcpServerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1039
+ /**
1040
+ * Select specific fields to fetch from the AgentMcpServer
1041
+ */
1042
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1043
+ /**
1044
+ * Omit specific fields from the AgentMcpServer
1045
+ */
1046
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1047
+ /**
1048
+ * Choose, which related nodes to fetch as well
1049
+ */
1050
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1051
+ /**
1052
+ * Filter, which AgentMcpServer to fetch.
1053
+ */
1054
+ where: Prisma.AgentMcpServerWhereUniqueInput;
1055
+ };
1056
+ /**
1057
+ * AgentMcpServer findFirst
1058
+ */
1059
+ export type AgentMcpServerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1060
+ /**
1061
+ * Select specific fields to fetch from the AgentMcpServer
1062
+ */
1063
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1064
+ /**
1065
+ * Omit specific fields from the AgentMcpServer
1066
+ */
1067
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1068
+ /**
1069
+ * Choose, which related nodes to fetch as well
1070
+ */
1071
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1072
+ /**
1073
+ * Filter, which AgentMcpServer to fetch.
1074
+ */
1075
+ where?: Prisma.AgentMcpServerWhereInput;
1076
+ /**
1077
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1078
+ *
1079
+ * Determine the order of AgentMcpServers to fetch.
1080
+ */
1081
+ orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[];
1082
+ /**
1083
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1084
+ *
1085
+ * Sets the position for searching for AgentMcpServers.
1086
+ */
1087
+ cursor?: Prisma.AgentMcpServerWhereUniqueInput;
1088
+ /**
1089
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1090
+ *
1091
+ * Take `±n` AgentMcpServers from the position of the cursor.
1092
+ */
1093
+ take?: number;
1094
+ /**
1095
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1096
+ *
1097
+ * Skip the first `n` AgentMcpServers.
1098
+ */
1099
+ skip?: number;
1100
+ /**
1101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1102
+ *
1103
+ * Filter by unique combinations of AgentMcpServers.
1104
+ */
1105
+ distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[];
1106
+ };
1107
+ /**
1108
+ * AgentMcpServer findFirstOrThrow
1109
+ */
1110
+ export type AgentMcpServerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1111
+ /**
1112
+ * Select specific fields to fetch from the AgentMcpServer
1113
+ */
1114
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1115
+ /**
1116
+ * Omit specific fields from the AgentMcpServer
1117
+ */
1118
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1119
+ /**
1120
+ * Choose, which related nodes to fetch as well
1121
+ */
1122
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1123
+ /**
1124
+ * Filter, which AgentMcpServer to fetch.
1125
+ */
1126
+ where?: Prisma.AgentMcpServerWhereInput;
1127
+ /**
1128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1129
+ *
1130
+ * Determine the order of AgentMcpServers to fetch.
1131
+ */
1132
+ orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[];
1133
+ /**
1134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1135
+ *
1136
+ * Sets the position for searching for AgentMcpServers.
1137
+ */
1138
+ cursor?: Prisma.AgentMcpServerWhereUniqueInput;
1139
+ /**
1140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1141
+ *
1142
+ * Take `±n` AgentMcpServers from the position of the cursor.
1143
+ */
1144
+ take?: number;
1145
+ /**
1146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1147
+ *
1148
+ * Skip the first `n` AgentMcpServers.
1149
+ */
1150
+ skip?: number;
1151
+ /**
1152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1153
+ *
1154
+ * Filter by unique combinations of AgentMcpServers.
1155
+ */
1156
+ distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[];
1157
+ };
1158
+ /**
1159
+ * AgentMcpServer findMany
1160
+ */
1161
+ export type AgentMcpServerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1162
+ /**
1163
+ * Select specific fields to fetch from the AgentMcpServer
1164
+ */
1165
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1166
+ /**
1167
+ * Omit specific fields from the AgentMcpServer
1168
+ */
1169
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1170
+ /**
1171
+ * Choose, which related nodes to fetch as well
1172
+ */
1173
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1174
+ /**
1175
+ * Filter, which AgentMcpServers to fetch.
1176
+ */
1177
+ where?: Prisma.AgentMcpServerWhereInput;
1178
+ /**
1179
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1180
+ *
1181
+ * Determine the order of AgentMcpServers to fetch.
1182
+ */
1183
+ orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[];
1184
+ /**
1185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1186
+ *
1187
+ * Sets the position for listing AgentMcpServers.
1188
+ */
1189
+ cursor?: Prisma.AgentMcpServerWhereUniqueInput;
1190
+ /**
1191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1192
+ *
1193
+ * Take `±n` AgentMcpServers from the position of the cursor.
1194
+ */
1195
+ take?: number;
1196
+ /**
1197
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1198
+ *
1199
+ * Skip the first `n` AgentMcpServers.
1200
+ */
1201
+ skip?: number;
1202
+ /**
1203
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1204
+ *
1205
+ * Filter by unique combinations of AgentMcpServers.
1206
+ */
1207
+ distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[];
1208
+ };
1209
+ /**
1210
+ * AgentMcpServer create
1211
+ */
1212
+ export type AgentMcpServerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1213
+ /**
1214
+ * Select specific fields to fetch from the AgentMcpServer
1215
+ */
1216
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1217
+ /**
1218
+ * Omit specific fields from the AgentMcpServer
1219
+ */
1220
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1221
+ /**
1222
+ * Choose, which related nodes to fetch as well
1223
+ */
1224
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1225
+ /**
1226
+ * The data needed to create a AgentMcpServer.
1227
+ */
1228
+ data: Prisma.XOR<Prisma.AgentMcpServerCreateInput, Prisma.AgentMcpServerUncheckedCreateInput>;
1229
+ };
1230
+ /**
1231
+ * AgentMcpServer createMany
1232
+ */
1233
+ export type AgentMcpServerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1234
+ /**
1235
+ * The data used to create many AgentMcpServers.
1236
+ */
1237
+ data: Prisma.AgentMcpServerCreateManyInput | Prisma.AgentMcpServerCreateManyInput[];
1238
+ skipDuplicates?: boolean;
1239
+ };
1240
+ /**
1241
+ * AgentMcpServer createManyAndReturn
1242
+ */
1243
+ export type AgentMcpServerCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1244
+ /**
1245
+ * Select specific fields to fetch from the AgentMcpServer
1246
+ */
1247
+ select?: Prisma.AgentMcpServerSelectCreateManyAndReturn<ExtArgs> | null;
1248
+ /**
1249
+ * Omit specific fields from the AgentMcpServer
1250
+ */
1251
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1252
+ /**
1253
+ * The data used to create many AgentMcpServers.
1254
+ */
1255
+ data: Prisma.AgentMcpServerCreateManyInput | Prisma.AgentMcpServerCreateManyInput[];
1256
+ skipDuplicates?: boolean;
1257
+ /**
1258
+ * Choose, which related nodes to fetch as well
1259
+ */
1260
+ include?: Prisma.AgentMcpServerIncludeCreateManyAndReturn<ExtArgs> | null;
1261
+ };
1262
+ /**
1263
+ * AgentMcpServer update
1264
+ */
1265
+ export type AgentMcpServerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1266
+ /**
1267
+ * Select specific fields to fetch from the AgentMcpServer
1268
+ */
1269
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1270
+ /**
1271
+ * Omit specific fields from the AgentMcpServer
1272
+ */
1273
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1274
+ /**
1275
+ * Choose, which related nodes to fetch as well
1276
+ */
1277
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1278
+ /**
1279
+ * The data needed to update a AgentMcpServer.
1280
+ */
1281
+ data: Prisma.XOR<Prisma.AgentMcpServerUpdateInput, Prisma.AgentMcpServerUncheckedUpdateInput>;
1282
+ /**
1283
+ * Choose, which AgentMcpServer to update.
1284
+ */
1285
+ where: Prisma.AgentMcpServerWhereUniqueInput;
1286
+ };
1287
+ /**
1288
+ * AgentMcpServer updateMany
1289
+ */
1290
+ export type AgentMcpServerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1291
+ /**
1292
+ * The data used to update AgentMcpServers.
1293
+ */
1294
+ data: Prisma.XOR<Prisma.AgentMcpServerUpdateManyMutationInput, Prisma.AgentMcpServerUncheckedUpdateManyInput>;
1295
+ /**
1296
+ * Filter which AgentMcpServers to update
1297
+ */
1298
+ where?: Prisma.AgentMcpServerWhereInput;
1299
+ /**
1300
+ * Limit how many AgentMcpServers to update.
1301
+ */
1302
+ limit?: number;
1303
+ };
1304
+ /**
1305
+ * AgentMcpServer updateManyAndReturn
1306
+ */
1307
+ export type AgentMcpServerUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1308
+ /**
1309
+ * Select specific fields to fetch from the AgentMcpServer
1310
+ */
1311
+ select?: Prisma.AgentMcpServerSelectUpdateManyAndReturn<ExtArgs> | null;
1312
+ /**
1313
+ * Omit specific fields from the AgentMcpServer
1314
+ */
1315
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1316
+ /**
1317
+ * The data used to update AgentMcpServers.
1318
+ */
1319
+ data: Prisma.XOR<Prisma.AgentMcpServerUpdateManyMutationInput, Prisma.AgentMcpServerUncheckedUpdateManyInput>;
1320
+ /**
1321
+ * Filter which AgentMcpServers to update
1322
+ */
1323
+ where?: Prisma.AgentMcpServerWhereInput;
1324
+ /**
1325
+ * Limit how many AgentMcpServers to update.
1326
+ */
1327
+ limit?: number;
1328
+ /**
1329
+ * Choose, which related nodes to fetch as well
1330
+ */
1331
+ include?: Prisma.AgentMcpServerIncludeUpdateManyAndReturn<ExtArgs> | null;
1332
+ };
1333
+ /**
1334
+ * AgentMcpServer upsert
1335
+ */
1336
+ export type AgentMcpServerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1337
+ /**
1338
+ * Select specific fields to fetch from the AgentMcpServer
1339
+ */
1340
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1341
+ /**
1342
+ * Omit specific fields from the AgentMcpServer
1343
+ */
1344
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1345
+ /**
1346
+ * Choose, which related nodes to fetch as well
1347
+ */
1348
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1349
+ /**
1350
+ * The filter to search for the AgentMcpServer to update in case it exists.
1351
+ */
1352
+ where: Prisma.AgentMcpServerWhereUniqueInput;
1353
+ /**
1354
+ * In case the AgentMcpServer found by the `where` argument doesn't exist, create a new AgentMcpServer with this data.
1355
+ */
1356
+ create: Prisma.XOR<Prisma.AgentMcpServerCreateInput, Prisma.AgentMcpServerUncheckedCreateInput>;
1357
+ /**
1358
+ * In case the AgentMcpServer was found with the provided `where` argument, update it with this data.
1359
+ */
1360
+ update: Prisma.XOR<Prisma.AgentMcpServerUpdateInput, Prisma.AgentMcpServerUncheckedUpdateInput>;
1361
+ };
1362
+ /**
1363
+ * AgentMcpServer delete
1364
+ */
1365
+ export type AgentMcpServerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1366
+ /**
1367
+ * Select specific fields to fetch from the AgentMcpServer
1368
+ */
1369
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1370
+ /**
1371
+ * Omit specific fields from the AgentMcpServer
1372
+ */
1373
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1374
+ /**
1375
+ * Choose, which related nodes to fetch as well
1376
+ */
1377
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1378
+ /**
1379
+ * Filter which AgentMcpServer to delete.
1380
+ */
1381
+ where: Prisma.AgentMcpServerWhereUniqueInput;
1382
+ };
1383
+ /**
1384
+ * AgentMcpServer deleteMany
1385
+ */
1386
+ export type AgentMcpServerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1387
+ /**
1388
+ * Filter which AgentMcpServers to delete
1389
+ */
1390
+ where?: Prisma.AgentMcpServerWhereInput;
1391
+ /**
1392
+ * Limit how many AgentMcpServers to delete.
1393
+ */
1394
+ limit?: number;
1395
+ };
1396
+ /**
1397
+ * AgentMcpServer without action
1398
+ */
1399
+ export type AgentMcpServerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1400
+ /**
1401
+ * Select specific fields to fetch from the AgentMcpServer
1402
+ */
1403
+ select?: Prisma.AgentMcpServerSelect<ExtArgs> | null;
1404
+ /**
1405
+ * Omit specific fields from the AgentMcpServer
1406
+ */
1407
+ omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null;
1408
+ /**
1409
+ * Choose, which related nodes to fetch as well
1410
+ */
1411
+ include?: Prisma.AgentMcpServerInclude<ExtArgs> | null;
1412
+ };