Skip to main content
Glama

Claude Context

by zilliztech
index.tsβ€’1.13 kB
// Interface definitions export interface CodeChunk { content: string; metadata: { startLine: number; endLine: number; language?: string; filePath?: string; }; } // Splitter type enumeration export enum SplitterType { LANGCHAIN = 'langchain', AST = 'ast' } // Splitter configuration interface export interface SplitterConfig { type?: SplitterType; chunkSize?: number; chunkOverlap?: number; } export interface Splitter { /** * Split code into code chunks * @param code Code content * @param language Programming language * @param filePath File path * @returns Array of code chunks */ split(code: string, language: string, filePath?: string): Promise<CodeChunk[]>; /** * Set chunk size * @param chunkSize Chunk size */ setChunkSize(chunkSize: number): void; /** * Set chunk overlap size * @param chunkOverlap Chunk overlap size */ setChunkOverlap(chunkOverlap: number): void; } // Implementation class exports export * from './langchain-splitter'; export * from './ast-splitter';

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zilliztech/claude-context'

If you have feedback or need assistance with the MCP directory API, please join our Discord server