@funkeai/funkecontext
v0.1.0-beta.20250423124217
Published
Context Manager for Funke AI
Downloads
4
Readme
FunkeContext
Context management MCP server for Funke AI
FunkeContext is a Model Context Protocol (MCP) server that manages code context for the Funke coding assistant. It handles file scanning, content caching, and context configuration persistence.
Features
- 📁 Intelligent File Management: Add files to context using glob patterns
- 🔄 Smart Caching: Cache file contents with automatic invalidation
- 💾 Configuration Persistence: Save and load context configurations
- 🔍 Content Search: Search across files in context
- 🚀 MCP Integration: Full Model Context Protocol server implementation
Usage
As a standalone server
# Start the MCP server
funkecontextAs an MCP server within Funke
The Funke CLI automatically connects to this MCP server when running, providing the LLM with context management capabilities.
MCP Tools
FunkeContext exposes the following MCP tools:
list-context-files- Lists all files currently in contextadd-context-files- Adds files to context using glob patternsremove-context-files- Removes files from contextget-file-content- Gets content of a file with cachingsave-context- Saves context configurationload-context- Loads context configurationsearch-context- Searches for content in context files
Development
# Install dependencies
pnpm install
# Build
pnpm build
# Test
pnpm test
# Run in development mode
pnpm devArchitecture
FunkeContext consists of three main components:
- File Cache - Manages caching of file content with automatic invalidation
- Context Manager - Maintains the state of the context, including file tracking
- Config Storage - Handles persistence of context configurations
License
MIT
