feat(v2.6.0): implement GlobalEnvelope, T1-T9 hardening, 12 tools, and CI acceptance test suite
This commit is contained in:
Vendored
+9
-2
@@ -2,12 +2,19 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
||||
import { Tool } from "@modelcontextprotocol/sdk/types.js";
|
||||
import { CourierRegistry } from "./registry.js";
|
||||
export declare const TOOLS: Tool[];
|
||||
/**
|
||||
* Execute a single MCP tool call and return the Global Response Envelope (`v2.6.0`).
|
||||
*/
|
||||
export declare function executeToolCall(registry: CourierRegistry, name: string, args?: Record<string, any>, tenantId?: string): Promise<{
|
||||
isError: boolean;
|
||||
envelope: any;
|
||||
}>;
|
||||
/**
|
||||
* Build a fully-wired MCP Server bound to a given CourierRegistry.
|
||||
* The registry carries the credentials — for STDIO it comes from env,
|
||||
* for HTTP it is built per-request from that client's keys.
|
||||
*/
|
||||
export declare function buildMcpServer(registry: CourierRegistry, authChecker?: (toolName: string) => {
|
||||
export declare function buildMcpServer(registry: CourierRegistry, authChecker?: (toolName: string, args?: Record<string, any>) => {
|
||||
permitted: boolean;
|
||||
reason?: string;
|
||||
}): Server;
|
||||
}, tenantId?: string): Server;
|
||||
|
||||
Reference in New Issue
Block a user