feat(v2.6.0): implement GlobalEnvelope, T1-T9 hardening, 12 tools, and CI acceptance test suite

This commit is contained in:
Amirul Islam Redwan71
2026-11-10 08:22:06 +06:00
parent c47d78f3a7
commit b3fec955cc
55 changed files with 5316 additions and 2157 deletions
+9 -2
View File
@@ -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;