UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

15 lines • 727 B
import { Client } from '@modelcontextprotocol/sdk/client/index.js'; import type { CompanyClient } from './company.js'; import type { PoppyApiEntry } from './types.js'; export interface McpConnection { client: Client; api: PoppyApiEntry; close(): Promise<void>; } /** * Connects to a listed MCP server over Streamable HTTP (section 7): the Session header on every * request and, when signed in, a Bearer access token requested with `resource` set to the server's * `url`. A challenge rejects the call with a {@link ResourceAuthError} naming the needed `scope`. */ export declare function connectMcp(company: CompanyClient, apiIndex?: number | undefined): Promise<McpConnection>; //# sourceMappingURL=mcp.d.ts.map