phil65_mcp-server-llmling
0
The mcp-server-llmling is a server designed to work with the Machine Chat Protocol, offering an environment for LLM applications configured through YAML. It provides resource management, tool execution, and prompt management, facilitating standardized LLM interactions.
Overview
mcp-server-llmling is a server for the Machine Chat Protocol (MCP) that provides a YAML-based configuration system for LLM applications.
- Static Declaration: Define your LLM's environment in YAML - no code required
- MCP Protocol: Built on the Machine Chat Protocol (MCP) for standardized LLM interaction
- Component Types:
- Resources: Content providers (files, text, CLI output, etc.)
- Prompts: Message templates with arguments
- Tools: Python functions callable by the LLM
The YAML configuration creates a complete environment that provides the LLM with:
- Access to content via resources
- Structured prompts for consistent interaction
- Tools for extending capabilities
Key Features
1. Resource Management
- Load and manage different types of resources:
- Text files (
PathResource
) - Raw text content (
TextResource
) - CLI command output (
CLIResource
) - Python source code (
SourceResource
) - Python callable results (
CallableResource
) - Images (
ImageResource
)
- Text files (
- Support for resource watching/hot-reload
- Resource processing pipelines
- URI-based resource access
2. Tool System
- Register and execute Python functions as LLM tools
- Support for OpenAPI-based tools
- Entry point-based tool discovery
- Tool validation and parameter checking
- Structured tool responses
3. Prompt Management
- Static prompts with template support
- Dynamic prompts from Python functions
- File-based prompts
- Prompt argument validation
- Completion suggestions for prompt arguments
4. Multiple Transport Options
- Stdio-based communication (default)
- Server-Sent Events (SSE) for web clients
- Support for custom transport implementations