mcp — @personaai/sdk
Generated field tables for mcp — do not edit
Generated from
sdk/typescript/dist/typedoc.json— do not edit. Regenerate withnode platform/scripts/typedoc-resources.mjs.
mcp
Auth: Requires
Authorization: Bearer <keyId>.<secret>(server-side). For per-user calls addx-persona-external-user-id. See .
MCP connectors are Model Context Protocol servers (tools/resources). Supports OAuth owner vs user modes and testConnection/callTool.
Example
TypeScript
cURL
Response
Mcp
Like Provider (not Skill/Agent/Knowledge), this goes through a clean toSafeJson() DTO — oauth/apiKeyEncrypted are stripped in favor of hasApiKey/a summarized oauth object. Still _id-shaped, though (toSafeJson spreads the raw document minus secrets, doesn't rename it).
Source: types/mcp.ts:44
Interface
McpTransport
Source: types/mcp.ts:1
Kind 2097152
McpAuthType
Source: types/mcp.ts:2
Kind 2097152
McpAuthMode
owner: one shared connection for the whole Project. user: each external user connects their own.
Source: types/mcp.ts:4
Kind 2097152
McpTool
Source: types/mcp.ts:6
Interface
McpResourceSummary
Source: types/mcp.ts:11
Interface
McpResourceTemplate
A resource whose uri has placeholder params to fill before calling readResource().
Source: types/mcp.ts:19
Interface
McpOAuthConfig
Source: types/mcp.ts:27
Interface
McpOAuthInput
Source: types/mcp.ts:69
Interface
CreateMcpInput
Source: types/mcp.ts:75
Interface
UpdateMcpInput
All fields optional — only what you pass is changed.
Source: types/mcp.ts:95
Interface
DiscoverMcpsParams
Source: types/mcp.ts:109
Interface
McpTestConnectionResult
Source: types/mcp.ts:120
Interface
McpReadResourceResult
Source: types/mcp.ts:126
Interface
McpUserConnectionStatus
Source: types/mcp.ts:131
Interface