Skip to main content
Glama

llm-context

by cyberchitta
base.py688 B
from abc import ABC, abstractmethod from dataclasses import dataclass from typing import Any from llm_context.excerpters.parser import Source @dataclass(frozen=True) class Excerpt: rel_path: str content: str metadata: dict[str, Any] @dataclass(frozen=True) class Excerpts: excerpts: list[Excerpt] metadata: dict[str, Any] @dataclass(frozen=True) class Excluded: sections: dict[str, str] # section_name -> content metadata: dict[str, Any] class Excerpter(ABC): @abstractmethod def excerpt(self, sources: list[Source]) -> Excerpts: pass @abstractmethod def excluded(self, sources: list[Source]) -> list[Excluded]: pass

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/cyberchitta/llm-context.py'

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