/** * Per-call credentials for a Misar.Blog MCP tool. * * The stdio server resolves these once from the environment or * ~/.misarblog/config.json. The HTTP endpoint cannot: one Next.js process * serves many users, so a module-level credential would leak across requests. */ export interface BlogContext { apiKey: string; /** Versioned API base, e.g. `https://api.misar.io/blog/v1`. */ baseUrl: string; source: "mcp_stdio" | "mcp_http"; } /** Run `fn` with `ctx` visible to every apiFetch beneath it. */ export declare function runWithContext(ctx: BlogContext, fn: () => Promise): Promise; /** The ambient context, or null on stdio where credentials come from disk. */ export declare function currentContext(): BlogContext | null; /** Build a per-request context carrying the caller's key and API base. */ export declare function httpContext(apiKey: string, baseUrl: string): BlogContext; //# sourceMappingURL=context.d.ts.map