Files
shumai/packages/db/src/generated/prisma/models/McpServer.ts
T
Yiling-J 1b5cbf936a feat(mcp): add MCP server support with proxy tool and OAuth flow (#289)
* feat(mcp): add MCP server support with proxy tool and OAuth flow

Add URL-based MCP (Model Context Protocol) server support to the backend:

- DB: McpServer / AgentMcpServer / McpServerCredential models with
  typed JSON columns (auth config, cached tools, stored OAuth tokens,
  pending auth state) and a migration.
- Core (@shumai/core/src/mcp): DB-backed credential store, OAuth
  client provider (authorization_code + client_credentials) with a
  Hono-hosted redirect callback, connection lifecycle manager
  (Streamable HTTP with SSE fallback, lazy connect, 401 -> needs_auth),
  JSON Schema -> AgentTool parameter conversion, in-memory tool registry
  with ranked search, the single 'mcp' proxy AgentTool (search /
  describe / list / call / connect / status / auth-start), per-server
  opt-in direct tools ({server}_{tool}), and McpService (CRUD,
  discovery, OAuth, per-agent assignment via AgentMcpServer, and
  permission gating on tool execution mirroring skills).
- Agent: chat agents receive the 'mcp' proxy tool (plus direct tools
  for opted-in servers) built from their assigned, enabled servers.
- API: /teams/:teamId/mcp/servers CRUD, tools refresh/list, auth
  start/complete/status/remove, test, permission, and the public
  OAuth callback route; Admin authz via new ResourceType.McpServer;
  audit logging.
- DTOs: zod schemas + types for servers, tools, auth, and per-agent
  mcpServerIds.
- Tests: DB store, schema conversion, registry/search, service
  integration against a real in-process MCP server (v2
  @modelcontextprotocol/server), permission gating, rename
  invalidation, direct tools, per-agent assignment, API route tests,
  and workflow E2E (local + temporal) for proxy and direct modes.

* fix(mcp): persist OAuth discovery snapshot and stamp SEP-2352 issuer

The callback leg of the OAuth flow failed with
AuthorizationServerMismatchError ('discoveryState was not available on
the callback leg') because McpDbStore.savePendingAuth overwrote the
entire pendingAuth JSON column, clobbering the discoverySnapshot that
the provider's saveDiscoveryState() had stored inside it.

- McpDbStore.savePendingAuth now preserves an in-flight discovery
  snapshot so the callback leg can satisfy the SEP-2352 authorization-
  server issuer check.
- McpOauthProvider now round-trips the issuer stamp derived from the
  discovery snapshot: saveClientInformation/saveTokens persist it,
  clientInformation()/tokens() return it, and tokens() backfills a
  missing stamp for pre-existing credentials (removes the
  'stored OAuth credential has no issuer stamp' warning).
- Regression tests: savePendingAuth keeps the snapshot; the provider
  stamps/round-trips the issuer on both legs.

* fix(mcp): backfill SEP-2352 issuer stamp on stale OAuth client info

clientInformation() returned stored client info without an issuer field
when it had been dynamically registered before the stamping fix, so the
SDK logged 'stored OAuth credential has no issuer stamp' on every read.
Now the stored branch backfills the issuer from the discovery snapshot
(persisting it) exactly like the tokens() backfill.

* feat(webui): add MCP server configuration and agent assignment UI (#290)

* feat(webui): add MCP server configuration and agent assignment UI

* fix(webui): auto-detect auth for unconfigured MCP servers and show connect button

* fix(mcp): auto-generate state in mcp-oauth-provider when missing in DB

* fix(mcp): persist OAuth discovery snapshot and stamp SEP-2352 issuer

The callback leg of the OAuth flow failed with
AuthorizationServerMismatchError ('discoveryState was not available on
the callback leg') because McpDbStore.savePendingAuth overwrote the
entire pendingAuth JSON column, clobbering the discoverySnapshot that
the provider's saveDiscoveryState() had stored inside it.

- McpDbStore.savePendingAuth now preserves an in-flight discovery
  snapshot so the callback leg can satisfy the SEP-2352 authorization-
  server issuer check.
- McpOauthProvider now round-trips the issuer stamp derived from the
  discovery snapshot: saveClientInformation/saveTokens persist it,
  clientInformation()/tokens() return it, and tokens() backfills a
  missing stamp for pre-existing credentials (removes the
  'stored OAuth credential has no issuer stamp' warning).
- Regression tests: savePendingAuth keeps the snapshot; the provider
  stamps/round-trips the issuer on both legs.

* fix(mcp): backfill SEP-2352 issuer stamp on stale OAuth client info

clientInformation() returned stored client info without an issuer field
when it had been dynamically registered before the stamping fix, so the
SDK logged 'stored OAuth credential has no issuer stamp' on every read.
Now the stored branch backfills the issuer from the discovery snapshot
(persisting it) exactly like the tokens() backfill.

* fix(mcp): attach McpOauthProvider for auto-detected OAuth servers and discover tools on auth completion

* fix(webui): fix flex min-h-0 and max-h scrolling on MCP tools dialog

* fix(webui): set explicit flex height on McpToolsDialog for active scrolling

* feat(webui): make MCP server cards clickable to edit and widen server config dialog

* feat(mcp): agent-level server enablement and auto-detected server metadata (#291)

* feat(mcp): agent-level server enablement and auto-detected server metadata

- Remove the server-level `enabled` column from mcp_servers; enable/disable
  now happens per-agent via the AgentMcpServer join table (mirrors skills).
- Drop the unique (teamId, name) constraint so duplicate server names are allowed.
- Add a `description` column, auto-filled from client.getServerVersion() on
  connect; the server name is auto-filled from the reported title (fallback name)
  with a URL-derived placeholder until first connect.
- Remove manual name input: the create dialog is URL-only, and the edit dialog
  shows the auto-detected name/description read-only.
- Replace the include/exclude raw-text inputs with the tool list in the edit
  dialog, managing only excludeTools; remove includeTools support and the
  separate McpToolsDialog component.
- Sanitize server-reported names into safe direct-tool prefixes (spaces/punctuation
  become underscores) and use the same sanitization in the proxy resolver.

* fix(mcp): give the edit-dialog tool list a definite height

The Shadcn ScrollArea viewport is h-full, which requires a definite height
on the root. Using max-h-64 left the viewport at auto height, so the root
clipped the list at 256px without engaging its own scrollbar — tools past
the cutoff were unreachable. Use a fixed h-64 container (same pattern as
move-copy-dialog) so the inner scroll area scrolls independently of the
dialog's outer scroll.

* refactor(mcp): fixed header/footer with scrollable content in server config dialog

Mirror the skill config dialog layout: the edit dialog now keeps the header
and footer fixed and scrolls only the content area (ScrollArea flex-1
min-h-0 inside an h-[85vh] flex column). The tools list no longer has its
own nested ScrollArea — it flows inside the content-level scroll, so all
tools are reachable without a nested-scroll conflict. The create dialog
stays compact (URL-only) like the skill add dialog.

Verified headlessly that max-height-based ScrollArea roots do not engage
scrolling (viewport height resolves to auto), which is why the previous
nested list clipped; the flex-based definite-height pattern scrolls.

* feat(mcp): make the endpoint URL immutable after creation

Editing a server's URL effectively points it at a different server, and the
create flow is URL-only anyway — so the edit dialog no longer allows changing
it (delete + re-add covers endpoint changes). The URL is displayed read-only
next to the auto-detected name/description, and `url` was removed from the
update DTO and service; auth/transport changes still invalidate credentials
and cached tools.

* refactor(mcp): match MCP server cards to the skill card layout

The settings list cards now share the skill card structure: row 1 is the
server name (with direct-mode/transport badges) plus the three-dot menu,
row 2 is the description (falling back to 'No description provided') with
the endpoint URL and last error as small mono lines, and row 3 holds the
connection-status badge and updated date on the left with the permission
selector and the connect button at the right end.

* fix(mcp): stop card menu clicks from opening the edit dialog

The three-dot menu is portaled, so its item clicks bubble through React's
synthetic events to the card's onClick, which opened the edit dialog before
the delete confirmation appeared. Add e.stopPropagation() to every menu
item (matching the skill card pattern).

* fix(mcp): stop Refresh Tools from submitting/closing the config dialog

The Refresh Tools button lived inside the <form> and, like all buttons
without an explicit type, defaulted to type="submit" — clicking it ran the
form submit (save + close) instead of just refreshing. Set type="button".

Also per UX: while refreshing, the button is disabled with a spinning icon,
the per-tool enable/disable switches are disabled, and the success toast is
removed — the button reverting to its idle state is the success signal
(keep the error toast for failures).

* test(mcp): provide explicit redirectUri in McpOauthProvider test helper

* fix(mcp): scope tool registry to agent-assigned servers

The MCP tool registry was a process-global singleton keyed by server id,
so a chat agent could search, describe, and even call tools belonging to
MCP servers that were not assigned to it (e.g. disabled or unassigned
servers), as long as their metadata had been discovered at some point in
the process. This mirrors the disabled-skill bug: the read path never
checked per-agent enablement.

Replace the singleton with a fresh McpToolRegistry built per
buildAgentTools call and warmed from the persisted McpServer.tools DB
cache. Because the registry only ever contains the agent's assigned
servers, unassigned/disabled servers can neither be suggested, searched,
described, nor executed. Live discovery (lazy connect / connect action)
writes into the per-agent registry via ensureConnected(serverId,
registry?).

Adds test-first coverage: suggestions, search, describe and tool-call
leaks across an unassigned same-team server, staleness after
unassignment, and direct-tools scoping.

* feat(mcp): capture and surface server instructions + server-level refresh (#293)

* feat(mcp): capture and surface server instructions

- Add McpServer.instructions column, populated from getInstructions() at
  connect time (legacy initialize + modern discover results)
- Surface instructions at three levels like pi-mcp-adapter: truncated
  snippet in the mcp proxy tool description, preview in server listings,
  and full text via mcp({ instructions: "name" })
- Fix misleading mcp({ server, connect }) usage line to mcp({ connect })
- Share one renderServerListing helper across list and connect modes
- Expose instructions in McpServerInfo DTO and WebUI config card
- Test server supports instructions; service + API tests updated

* refactor(mcp): server-level refresh endpoint, drop agent connect mode

- Replace POST /mcp/servers/:id/tools/refresh with POST /mcp/servers/:id/refresh
  returning the refreshed McpServerInfo (server-level, not tools-level)
- Add McpService.refreshServer(): force-close the connection, re-discover and
  persist tools, instructions, name/description and status; used by the refresh
  endpoint, Test Connection, and post-OAuth completion (replacing discoverTools)
- Remove discoverTools entirely - refreshServer is the single discovery entry
  point (testServer and completeAuth route through it)
- Remove refreshTools from UpdateMcpServerRequest/PATCH (dead param)
- Remove mcp({ connect: "name" }) from the agent proxy tool: lazy tool calls
  still auto-connect, so agents are unaffected
- WebUI: remove the dialog 'Refresh Tools' button and create-mode background
  auto-refresh; add a server-level Refresh button at the left end of the edit
  dialog footer; i18n mcp_refresh_server (+ success message)

* feat(mcp): add in-flight request tracking and idle connection cleanup (#294)

* feat(mcp): add in-flight request tracking and idle connection cleanup

* feat(mcp): add background idle cleanup timer to McpService

* feat(mcp): update default background idle cleanup check interval to 30s

* feat(webui): improve MCP server card footer, instructions, and refresh dialog freeze (#295)

* feat(webui): improve MCP server list card, instructions dialog, and refresh freeze UI

* feat(webui): refine MCP card action menu items

* docs(webui): update direct tools mode description in i18n messages

* style(webui): refine Direct Tools Mode layout in MCP server config dialog

* feat(webui): remove tool search box from MCP server config dialog

* fix(mcp): make in-flight idle tracking test deterministic

The 'tracks in-flight requests and safely prunes idle connections' test
relied on a wall-clock sleep (10ms) to guess when the tool handler had
started executing on the server. On slow/loaded CI runners the HTTP round
trip through the real MCP client/server stack can exceed that window, so
resolveSlowTool() fired the no-op placeholder, the gated handler never
completed, and callPromise hung until the 5000ms test timeout.

The handler now signals via a deferred promise when it actually starts,
and the test awaits that signal (racing it against the call promise to
surface early failures) before asserting in-flight state and releasing
the gate. Also gives the test an explicit 10s timeout.
2026-08-11 11:01:38 +08:00

2057 lines
82 KiB
TypeScript
Generated

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `McpServer` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as PJTG from '../pjtg';
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model McpServer
*
*/
export type McpServerModel = runtime.Types.Result.DefaultSelection<Prisma.$McpServerPayload>
export type AggregateMcpServer = {
_count: McpServerCountAggregateOutputType | null
_min: McpServerMinAggregateOutputType | null
_max: McpServerMaxAggregateOutputType | null
}
export type McpServerMinAggregateOutputType = {
id: string | null
name: string | null
description: string | null
instructions: string | null
url: string | null
transport: $Enums.McpTransport | null
permission: $Enums.TeamMemberRole | null
status: string | null
lastError: string | null
lastConnectedAt: Date | null
createdAt: Date | null
updatedAt: Date | null
teamId: string | null
}
export type McpServerMaxAggregateOutputType = {
id: string | null
name: string | null
description: string | null
instructions: string | null
url: string | null
transport: $Enums.McpTransport | null
permission: $Enums.TeamMemberRole | null
status: string | null
lastError: string | null
lastConnectedAt: Date | null
createdAt: Date | null
updatedAt: Date | null
teamId: string | null
}
export type McpServerCountAggregateOutputType = {
id: number
name: number
description: number
instructions: number
url: number
transport: number
authConfig:PrismaJson.McpServerAuthConfig
config:PrismaJson.McpServerConfig
permission: number
tools:PrismaJson.McpToolInfo[]
status: number
lastError: number
lastConnectedAt: number
createdAt: number
updatedAt: number
teamId: number
_all: number
}
export type McpServerMinAggregateInputType = {
id?: true
name?: true
description?: true
instructions?: true
url?: true
transport?: true
permission?: true
status?: true
lastError?: true
lastConnectedAt?: true
createdAt?: true
updatedAt?: true
teamId?: true
}
export type McpServerMaxAggregateInputType = {
id?: true
name?: true
description?: true
instructions?: true
url?: true
transport?: true
permission?: true
status?: true
lastError?: true
lastConnectedAt?: true
createdAt?: true
updatedAt?: true
teamId?: true
}
export type McpServerCountAggregateInputType = {
id?: true
name?: true
description?: true
instructions?: true
url?: true
transport?: true
authConfig?: true
config?: true
permission?: true
tools?: true
status?: true
lastError?: true
lastConnectedAt?: true
createdAt?: true
updatedAt?: true
teamId?: true
_all?: true
}
export type McpServerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which McpServer to aggregate.
*/
where?: Prisma.McpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServers to fetch.
*/
orderBy?: Prisma.McpServerOrderByWithRelationInput | Prisma.McpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.McpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServers from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` McpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned McpServers
**/
_count?: true | McpServerCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: McpServerMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: McpServerMaxAggregateInputType
}
export type GetMcpServerAggregateType<T extends McpServerAggregateArgs> = {
[P in keyof T & keyof AggregateMcpServer]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateMcpServer[P]>
: Prisma.GetScalarType<T[P], AggregateMcpServer[P]>
}
export type McpServerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.McpServerWhereInput
orderBy?: Prisma.McpServerOrderByWithAggregationInput | Prisma.McpServerOrderByWithAggregationInput[]
by: Prisma.McpServerScalarFieldEnum[] | Prisma.McpServerScalarFieldEnum
having?: Prisma.McpServerScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: McpServerCountAggregateInputType | true
_min?: McpServerMinAggregateInputType
_max?: McpServerMaxAggregateInputType
}
export type McpServerGroupByOutputType = {
id: string
name: string
description: string | null
instructions: string | null
url: string
transport: $Enums.McpTransport
authConfig:PrismaJson.McpServerAuthConfig | null
config:PrismaJson.McpServerConfig | null
permission: $Enums.TeamMemberRole
tools:PrismaJson.McpToolInfo[] | null
status: string
lastError: string | null
lastConnectedAt: Date | null
createdAt: Date
updatedAt: Date
teamId: string
_count: McpServerCountAggregateOutputType | null
_min: McpServerMinAggregateOutputType | null
_max: McpServerMaxAggregateOutputType | null
}
export type GetMcpServerGroupByPayload<T extends McpServerGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<McpServerGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof McpServerGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], McpServerGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], McpServerGroupByOutputType[P]>
}
>
>
export type McpServerWhereInput = {
AND?: Prisma.McpServerWhereInput | Prisma.McpServerWhereInput[]
OR?: Prisma.McpServerWhereInput[]
NOT?: Prisma.McpServerWhereInput | Prisma.McpServerWhereInput[]
id?: Prisma.StringFilter<"McpServer"> | string
name?: Prisma.StringFilter<"McpServer"> | string
description?: Prisma.StringNullableFilter<"McpServer"> | string | null
instructions?: Prisma.StringNullableFilter<"McpServer"> | string | null
url?: Prisma.StringFilter<"McpServer"> | string
transport?: Prisma.EnumMcpTransportFilter<"McpServer"> | $Enums.McpTransport
authConfig?: Prisma.JsonNullableFilter<"McpServer">
config?: Prisma.JsonNullableFilter<"McpServer">
permission?: Prisma.EnumTeamMemberRoleFilter<"McpServer"> | $Enums.TeamMemberRole
tools?: Prisma.JsonNullableFilter<"McpServer">
status?: Prisma.StringFilter<"McpServer"> | string
lastError?: Prisma.StringNullableFilter<"McpServer"> | string | null
lastConnectedAt?: Prisma.DateTimeNullableFilter<"McpServer"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
teamId?: Prisma.StringFilter<"McpServer"> | string
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
credential?: Prisma.XOR<Prisma.McpServerCredentialNullableScalarRelationFilter, Prisma.McpServerCredentialWhereInput> | null
agentMcpServers?: Prisma.AgentMcpServerListRelationFilter
}
export type McpServerOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
instructions?: Prisma.SortOrderInput | Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
authConfig?: Prisma.SortOrderInput | Prisma.SortOrder
config?: Prisma.SortOrderInput | Prisma.SortOrder
permission?: Prisma.SortOrder
tools?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrderInput | Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
team?: Prisma.TeamOrderByWithRelationInput
credential?: Prisma.McpServerCredentialOrderByWithRelationInput
agentMcpServers?: Prisma.AgentMcpServerOrderByRelationAggregateInput
}
export type McpServerWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.McpServerWhereInput | Prisma.McpServerWhereInput[]
OR?: Prisma.McpServerWhereInput[]
NOT?: Prisma.McpServerWhereInput | Prisma.McpServerWhereInput[]
name?: Prisma.StringFilter<"McpServer"> | string
description?: Prisma.StringNullableFilter<"McpServer"> | string | null
instructions?: Prisma.StringNullableFilter<"McpServer"> | string | null
url?: Prisma.StringFilter<"McpServer"> | string
transport?: Prisma.EnumMcpTransportFilter<"McpServer"> | $Enums.McpTransport
authConfig?: Prisma.JsonNullableFilter<"McpServer">
config?: Prisma.JsonNullableFilter<"McpServer">
permission?: Prisma.EnumTeamMemberRoleFilter<"McpServer"> | $Enums.TeamMemberRole
tools?: Prisma.JsonNullableFilter<"McpServer">
status?: Prisma.StringFilter<"McpServer"> | string
lastError?: Prisma.StringNullableFilter<"McpServer"> | string | null
lastConnectedAt?: Prisma.DateTimeNullableFilter<"McpServer"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
teamId?: Prisma.StringFilter<"McpServer"> | string
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
credential?: Prisma.XOR<Prisma.McpServerCredentialNullableScalarRelationFilter, Prisma.McpServerCredentialWhereInput> | null
agentMcpServers?: Prisma.AgentMcpServerListRelationFilter
}, "id">
export type McpServerOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
instructions?: Prisma.SortOrderInput | Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
authConfig?: Prisma.SortOrderInput | Prisma.SortOrder
config?: Prisma.SortOrderInput | Prisma.SortOrder
permission?: Prisma.SortOrder
tools?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrderInput | Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
_count?: Prisma.McpServerCountOrderByAggregateInput
_max?: Prisma.McpServerMaxOrderByAggregateInput
_min?: Prisma.McpServerMinOrderByAggregateInput
}
export type McpServerScalarWhereWithAggregatesInput = {
AND?: Prisma.McpServerScalarWhereWithAggregatesInput | Prisma.McpServerScalarWhereWithAggregatesInput[]
OR?: Prisma.McpServerScalarWhereWithAggregatesInput[]
NOT?: Prisma.McpServerScalarWhereWithAggregatesInput | Prisma.McpServerScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
name?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"McpServer"> | string | null
instructions?: Prisma.StringNullableWithAggregatesFilter<"McpServer"> | string | null
url?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
transport?: Prisma.EnumMcpTransportWithAggregatesFilter<"McpServer"> | $Enums.McpTransport
authConfig?: Prisma.JsonNullableWithAggregatesFilter<"McpServer">
config?: Prisma.JsonNullableWithAggregatesFilter<"McpServer">
permission?: Prisma.EnumTeamMemberRoleWithAggregatesFilter<"McpServer"> | $Enums.TeamMemberRole
tools?: Prisma.JsonNullableWithAggregatesFilter<"McpServer">
status?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
lastError?: Prisma.StringNullableWithAggregatesFilter<"McpServer"> | string | null
lastConnectedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"McpServer"> | Date | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"McpServer"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"McpServer"> | Date | string
teamId?: Prisma.StringWithAggregatesFilter<"McpServer"> | string
}
export type McpServerCreateInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
team: Prisma.TeamCreateNestedOneWithoutMcpServersInput
credential?: Prisma.McpServerCredentialCreateNestedOneWithoutServerInput
agentMcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutMcpServerInput
}
export type McpServerUncheckedCreateInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
teamId: string
credential?: Prisma.McpServerCredentialUncheckedCreateNestedOneWithoutServerInput
agentMcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutMcpServerInput
}
export type McpServerUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
team?: Prisma.TeamUpdateOneRequiredWithoutMcpServersNestedInput
credential?: Prisma.McpServerCredentialUpdateOneWithoutServerNestedInput
agentMcpServers?: Prisma.AgentMcpServerUpdateManyWithoutMcpServerNestedInput
}
export type McpServerUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
teamId?: Prisma.StringFieldUpdateOperationsInput | string
credential?: Prisma.McpServerCredentialUncheckedUpdateOneWithoutServerNestedInput
agentMcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutMcpServerNestedInput
}
export type McpServerCreateManyInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
teamId: string
}
export type McpServerUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type McpServerUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
teamId?: Prisma.StringFieldUpdateOperationsInput | string
}
export type McpServerListRelationFilter = {
every?: Prisma.McpServerWhereInput
some?: Prisma.McpServerWhereInput
none?: Prisma.McpServerWhereInput
}
export type McpServerOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type McpServerCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
instructions?: Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
authConfig?: Prisma.SortOrder
config?: Prisma.SortOrder
permission?: Prisma.SortOrder
tools?: Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
}
export type McpServerMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
instructions?: Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
permission?: Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
}
export type McpServerMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
instructions?: Prisma.SortOrder
url?: Prisma.SortOrder
transport?: Prisma.SortOrder
permission?: Prisma.SortOrder
status?: Prisma.SortOrder
lastError?: Prisma.SortOrder
lastConnectedAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
teamId?: Prisma.SortOrder
}
export type McpServerScalarRelationFilter = {
is?: Prisma.McpServerWhereInput
isNot?: Prisma.McpServerWhereInput
}
export type McpServerCreateNestedManyWithoutTeamInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput> | Prisma.McpServerCreateWithoutTeamInput[] | Prisma.McpServerUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutTeamInput | Prisma.McpServerCreateOrConnectWithoutTeamInput[]
createMany?: Prisma.McpServerCreateManyTeamInputEnvelope
connect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
}
export type McpServerUncheckedCreateNestedManyWithoutTeamInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput> | Prisma.McpServerCreateWithoutTeamInput[] | Prisma.McpServerUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutTeamInput | Prisma.McpServerCreateOrConnectWithoutTeamInput[]
createMany?: Prisma.McpServerCreateManyTeamInputEnvelope
connect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
}
export type McpServerUpdateManyWithoutTeamNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput> | Prisma.McpServerCreateWithoutTeamInput[] | Prisma.McpServerUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutTeamInput | Prisma.McpServerCreateOrConnectWithoutTeamInput[]
upsert?: Prisma.McpServerUpsertWithWhereUniqueWithoutTeamInput | Prisma.McpServerUpsertWithWhereUniqueWithoutTeamInput[]
createMany?: Prisma.McpServerCreateManyTeamInputEnvelope
set?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
disconnect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
delete?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
connect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
update?: Prisma.McpServerUpdateWithWhereUniqueWithoutTeamInput | Prisma.McpServerUpdateWithWhereUniqueWithoutTeamInput[]
updateMany?: Prisma.McpServerUpdateManyWithWhereWithoutTeamInput | Prisma.McpServerUpdateManyWithWhereWithoutTeamInput[]
deleteMany?: Prisma.McpServerScalarWhereInput | Prisma.McpServerScalarWhereInput[]
}
export type McpServerUncheckedUpdateManyWithoutTeamNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput> | Prisma.McpServerCreateWithoutTeamInput[] | Prisma.McpServerUncheckedCreateWithoutTeamInput[]
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutTeamInput | Prisma.McpServerCreateOrConnectWithoutTeamInput[]
upsert?: Prisma.McpServerUpsertWithWhereUniqueWithoutTeamInput | Prisma.McpServerUpsertWithWhereUniqueWithoutTeamInput[]
createMany?: Prisma.McpServerCreateManyTeamInputEnvelope
set?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
disconnect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
delete?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
connect?: Prisma.McpServerWhereUniqueInput | Prisma.McpServerWhereUniqueInput[]
update?: Prisma.McpServerUpdateWithWhereUniqueWithoutTeamInput | Prisma.McpServerUpdateWithWhereUniqueWithoutTeamInput[]
updateMany?: Prisma.McpServerUpdateManyWithWhereWithoutTeamInput | Prisma.McpServerUpdateManyWithWhereWithoutTeamInput[]
deleteMany?: Prisma.McpServerScalarWhereInput | Prisma.McpServerScalarWhereInput[]
}
export type EnumMcpTransportFieldUpdateOperationsInput = {
set?: $Enums.McpTransport
}
export type McpServerCreateNestedOneWithoutAgentMcpServersInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedCreateWithoutAgentMcpServersInput>
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutAgentMcpServersInput
connect?: Prisma.McpServerWhereUniqueInput
}
export type McpServerUpdateOneRequiredWithoutAgentMcpServersNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedCreateWithoutAgentMcpServersInput>
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutAgentMcpServersInput
upsert?: Prisma.McpServerUpsertWithoutAgentMcpServersInput
connect?: Prisma.McpServerWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.McpServerUpdateToOneWithWhereWithoutAgentMcpServersInput, Prisma.McpServerUpdateWithoutAgentMcpServersInput>, Prisma.McpServerUncheckedUpdateWithoutAgentMcpServersInput>
}
export type McpServerCreateNestedOneWithoutCredentialInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutCredentialInput, Prisma.McpServerUncheckedCreateWithoutCredentialInput>
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutCredentialInput
connect?: Prisma.McpServerWhereUniqueInput
}
export type McpServerUpdateOneRequiredWithoutCredentialNestedInput = {
create?: Prisma.XOR<Prisma.McpServerCreateWithoutCredentialInput, Prisma.McpServerUncheckedCreateWithoutCredentialInput>
connectOrCreate?: Prisma.McpServerCreateOrConnectWithoutCredentialInput
upsert?: Prisma.McpServerUpsertWithoutCredentialInput
connect?: Prisma.McpServerWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.McpServerUpdateToOneWithWhereWithoutCredentialInput, Prisma.McpServerUpdateWithoutCredentialInput>, Prisma.McpServerUncheckedUpdateWithoutCredentialInput>
}
export type McpServerCreateWithoutTeamInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
credential?: Prisma.McpServerCredentialCreateNestedOneWithoutServerInput
agentMcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutMcpServerInput
}
export type McpServerUncheckedCreateWithoutTeamInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
credential?: Prisma.McpServerCredentialUncheckedCreateNestedOneWithoutServerInput
agentMcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutMcpServerInput
}
export type McpServerCreateOrConnectWithoutTeamInput = {
where: Prisma.McpServerWhereUniqueInput
create: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput>
}
export type McpServerCreateManyTeamInputEnvelope = {
data: Prisma.McpServerCreateManyTeamInput | Prisma.McpServerCreateManyTeamInput[]
skipDuplicates?: boolean
}
export type McpServerUpsertWithWhereUniqueWithoutTeamInput = {
where: Prisma.McpServerWhereUniqueInput
update: Prisma.XOR<Prisma.McpServerUpdateWithoutTeamInput, Prisma.McpServerUncheckedUpdateWithoutTeamInput>
create: Prisma.XOR<Prisma.McpServerCreateWithoutTeamInput, Prisma.McpServerUncheckedCreateWithoutTeamInput>
}
export type McpServerUpdateWithWhereUniqueWithoutTeamInput = {
where: Prisma.McpServerWhereUniqueInput
data: Prisma.XOR<Prisma.McpServerUpdateWithoutTeamInput, Prisma.McpServerUncheckedUpdateWithoutTeamInput>
}
export type McpServerUpdateManyWithWhereWithoutTeamInput = {
where: Prisma.McpServerScalarWhereInput
data: Prisma.XOR<Prisma.McpServerUpdateManyMutationInput, Prisma.McpServerUncheckedUpdateManyWithoutTeamInput>
}
export type McpServerScalarWhereInput = {
AND?: Prisma.McpServerScalarWhereInput | Prisma.McpServerScalarWhereInput[]
OR?: Prisma.McpServerScalarWhereInput[]
NOT?: Prisma.McpServerScalarWhereInput | Prisma.McpServerScalarWhereInput[]
id?: Prisma.StringFilter<"McpServer"> | string
name?: Prisma.StringFilter<"McpServer"> | string
description?: Prisma.StringNullableFilter<"McpServer"> | string | null
instructions?: Prisma.StringNullableFilter<"McpServer"> | string | null
url?: Prisma.StringFilter<"McpServer"> | string
transport?: Prisma.EnumMcpTransportFilter<"McpServer"> | $Enums.McpTransport
authConfig?: Prisma.JsonNullableFilter<"McpServer">
config?: Prisma.JsonNullableFilter<"McpServer">
permission?: Prisma.EnumTeamMemberRoleFilter<"McpServer"> | $Enums.TeamMemberRole
tools?: Prisma.JsonNullableFilter<"McpServer">
status?: Prisma.StringFilter<"McpServer"> | string
lastError?: Prisma.StringNullableFilter<"McpServer"> | string | null
lastConnectedAt?: Prisma.DateTimeNullableFilter<"McpServer"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"McpServer"> | Date | string
teamId?: Prisma.StringFilter<"McpServer"> | string
}
export type McpServerCreateWithoutAgentMcpServersInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
team: Prisma.TeamCreateNestedOneWithoutMcpServersInput
credential?: Prisma.McpServerCredentialCreateNestedOneWithoutServerInput
}
export type McpServerUncheckedCreateWithoutAgentMcpServersInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
teamId: string
credential?: Prisma.McpServerCredentialUncheckedCreateNestedOneWithoutServerInput
}
export type McpServerCreateOrConnectWithoutAgentMcpServersInput = {
where: Prisma.McpServerWhereUniqueInput
create: Prisma.XOR<Prisma.McpServerCreateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedCreateWithoutAgentMcpServersInput>
}
export type McpServerUpsertWithoutAgentMcpServersInput = {
update: Prisma.XOR<Prisma.McpServerUpdateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedUpdateWithoutAgentMcpServersInput>
create: Prisma.XOR<Prisma.McpServerCreateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedCreateWithoutAgentMcpServersInput>
where?: Prisma.McpServerWhereInput
}
export type McpServerUpdateToOneWithWhereWithoutAgentMcpServersInput = {
where?: Prisma.McpServerWhereInput
data: Prisma.XOR<Prisma.McpServerUpdateWithoutAgentMcpServersInput, Prisma.McpServerUncheckedUpdateWithoutAgentMcpServersInput>
}
export type McpServerUpdateWithoutAgentMcpServersInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
team?: Prisma.TeamUpdateOneRequiredWithoutMcpServersNestedInput
credential?: Prisma.McpServerCredentialUpdateOneWithoutServerNestedInput
}
export type McpServerUncheckedUpdateWithoutAgentMcpServersInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
teamId?: Prisma.StringFieldUpdateOperationsInput | string
credential?: Prisma.McpServerCredentialUncheckedUpdateOneWithoutServerNestedInput
}
export type McpServerCreateWithoutCredentialInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
team: Prisma.TeamCreateNestedOneWithoutMcpServersInput
agentMcpServers?: Prisma.AgentMcpServerCreateNestedManyWithoutMcpServerInput
}
export type McpServerUncheckedCreateWithoutCredentialInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
teamId: string
agentMcpServers?: Prisma.AgentMcpServerUncheckedCreateNestedManyWithoutMcpServerInput
}
export type McpServerCreateOrConnectWithoutCredentialInput = {
where: Prisma.McpServerWhereUniqueInput
create: Prisma.XOR<Prisma.McpServerCreateWithoutCredentialInput, Prisma.McpServerUncheckedCreateWithoutCredentialInput>
}
export type McpServerUpsertWithoutCredentialInput = {
update: Prisma.XOR<Prisma.McpServerUpdateWithoutCredentialInput, Prisma.McpServerUncheckedUpdateWithoutCredentialInput>
create: Prisma.XOR<Prisma.McpServerCreateWithoutCredentialInput, Prisma.McpServerUncheckedCreateWithoutCredentialInput>
where?: Prisma.McpServerWhereInput
}
export type McpServerUpdateToOneWithWhereWithoutCredentialInput = {
where?: Prisma.McpServerWhereInput
data: Prisma.XOR<Prisma.McpServerUpdateWithoutCredentialInput, Prisma.McpServerUncheckedUpdateWithoutCredentialInput>
}
export type McpServerUpdateWithoutCredentialInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
team?: Prisma.TeamUpdateOneRequiredWithoutMcpServersNestedInput
agentMcpServers?: Prisma.AgentMcpServerUpdateManyWithoutMcpServerNestedInput
}
export type McpServerUncheckedUpdateWithoutCredentialInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
teamId?: Prisma.StringFieldUpdateOperationsInput | string
agentMcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutMcpServerNestedInput
}
export type McpServerCreateManyTeamInput = {
id?: string
name: string
description?: string | null
instructions?: string | null
url: string
transport?: $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: string
lastError?: string | null
lastConnectedAt?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type McpServerUpdateWithoutTeamInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
credential?: Prisma.McpServerCredentialUpdateOneWithoutServerNestedInput
agentMcpServers?: Prisma.AgentMcpServerUpdateManyWithoutMcpServerNestedInput
}
export type McpServerUncheckedUpdateWithoutTeamInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
credential?: Prisma.McpServerCredentialUncheckedUpdateOneWithoutServerNestedInput
agentMcpServers?: Prisma.AgentMcpServerUncheckedUpdateManyWithoutMcpServerNestedInput
}
export type McpServerUncheckedUpdateManyWithoutTeamInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
instructions?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
url?: Prisma.StringFieldUpdateOperationsInput | string
transport?: Prisma.EnumMcpTransportFieldUpdateOperationsInput | $Enums.McpTransport
authConfig?:PrismaJson.McpServerAuthConfig | Prisma.NullableJsonNullValueInput
config?:PrismaJson.McpServerConfig | Prisma.NullableJsonNullValueInput
permission?: Prisma.EnumTeamMemberRoleFieldUpdateOperationsInput | $Enums.TeamMemberRole
tools?:PrismaJson.McpToolInfo[] | Prisma.NullableJsonNullValueInput
status?: Prisma.StringFieldUpdateOperationsInput | string
lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastConnectedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Count Type McpServerCountOutputType
*/
export type McpServerCountOutputType = {
agentMcpServers: number
}
export type McpServerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
agentMcpServers?: boolean | McpServerCountOutputTypeCountAgentMcpServersArgs
}
/**
* McpServerCountOutputType without action
*/
export type McpServerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCountOutputType
*/
select?: Prisma.McpServerCountOutputTypeSelect<ExtArgs> | null
}
/**
* McpServerCountOutputType without action
*/
export type McpServerCountOutputTypeCountAgentMcpServersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AgentMcpServerWhereInput
}
export type McpServerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
instructions?: boolean
url?: boolean
transport?: boolean
authConfig?: boolean
config?: boolean
permission?: boolean
tools?: boolean
status?: boolean
lastError?: boolean
lastConnectedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
teamId?: boolean
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
credential?: boolean | Prisma.McpServer$credentialArgs<ExtArgs>
agentMcpServers?: boolean | Prisma.McpServer$agentMcpServersArgs<ExtArgs>
_count?: boolean | Prisma.McpServerCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServer"]>
export type McpServerSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
instructions?: boolean
url?: boolean
transport?: boolean
authConfig?: boolean
config?: boolean
permission?: boolean
tools?: boolean
status?: boolean
lastError?: boolean
lastConnectedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
teamId?: boolean
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServer"]>
export type McpServerSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
description?: boolean
instructions?: boolean
url?: boolean
transport?: boolean
authConfig?: boolean
config?: boolean
permission?: boolean
tools?: boolean
status?: boolean
lastError?: boolean
lastConnectedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
teamId?: boolean
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}, ExtArgs["result"]["mcpServer"]>
export type McpServerSelectScalar = {
id?: boolean
name?: boolean
description?: boolean
instructions?: boolean
url?: boolean
transport?: boolean
authConfig?: boolean
config?: boolean
permission?: boolean
tools?: boolean
status?: boolean
lastError?: boolean
lastConnectedAt?: boolean
createdAt?: boolean
updatedAt?: boolean
teamId?: boolean
}
export type McpServerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "instructions" | "url" | "transport" | "authConfig" | "config" | "permission" | "tools" | "status" | "lastError" | "lastConnectedAt" | "createdAt" | "updatedAt" | "teamId", ExtArgs["result"]["mcpServer"]>
export type McpServerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
credential?: boolean | Prisma.McpServer$credentialArgs<ExtArgs>
agentMcpServers?: boolean | Prisma.McpServer$agentMcpServersArgs<ExtArgs>
_count?: boolean | Prisma.McpServerCountOutputTypeDefaultArgs<ExtArgs>
}
export type McpServerIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}
export type McpServerIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
}
export type $McpServerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "McpServer"
objects: {
team: Prisma.$TeamPayload<ExtArgs>
credential: Prisma.$McpServerCredentialPayload<ExtArgs> | null
agentMcpServers: Prisma.$AgentMcpServerPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
name: string
description: string | null
instructions: string | null
url: string
transport: $Enums.McpTransport
/**
* [McpServerAuthConfig]
*/
authConfig:PrismaJson.McpServerAuthConfig | null
/**
* [McpServerConfig]
*/
config:PrismaJson.McpServerConfig | null
permission: $Enums.TeamMemberRole
/**
* [McpToolInfo[]]
*/
tools:PrismaJson.McpToolInfo[] | null
status: string
lastError: string | null
lastConnectedAt: Date | null
createdAt: Date
updatedAt: Date
teamId: string
}, ExtArgs["result"]["mcpServer"]>
composites: {}
}
export type McpServerGetPayload<S extends boolean | null | undefined | McpServerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$McpServerPayload, S>
export type McpServerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<McpServerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: McpServerCountAggregateInputType | true
}
export interface McpServerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['McpServer'], meta: { name: 'McpServer' } }
/**
* Find zero or one McpServer that matches the filter.
* @param {McpServerFindUniqueArgs} args - Arguments to find a McpServer
* @example
* // Get one McpServer
* const mcpServer = await prisma.mcpServer.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends McpServerFindUniqueArgs>(args: Prisma.SelectSubset<T, McpServerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one McpServer that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {McpServerFindUniqueOrThrowArgs} args - Arguments to find a McpServer
* @example
* // Get one McpServer
* const mcpServer = await prisma.mcpServer.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends McpServerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, McpServerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first McpServer that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerFindFirstArgs} args - Arguments to find a McpServer
* @example
* // Get one McpServer
* const mcpServer = await prisma.mcpServer.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends McpServerFindFirstArgs>(args?: Prisma.SelectSubset<T, McpServerFindFirstArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first McpServer that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerFindFirstOrThrowArgs} args - Arguments to find a McpServer
* @example
* // Get one McpServer
* const mcpServer = await prisma.mcpServer.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends McpServerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, McpServerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more McpServers that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all McpServers
* const mcpServers = await prisma.mcpServer.findMany()
*
* // Get first 10 McpServers
* const mcpServers = await prisma.mcpServer.findMany({ take: 10 })
*
* // Only select the `id`
* const mcpServerWithIdOnly = await prisma.mcpServer.findMany({ select: { id: true } })
*
*/
findMany<T extends McpServerFindManyArgs>(args?: Prisma.SelectSubset<T, McpServerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a McpServer.
* @param {McpServerCreateArgs} args - Arguments to create a McpServer.
* @example
* // Create one McpServer
* const McpServer = await prisma.mcpServer.create({
* data: {
* // ... data to create a McpServer
* }
* })
*
*/
create<T extends McpServerCreateArgs>(args: Prisma.SelectSubset<T, McpServerCreateArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many McpServers.
* @param {McpServerCreateManyArgs} args - Arguments to create many McpServers.
* @example
* // Create many McpServers
* const mcpServer = await prisma.mcpServer.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends McpServerCreateManyArgs>(args?: Prisma.SelectSubset<T, McpServerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many McpServers and returns the data saved in the database.
* @param {McpServerCreateManyAndReturnArgs} args - Arguments to create many McpServers.
* @example
* // Create many McpServers
* const mcpServer = await prisma.mcpServer.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many McpServers and only return the `id`
* const mcpServerWithIdOnly = await prisma.mcpServer.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends McpServerCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, McpServerCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a McpServer.
* @param {McpServerDeleteArgs} args - Arguments to delete one McpServer.
* @example
* // Delete one McpServer
* const McpServer = await prisma.mcpServer.delete({
* where: {
* // ... filter to delete one McpServer
* }
* })
*
*/
delete<T extends McpServerDeleteArgs>(args: Prisma.SelectSubset<T, McpServerDeleteArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one McpServer.
* @param {McpServerUpdateArgs} args - Arguments to update one McpServer.
* @example
* // Update one McpServer
* const mcpServer = await prisma.mcpServer.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends McpServerUpdateArgs>(args: Prisma.SelectSubset<T, McpServerUpdateArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more McpServers.
* @param {McpServerDeleteManyArgs} args - Arguments to filter McpServers to delete.
* @example
* // Delete a few McpServers
* const { count } = await prisma.mcpServer.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends McpServerDeleteManyArgs>(args?: Prisma.SelectSubset<T, McpServerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more McpServers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many McpServers
* const mcpServer = await prisma.mcpServer.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends McpServerUpdateManyArgs>(args: Prisma.SelectSubset<T, McpServerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more McpServers and returns the data updated in the database.
* @param {McpServerUpdateManyAndReturnArgs} args - Arguments to update many McpServers.
* @example
* // Update many McpServers
* const mcpServer = await prisma.mcpServer.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more McpServers and only return the `id`
* const mcpServerWithIdOnly = await prisma.mcpServer.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends McpServerUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, McpServerUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one McpServer.
* @param {McpServerUpsertArgs} args - Arguments to update or create a McpServer.
* @example
* // Update or create a McpServer
* const mcpServer = await prisma.mcpServer.upsert({
* create: {
* // ... data to create a McpServer
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the McpServer we want to update
* }
* })
*/
upsert<T extends McpServerUpsertArgs>(args: Prisma.SelectSubset<T, McpServerUpsertArgs<ExtArgs>>): Prisma.Prisma__McpServerClient<runtime.Types.Result.GetResult<Prisma.$McpServerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of McpServers.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerCountArgs} args - Arguments to filter McpServers to count.
* @example
* // Count the number of McpServers
* const count = await prisma.mcpServer.count({
* where: {
* // ... the filter for the McpServers we want to count
* }
* })
**/
count<T extends McpServerCountArgs>(
args?: Prisma.Subset<T, McpServerCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], McpServerCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a McpServer.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends McpServerAggregateArgs>(args: Prisma.Subset<T, McpServerAggregateArgs>): Prisma.PrismaPromise<GetMcpServerAggregateType<T>>
/**
* Group by McpServer.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {McpServerGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends McpServerGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: McpServerGroupByArgs['orderBy'] }
: { orderBy?: McpServerGroupByArgs['orderBy'] },
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
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[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
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, McpServerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMcpServerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the McpServer model
*/
readonly fields: McpServerFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for McpServer.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__McpServerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
team<T extends Prisma.TeamDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
credential<T extends Prisma.McpServer$credentialArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpServer$credentialArgs<ExtArgs>>): Prisma.Prisma__McpServerCredentialClient<runtime.Types.Result.GetResult<Prisma.$McpServerCredentialPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
agentMcpServers<T extends Prisma.McpServer$agentMcpServersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.McpServer$agentMcpServersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMcpServerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
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>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the McpServer model
*/
export interface McpServerFieldRefs {
readonly id: Prisma.FieldRef<"McpServer", 'String'>
readonly name: Prisma.FieldRef<"McpServer", 'String'>
readonly description: Prisma.FieldRef<"McpServer", 'String'>
readonly instructions: Prisma.FieldRef<"McpServer", 'String'>
readonly url: Prisma.FieldRef<"McpServer", 'String'>
readonly transport: Prisma.FieldRef<"McpServer", 'McpTransport'>
readonly authConfig: Prisma.FieldRef<"McpServer", 'Json'>
readonly config: Prisma.FieldRef<"McpServer", 'Json'>
readonly permission: Prisma.FieldRef<"McpServer", 'TeamMemberRole'>
readonly tools: Prisma.FieldRef<"McpServer", 'Json'>
readonly status: Prisma.FieldRef<"McpServer", 'String'>
readonly lastError: Prisma.FieldRef<"McpServer", 'String'>
readonly lastConnectedAt: Prisma.FieldRef<"McpServer", 'DateTime'>
readonly createdAt: Prisma.FieldRef<"McpServer", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"McpServer", 'DateTime'>
readonly teamId: Prisma.FieldRef<"McpServer", 'String'>
}
// Custom InputTypes
/**
* McpServer findUnique
*/
export type McpServerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServer to fetch.
*/
where: Prisma.McpServerWhereUniqueInput
}
/**
* McpServer findUniqueOrThrow
*/
export type McpServerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServer to fetch.
*/
where: Prisma.McpServerWhereUniqueInput
}
/**
* McpServer findFirst
*/
export type McpServerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServer to fetch.
*/
where?: Prisma.McpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServers to fetch.
*/
orderBy?: Prisma.McpServerOrderByWithRelationInput | Prisma.McpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for McpServers.
*/
cursor?: Prisma.McpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServers from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` McpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServers.
*/
distinct?: Prisma.McpServerScalarFieldEnum | Prisma.McpServerScalarFieldEnum[]
}
/**
* McpServer findFirstOrThrow
*/
export type McpServerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServer to fetch.
*/
where?: Prisma.McpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServers to fetch.
*/
orderBy?: Prisma.McpServerOrderByWithRelationInput | Prisma.McpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for McpServers.
*/
cursor?: Prisma.McpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServers from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` McpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServers.
*/
distinct?: Prisma.McpServerScalarFieldEnum | Prisma.McpServerScalarFieldEnum[]
}
/**
* McpServer findMany
*/
export type McpServerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter, which McpServers to fetch.
*/
where?: Prisma.McpServerWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of McpServers to fetch.
*/
orderBy?: Prisma.McpServerOrderByWithRelationInput | Prisma.McpServerOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing McpServers.
*/
cursor?: Prisma.McpServerWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` McpServers from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` McpServers.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of McpServers.
*/
distinct?: Prisma.McpServerScalarFieldEnum | Prisma.McpServerScalarFieldEnum[]
}
/**
* McpServer create
*/
export type McpServerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* The data needed to create a McpServer.
*/
data: Prisma.XOR<Prisma.McpServerCreateInput, Prisma.McpServerUncheckedCreateInput>
}
/**
* McpServer createMany
*/
export type McpServerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many McpServers.
*/
data: Prisma.McpServerCreateManyInput | Prisma.McpServerCreateManyInput[]
skipDuplicates?: boolean
}
/**
* McpServer createManyAndReturn
*/
export type McpServerCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* The data used to create many McpServers.
*/
data: Prisma.McpServerCreateManyInput | Prisma.McpServerCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* McpServer update
*/
export type McpServerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* The data needed to update a McpServer.
*/
data: Prisma.XOR<Prisma.McpServerUpdateInput, Prisma.McpServerUncheckedUpdateInput>
/**
* Choose, which McpServer to update.
*/
where: Prisma.McpServerWhereUniqueInput
}
/**
* McpServer updateMany
*/
export type McpServerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update McpServers.
*/
data: Prisma.XOR<Prisma.McpServerUpdateManyMutationInput, Prisma.McpServerUncheckedUpdateManyInput>
/**
* Filter which McpServers to update
*/
where?: Prisma.McpServerWhereInput
/**
* Limit how many McpServers to update.
*/
limit?: number
}
/**
* McpServer updateManyAndReturn
*/
export type McpServerUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* The data used to update McpServers.
*/
data: Prisma.XOR<Prisma.McpServerUpdateManyMutationInput, Prisma.McpServerUncheckedUpdateManyInput>
/**
* Filter which McpServers to update
*/
where?: Prisma.McpServerWhereInput
/**
* Limit how many McpServers to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* McpServer upsert
*/
export type McpServerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* The filter to search for the McpServer to update in case it exists.
*/
where: Prisma.McpServerWhereUniqueInput
/**
* In case the McpServer found by the `where` argument doesn't exist, create a new McpServer with this data.
*/
create: Prisma.XOR<Prisma.McpServerCreateInput, Prisma.McpServerUncheckedCreateInput>
/**
* In case the McpServer was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.McpServerUpdateInput, Prisma.McpServerUncheckedUpdateInput>
}
/**
* McpServer delete
*/
export type McpServerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
/**
* Filter which McpServer to delete.
*/
where: Prisma.McpServerWhereUniqueInput
}
/**
* McpServer deleteMany
*/
export type McpServerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which McpServers to delete
*/
where?: Prisma.McpServerWhereInput
/**
* Limit how many McpServers to delete.
*/
limit?: number
}
/**
* McpServer.credential
*/
export type McpServer$credentialArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServerCredential
*/
select?: Prisma.McpServerCredentialSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServerCredential
*/
omit?: Prisma.McpServerCredentialOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerCredentialInclude<ExtArgs> | null
where?: Prisma.McpServerCredentialWhereInput
}
/**
* McpServer.agentMcpServers
*/
export type McpServer$agentMcpServersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AgentMcpServer
*/
select?: Prisma.AgentMcpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the AgentMcpServer
*/
omit?: Prisma.AgentMcpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AgentMcpServerInclude<ExtArgs> | null
where?: Prisma.AgentMcpServerWhereInput
orderBy?: Prisma.AgentMcpServerOrderByWithRelationInput | Prisma.AgentMcpServerOrderByWithRelationInput[]
cursor?: Prisma.AgentMcpServerWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.AgentMcpServerScalarFieldEnum | Prisma.AgentMcpServerScalarFieldEnum[]
}
/**
* McpServer without action
*/
export type McpServerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the McpServer
*/
select?: Prisma.McpServerSelect<ExtArgs> | null
/**
* Omit specific fields from the McpServer
*/
omit?: Prisma.McpServerOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.McpServerInclude<ExtArgs> | null
}