/** * Invokes a tool by name with the provided parameters * * @TODO: CacheConfigSchema ParameterExtensionSchema ResponseExtensionSchema */ /** * Hook context passed to beforeInvoke hooks. * Mutating `sensitiveParams` or `env` in the hook affects the outgoing request. */ export interface InvokeHookContext { /** The MCP tool name being invoked */ toolName: string; /** HTTP method (lowercase) */ method: string; /** User-supplied input parameters (already processed for templates/scripts) */ inputParams: Record; /** User-supplied path parameters (already processed) */ pathParams: Record; /** * Sensitive parameters from `x-sensitive-params`. * Mutate this object to dynamically set credentials based on inputParams. */ sensitiveParams: Record; /** * Environment variables used for `{VAR}` template replacement. * Includes static env from config, `INPUT_*` vars derived from inputParams, * and process.env as fallback. Mutate to inject extra vars for template resolution. */ env: Record; } export type InvokeHook = (ctx: InvokeHookContext) => void | Promise; //# sourceMappingURL=invoker.d.ts.map