@longevity-genie/biostratum-mcp-plugin
Version:
ElizaOS MCP plugin for biostratum - a comprehensive MCP composer and adapter solution
14 lines (13 loc) • 858 B
TypeScript
import { type HandlerCallback, type IAgentRuntime, type Memory } from "@elizaos/core";
import type { State } from "@elizaos/core";
import type { McpProvider } from "../types";
export declare function handleMcpError(state: State, mcpProvider: McpProvider, error: unknown, runtime: IAgentRuntime, message: Memory, type: "tool" | "resource", callback?: HandlerCallback): Promise<boolean>;
export declare class McpError extends Error {
readonly code: string;
constructor(message: string, code?: string);
static connectionError(serverName: string, details?: string): McpError;
static toolNotFound(toolName: string, serverName: string): McpError;
static resourceNotFound(uri: string, serverName: string): McpError;
static validationError(details: string): McpError;
static serverError(serverName: string, details?: string): McpError;
}