@gluneau/hive-mcp-server
Version:
An MCP server that enables AI assistants to interact with the Hive blockchain
32 lines (31 loc) • 1.04 kB
TypeScript
import { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol';
export interface SuccessResponse {
[key: string]: unknown;
content: {
type: 'text';
text: string;
mimeType?: string;
}[];
isError?: false;
}
export interface ErrorResponse {
[key: string]: unknown;
content: {
type: 'text';
text: string;
mimeType?: string;
}[];
isError: true;
}
export type Response = SuccessResponse | ErrorResponse;
export declare function successJson(data: unknown): Response;
export declare function successText(text: string): Response;
export declare function errorResponse(message: string): Response;
export declare function adaptHandler<T>(handler: (params: T) => Promise<Response>): (params: T, extra: RequestHandlerExtra) => Promise<Response>;
declare const _default: {
successJson: typeof successJson;
successText: typeof successText;
errorResponse: typeof errorResponse;
adaptHandler: typeof adaptHandler;
};
export default _default;