DevToolkit MCP Server
Provides AI assistants with 28 developer tools across file, git, code analysis, HTTP, and system domains, enabling tasks like file editing, repository management, code analysis, and shell command execution.
README
DevToolkit MCP Server
A production-quality Model Context Protocol (MCP) server that gives AI assistants like Claude 22 powerful developer tools across 5 domains.
Built with TypeScript, strict types, Zod validation, and clean modular architecture.
Features
š File Tools (6)
| Tool | Description |
|---|---|
read_file |
Read file contents with optional line range |
write_file |
Write/append to files, auto-creates directories |
list_directory |
List files with metadata (size, modified date) |
search_in_files |
Regex search across files with glob patterns |
get_file_info |
File metadata: size, timestamps, permissions |
delete_file |
Delete files or directories (recursive optional) |
š§ Git Tools (6)
| Tool | Description |
|---|---|
git_status |
Working tree status, branch info, ahead/behind |
git_log |
Commit history with author, date, message |
git_diff |
Diff between commits, branches, or working tree |
git_blame |
Line-by-line authorship for any file |
git_branches |
List all local and remote branches |
git_show_commit |
Full diff and metadata for a specific commit |
š Code Analysis Tools (6)
| Tool | Description |
|---|---|
analyze_complexity |
Cyclomatic complexity, nesting depth, function count |
find_todos |
Find TODO/FIXME/HACK comments across a codebase |
count_lines |
Code vs comment vs blank line breakdown |
detect_language |
Identify programming language from file extension/shebang |
find_duplicates |
Detect duplicate code blocks across files |
get_imports |
Extract and categorize all import statements |
š HTTP Tools (4)
| Tool | Description |
|---|---|
http_request |
Full HTTP client: GET/POST/PUT/PATCH/DELETE with headers/body |
fetch_json |
Fetch and parse JSON with optional dot-path extraction |
check_url_status |
Batch URL health check with response times |
download_file |
Download files from URLs to local paths |
š» System Tools (6)
| Tool | Description |
|---|---|
get_system_info |
OS, CPU, memory, Node version, uptime |
get_env |
Read environment variables (sensitive values auto-masked) |
run_command |
Execute shell commands (allowlisted for safety) |
list_processes |
Running processes with CPU/memory usage |
get_disk_usage |
Disk usage for directories |
get_network_info |
Network interfaces and IP addresses |
Installation
git clone https://github.com/your-username/devtoolkit-mcp
cd devtoolkit-mcp
npm install
npm run build
Usage with Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"devtoolkit": {
"command": "node",
"args": ["/absolute/path/to/devtoolkit-mcp/dist/index.js"]
}
}
}
Usage with Cursor / VS Code
Same pattern ā point the MCP server config to dist/index.js.
Development
npm run dev # Run with tsx (no build step)
npm run build # Compile TypeScript
npm run lint # ESLint
Advanced MCP Protocol Features
Beyond tools, this server implements the full 2025-06-18 MCP specification:
š Resources
Files are exposed as browsable MCP resources ā clients (e.g. Claude Desktop) can list, read, and subscribe to changes.
- Paginated listing with cursor-based pagination (50 files/page)
- Resource templates:
file:///{path}for dynamic file access - Subscriptions: clients receive
notifications/resources/updatedwhen a file changes after a write/delete - List-changed notifications: resource list updates after any file mutation
- Annotations: every resource includes
audience,priority, andlastModified
š Logging
Structured log notifications sent to the client for every tool call:
- 8 RFC 5424 severity levels:
debugāemergency - Client can set minimum log level via
logging/setLevel - Logs include tool name, args preview, status, and errors
- Sensitive values never logged
š Completion
Autocomplete for file paths in resource URI templates:
- Triggered when client requests
completion/completeon aref/resource - Returns matching file paths up to 20 suggestions with
hasMoreflag
š£ļø Elicitation
Servers request structured user input before destructive operations:
write_file: if the target file exists, asks user to confirm overwrite (with checkbox UI)delete_file: always asks user to confirm + optionally provide a reason- Falls back gracefully if client doesn't support elicitation (proceeds without prompt)
š¤ Sampling
The server can ask the client's LLM to generate completions:
sampleFromClient()helper exported for use in tools- Specifies model preferences (prefers Claude Sonnet, falls back to any Claude)
- Gracefully no-ops if client doesn't support sampling
Architecture
src/
āāā index.ts # MCP server, capabilities, tool routing, elicitation, sampling
āāā resources.ts # Resources: list, read, subscribe, completion, pagination
āāā tools/
ā āāā files.ts # File system tools
ā āāā git.ts # Git integration (simple-git)
ā āāā code-analysis.ts # Static analysis tools
ā āāā http.ts # HTTP client tools (axios)
ā āāā system.ts # OS/system tools
āāā utils/
āāā errors.ts # Typed error classes, helpers
āāā logger.ts # Structured log notifications (RFC 5424)
Key design decisions:
- Zod validation on every tool input ā no silent failures
- Typed error classes with error codes for structured debugging
- Security:
run_commandhas an explicit allowlist; env vars auto-mask secrets - Cross-platform: works on Windows, macOS, and Linux
Tech Stack
@modelcontextprotocol/sdkā MCP protocolsimple-gitā Git operationsaxiosā HTTP clientfast-globā File pattern matchingzodā Runtime schema validation- TypeScript (strict mode)
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.