{"type":"mcp_server","name":"llm-context.py","description":"LLM Context helps developers inject relevant code/text content into LLM chats. It uses `.gitignore` patterns for file selection and offers clipboard workflow and direct LLM integration via the Model Context Protocol.","category":"Developer Tools","language":"Python","stars":301,"forks":12,"owner":"cyberchitta","github_url":"https://github.com/cyberchitta/llm-context.py","homepage":"https://www.cyberchitta.cc/articles/llm-ctx-why.html","setup":"## Setup\n\n1.  Install LLM Context using [uv](https://github.com/astral-sh/uv): `uv tool install llm-context`\n2.  To upgrade to the latest version: `uv tool upgrade llm-context`\n3.  For MCP with Claude Desktop, add the provided configuration to 'claude_desktop_config.json'.\n4.  For CLI Quick Start, navigate to your project's root directory.\n5.  Initialize repository: `lc-init` (only needed once).\n6.  (Optional) Edit `.llm-context/config.yaml` to customize ignore patterns.\n7.  Select files: `lc-sel-files`.\n8.  (Optional) Review selected files in `.llm-context/curr_ctx.yaml`.\n9.  Generate context: `lc-context` (with optional flags: `-p` for prompt, `-u` for user notes).\n10. Use with your preferred interface.\n11. When the LLM requests additional files, copy the file list, run `lc-clip-files`, and paste the contents back to the LLM.\n12. Existing users **must manually convert** any customizations in `.llm-context/config.toml` files to the new `.llm-context/config.yaml`.","tools":"## Available Tools\n\n1.  Direct LLM Integration (Native integration with Claude Desktop via MCP protocol).\n2.  Chat Interface Support (Works with any LLM chat interface via CLI/clipboard).\n3.  Smart file selection (using `.gitignore` patterns).\n4.  Multiple profiles (for different use cases).\n5.  Smart Code Outlines (Allows LLMs to view the high-level structure of your codebase).\n6.  Definition Implementation Extraction (Paste full implementations of specific definitions that are requested by LLMs).\n7.  `lc-init` (Initialize project configuration).\n8.  `lc-set-profile <n>` (Switch profiles).\n9.  `lc-sel-files` (Select files for inclusion).\n10. `lc-sel-outlines` (Select files for outline generation).\n11. `lc-context [-p] [-u] [-f FILE]` (Generate and copy context).\n12. `lc-prompt` (Generate project instructions for LLMs).\n13. `lc-clip-files` (Process LLM file requests).\n14. `lc-changed` (List files modified since last context generation).\n15. `lc-outlines` (Generate outlines for code files).\n16. `lc-clip-implementations` (Extract code implementations requested by LLMs).","faq":null,"created_at":"2024-04-20T15:51:14+00:00","updated_at":"2025-03-28T19:43:46+00:00","source_url":"https://model-context-protocol.com/servers/llm-code-sharing-model-context-protocol","related_articles":[]}