UNPKG

octocode-mcp

Version:

Model Context Protocol (MCP) server for advanced GitHub repository analysis and code discovery. Provides AI assistants with powerful tools to search, analyze, and understand codebases across GitHub.

17 lines (16 loc) 526 B
/** * Test helpers for type guards and common test utilities */ import type { ContentBlock } from '@modelcontextprotocol/sdk/types.js'; /** * Type guard to check if a ContentBlock is TextContent */ export declare function isTextContent(content: ContentBlock | undefined): content is { type: 'text'; text: string; }; /** * Extracts text from a ContentBlock array, asserting it's text content * @throws Error if content is not text type */ export declare function getTextContent(content: ContentBlock[]): string;