LLM上下文管理工具
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"llm-context": {
"args": [
"--from",
"llm-context",
"lc-mcp"
],
"command": "uvx"
}
}
}
可用工具 (5 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
lc_changed 2 个参数 需填 2 项
Returns list of files modified since given timestamp. Args: root_path: Root directory path (e.g. '/home/user/projects/myproject') timestamp: Unix timestamp to check modifications since
必填参数:root_path、timestamp
lc_outlines 2 个参数 需填 2 项
Returns excerpted content highlighting important sections in all supported files. Args: root_path: Root directory path rule_name: Rule to use for file selection rules
必填参数:root_path、rule_name
lc_rule_instructions 1 个参数 需填 1 项
Provides step-by-step instructions for creating custom rules. Args: root_path: Root directory path
必填参数:root_path
lc_preview 2 个参数 需填 2 项
Preview what files a rule selects and their sizes. Args: root_path: Root directory path (e.g. '/home/user/projects/myproject') rule_name: Name of the rule to preview (e.g. 'prm-code', 'tmp-prm-auth-jwt')
必填参数:root_path、rule_name
lc_missing 4 个参数 需填 4 项
Unified tool for retrieving missing context (files, implementations, or excluded sections). Args: root_path: Root directory path (e.g. '/home/user/projects/myproject') param_type: Type of data - 'f' for files, 'i' for implementations, 'e' for excluded sections data: JSON string containing the data (file paths in /{project-name}/ format or implementation queries) timestamp: Context generation timestamp
必填参数:root_path、param_type、data、timestamp
服务介绍
llm-context是一个智能的上下文管理工具,通过可组合的规则为LLM开发工作流提供任务特定的项目上下文,适用于开发者和AI代理。