@rhofkens/mcp-quotes-server-claude-code
Version:
Model Context Protocol (MCP) server for managing and serving quotes
65 lines • 1.6 kB
TypeScript
/**
* Type definitions for MCP Quotes Server
*/
import type { Server } from '@modelcontextprotocol/sdk/server/index.js';
import type { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
/**
* Server configuration options
*/
export interface IServerConfig {
name: string;
version: string;
description?: string;
capabilities?: IServerCapabilities;
}
/**
* Server capabilities configuration
*/
export interface IServerCapabilities {
tools?: boolean;
resources?: boolean;
prompts?: boolean;
sampling?: boolean;
}
/**
* Server state management
*/
export declare enum ServerState {
IDLE = "idle",
STARTING = "starting",
RUNNING = "running",
STOPPING = "stopping",
STOPPED = "stopped",
ERROR = "error"
}
/**
* Server lifecycle events
*/
export interface IServerLifecycle {
onStart?: () => Promise<void>;
onStop?: () => Promise<void>;
onError?: (error: Error) => Promise<void>;
onConnectionStateChange?: (connected: boolean) => void;
}
/**
* Export MCP SDK types for convenience
*/
export type { Server, StdioServerTransport };
/**
* Export quote-related types
*/
export * from './quotes.js';
/**
* Error types for the server
*/
export declare class MCPServerError extends Error {
code: string;
constructor(message: string, code: string);
}
export declare class ServerInitializationError extends MCPServerError {
constructor(message: string);
}
export declare class ServerShutdownError extends MCPServerError {
constructor(message: string);
}
//# sourceMappingURL=index.d.ts.map