Skip to content

Documentation / @agentick/mcp / MCPConnectionConfig

Interface: MCPConnectionConfig

Defined in: client/types.ts:15

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: 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)

connection

connection: object

Defined in: 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


serverName

serverName: string

Defined in: client/types.ts:16


transport

transport: MCPTransport

Defined in: client/types.ts:17

Released under the ISC License.