npmplus-mcp-server
Version:
Production-ready MCP server for intelligent JavaScript package management. Works with Claude, Windsurf, Cursor, VS Code, and any MCP-compatible AI editor.
28 lines • 793 B
TypeScript
/**
* Common response types for MCP tools
*/
export interface MCPContent {
type: 'text';
text: string;
}
export interface MCPResponse {
content: MCPContent[];
isError?: boolean;
}
/**
* Creates a successful MCP response with formatted text
*/
export declare function createSuccessResponse(text: string): MCPResponse;
/**
* Creates an error MCP response with formatted error message
*/
export declare function createErrorResponse(error: Error | string, context?: string): MCPResponse;
/**
* Creates a formatted info response
*/
export declare function createInfoResponse(title: string, content: string): MCPResponse;
/**
* Creates a warning response
*/
export declare function createWarningResponse(warning: string): MCPResponse;
//# sourceMappingURL=response.d.ts.map