Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Context Injection MCP ServerI'm starting a new React project - inject my development workflow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Context Injection MCP Server
A Model Context Protocol (MCP) server that automatically injects development framework context into Claude conversations.
Overview
This MCP server integrates with Claude Desktop to automatically inject your development framework context into conversations when you start discussing new projects or development tasks. It ensures Claude follows your established patterns and workflows without having to manually provide this context each time.
The server also supports referencing your Knowledge Graph to ensure Claude leverages your stored development frameworks, patterns, and workflows when responding.
Features
Automatic Context Injection: Detects development-related conversations and automatically injects your framework context.
Keyword Detection: Customize keywords that trigger context injection.
Solo Developer Framework: Includes a predefined Solo Developer Framework with workflows and best practices.
Knowledge Graph References: Add references to your Knowledge Graph to leverage your stored development knowledge.
CLI Tools: Simple command-line interface for setup and operation.
Framework Included
The default context includes:
Solo Developer Workflow: A 9-step process for efficient solo development
AI Collaboration Framework: A structured approach for working with AI assistants
Short Prompt Development: Pattern for generating implementations from brief instructions
Installation
Clone the repository
Install dependencies:
Build the project:
Usage
Setup
Initialize the project with default configuration and context files:
This creates:
config.json: Server configurationcontext.json: Development context for injection
Starting the Server
Or with a custom config file:
Creating a Custom Context
Configuring Knowledge Graph References
View current configuration:
Enable Knowledge Graph references:
Disable Knowledge Graph references:
Customize Knowledge Graph reference text:
Integration with Claude Desktop
To use this MCP server with Claude Desktop:
Open your Claude Desktop configuration
Add the following to your MCP servers configuration:
Claude Desktop Integration
Overview
This MCP Context Injection service can be integrated with Claude Desktop to automatically inject contextual information into your conversations with Claude. Integration uses the Model Context Protocol (MCP) which allows Claude to communicate with external tools.
Setup Instructions
First, make sure you have the latest version of Claude Desktop installed
Download from Anthropic's website
Ensure it's updated to the latest version
Configure Claude Desktop to use this MCP server:
Windows:
Open your Claude Desktop configuration file at:
%APPDATA%\Claude\claude_desktop_config.jsonIf the file doesn't exist, create it
Add the following configuration (adjust paths to match your installation):
{ "mcpServers": { "context-injection": { "command": "node", "args": [ "C:\\apps\\mcp-instruction-injection\\dist\\cli.js", "mcp-start", "--config", "C:\\apps\\mcp-instruction-injection\\config.json" ] } } }
MacOS:
Open your Claude Desktop configuration file at:
~/Library/Application Support/Claude/claude_desktop_config.jsonIf the file doesn't exist, create it
Add the following configuration (adjust paths to match your installation):
{ "mcpServers": { "context-injection": { "command": "node", "args": [ "/path/to/mcp-instruction-injection/dist/cli.js", "mcp-start", "--config", "/path/to/mcp-instruction-injection/config.json" ] } } }
Save the configuration file and restart Claude Desktop
Verify the integration is working:
Open Claude Desktop
Look for the hammer icon in the interface that indicates available tools
The context injection tool should appear in the list
Troubleshooting
If you're having issues with the integration:
Tool not appearing in Claude Desktop:
Ensure the configuration file is properly set up with the correct paths
Restart Claude Desktop completely
Check the context injection server logs for any errors
JSON parsing errors:
Make sure you're using the
mcp-startcommand, not the regularstartcommandThe MCP protocol requires proper JSON-RPC messaging through stdin/stdout
Port conflicts:
The MCP adapter doesn't use HTTP ports as it communicates through stdin/stdout
If you see port conflict errors, it means you're using the wrong mode
Request timeouts:
Check your internet connection
Ensure the context service can access any external resources it needs
For detailed debugging, run Claude Desktop from the command line to see error messages.
Knowledge Graph Usage
This server adds a reference to your Knowledge Graph in the injected context, prompting Claude to access your stored development frameworks, patterns, and workflows stored there. The Knowledge Graph itself should be managed separately.
You can customize the reference text using the --kg-text config parameter.
Configuration
The config.json file allows you to customize:
port: The port the server runs on (default: 3000)contextPath: Path to the context fileautoInject: Whether to automatically inject on all messagestriggerKeywords: Words that trigger injection when autoInject is falseknowledgeGraphReference: Whether to include Knowledge Graph referenceknowledgeGraphReferenceText: Text to include when referencing Knowledge Graph
Project Structure
License
MIT