Skip to content

Documentation / @agentick/core / MCPConfig

Interface: MCPConfig ​

Defined in: core/src/mcp/types.ts:35

MCP server configuration.

Extends @agentick/mcp's MCPConnectionConfig with the 'websocket' transport alias and a broader transport union. Auth types are inherited — see MCPConnectionConfig.auth for bearer, api_key, oauth, none options.

Extends ​

Properties ​

auth? ​

optional auth: { token: string; type: "bearer"; } | { token: string; type: "api_key"; } | { provider: OAuthProvider; type: "oauth"; } | { type: "none"; } | {[key: string]: any; type: "custom"; }

Defined in: mcp/src/client/types.ts:37

Authentication configuration.

  • bearer / api_key: static token, no OAuth flow
  • oauth: custom OAuthProvider for full control over persistence and UX
  • none: explicitly disable auth (no 401 retry)
  • omitted: HTTP transports get automatic OAuth via DefaultOAuthProvider; stdio/in-process get no auth (trusted transports)

Inherited from ​

Omit.auth


connection ​

connection: object

Defined in: mcp/src/client/types.ts:18

Index Signature ​

[key: string]: any

args? ​

optional args: string[]

command? ​

optional command: string

For stdio: command to spawn

transport? ​

optional transport: Transport

For in-process: pre-created transport

url? ​

optional url: string

For SSE/HTTP: server URL

Inherited from ​

Omit.connection


serverName ​

serverName: string

Defined in: mcp/src/client/types.ts:16

Inherited from ​

Omit.serverName


transport ​

transport: MCPTransport

Defined in: core/src/mcp/types.ts:36

Released under the ISC License.