Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
/**
|
|
* Handler method wrapping for MCP server instrumentation
|
|
*
|
|
* Provides automatic error capture and span correlation for tool, resource,
|
|
* and prompt handlers.
|
|
*/
|
|
import type { MCPServerInstance } from './types';
|
|
/**
|
|
* Wraps tool handlers to associate them with request spans
|
|
* @param serverInstance - MCP server instance
|
|
*/
|
|
export declare function wrapToolHandlers(serverInstance: MCPServerInstance): void;
|
|
/**
|
|
* Wraps resource handlers to associate them with request spans
|
|
* @param serverInstance - MCP server instance
|
|
*/
|
|
export declare function wrapResourceHandlers(serverInstance: MCPServerInstance): void;
|
|
/**
|
|
* Wraps prompt handlers to associate them with request spans
|
|
* @param serverInstance - MCP server instance
|
|
*/
|
|
export declare function wrapPromptHandlers(serverInstance: MCPServerInstance): void;
|
|
/**
|
|
* Wraps all MCP handler types (tool, resource, prompt) for span correlation
|
|
* @param serverInstance - MCP server instance
|
|
*/
|
|
export declare function wrapAllMCPHandlers(serverInstance: MCPServerInstance): void;
|
|
//# sourceMappingURL=handlers.d.ts.map |