Skip to main content
Glama

🤖 AI Dev Assistant — MCP Server

A production-ready Model Context Protocol (MCP) Server that bridges Claude Desktop directly to your local Windows 10 development environment. Give Claude the ability to read your code, run scripts, search docs, and execute safe terminal commands — all without leaving the chat.


✨ What It Does

This server extends Claude Desktop with four powerful developer tools:

Tool

What It Does

github_repo_reader

Recursively reads any local repo (ignores .git, node_modules, binaries)

code_executor

Runs Python or Node.js snippets in isolated child processes

doc_search

Full-text keyword search across your local docs/ folder

terminal_commander

Executes safe CMD/PowerShell commands via a strict allowlist


Related MCP server: copilot-studio-code

🏗️ Project Structure

ai-dev-assistant-mcp/
├── main.py                      ← MCP server entry point & tool implementations
├── pyproject.toml               ← Python project configuration
├── claude_desktop_config.json   ← Example Claude Desktop config block
└── README.md

⚙️ Setup (Windows 10)

Prerequisites

  • Python 3.8+ — verify with python --version

  • Node.js (optional, only needed for the code_executor Node.js runtime)

  • Claude Desktop installed

  • uv (optional, for faster installs) or pip

Step 1 — Clone / Place the Project

Place this project folder somewhere permanent, for example:

C:\ai-dev-assistant-mcp\

⚠️ Do not move the folder later — Claude Desktop will reference the script path.

Step 2 — Install Dependencies

Open a terminal in the project root and run:

cd C:\ai-dev-assistant-mcp
pip install -e .

Or with uv:

uv pip install -e .

Step 3 — Configure Claude Desktop

Open (or create) the Claude Desktop config file at:

%APPDATA%\Claude\claude_desktop_config.json

Paste in the following block (adjust the path if you placed the project elsewhere):

{
  "mcpServers": {
    "ai-dev-assistant": {
      "command": "python",
      "args": [
        "C:\\ai-dev-assistant-mcp\\main.py"
      ],
      "env": {}
    }
  }
}

💡 Already have other MCP servers? Just add the "ai-dev-assistant" key inside your existing "mcpServers" object.

Step 4 — Restart Claude Desktop

Fully quit and relaunch Claude Desktop. You should see the 🔧 tools icon in the chat input bar — click it to confirm all four tools appear.


🔒 Security Architecture

Terminal Commander Safe List

The terminal_commander tool will refuse to run any command whose base name is not on the explicit allowlist in main.py:

SAFE_COMMANDS_ALLOWLIST = {
    "dir", "ls", "git", "node", "npm", "npx", "python",
    "tsc", "docker", "ipconfig", "ping", "whoami", ...
}

Additionally, even allowlisted commands are blocked if they match any dangerous pattern:

rm -rf     del /s     format C:     shutdown
taskkill   net user   netsh         Invoke-Expression
curl | bash           registry edits   UAC elevation ...

To add a new command, edit SAFE_COMMANDS_ALLOWLIST in main.py.

Code Executor Sandbox

  • Scripts run in isolated temp files — no persistent state between calls

  • 15-second hard timeout — runaway processes are killed automatically

  • 64 KB output cap — prevents memory exhaustion from verbose output

  • Temp files are deleted immediately after execution

Repo Reader Limits

  • Ignores: .git, node_modules, .next, dist, __pycache__, .venv, etc.

  • Skips: binary files, images, archives, .lock files

  • 500 KB per-file cap — large generated files are skipped automatically

  • 500 file maximum per call


🛠️ Usage Examples

Once connected to Claude Desktop, you can ask Claude:

"Read my repo at C:\Projects\my-api and explain the architecture."

"Run this Python script and tell me the output:
  import json; print(json.dumps({'status': 'ok', 'count': 42}))"

"Search my docs folder at C:\Projects\my-api\docs for 'authentication'"

"Run git status in C:\Projects\my-api"

"What files are in C:\Projects? Run dir."

🔧 Development

Run Directly

python main.py

Add a New Tool

  1. Add a new @Tool() decorated function in main.py

  2. The server will automatically register it


🪟 Windows Path Notes

Windows paths use backslashes. In JSON config files, always double-escape them:

"C:\\Users\\YourName\\Projects\\my-repo"

In Claude prompts, you can use either style — the tools normalize paths internally using pathlib.Path.resolve().


📦 Tech Stack

Layer

Technology

Language

Python 3.8+

MCP SDK

mcp

Process execution

asyncio.subprocess

Transport

stdio (standard MCP transport)


🤝 How It Bridges Claude and Windows

┌─────────────────────────────────────────────────┐
│                  Claude Desktop                  │
│  ┌─────────────────────────────────────────────┐ │
│  │   Claude AI (Claude Sonnet / Opus)          │ │
│  │   → Decides which tool to call              │ │
│  └─────────────┬───────────────────────────────┘ │
└────────────────┼────────────────────────────────┘
                 │ MCP Protocol (stdio JSON-RPC)
┌────────────────▼────────────────────────────────┐
│           AI Dev Assistant MCP Server            │
│  ┌──────────────┐  ┌──────────────────────────┐  │
│  │ Repo Reader  │  │     Code Executor         │  │
│  │ (pathlib)    │  │  (asyncio.subprocess)     │  │
│  └──────────────┘  └──────────────────────────┘  │
│  ┌──────────────┐  ┌──────────────────────────┐  │
│  │  Doc Search  │  │   Terminal Commander      │  │
│  │ (os.walk)    │  │   (cmd.exe / pwsh.exe)   │  │
│  └──────────────┘  └──────────────────────────┘  │
└─────────────────────────────┬───────────────────┘
                              │
              ┌───────────────▼───────────────┐
              │     Windows 10 File System    │
              │     Python / Node Runtimes    │
              │     Git / npm / Docker        │
              └───────────────────────────────┘

Claude sends a tool-call request over stdio. The MCP server validates it, executes the appropriate handler, and returns formatted Markdown back to Claude — which presents it naturally in the conversation.


📄 License

MIT — free to use, modify, and build upon.

Available Tools

4 tools
code_executorA

Executes a small Python or Node.js code snippet in a sandboxed child process. Hard limits: 15 second timeout, 64 KB output cap. The snippet runs in an isolated temp file — no persistent state between calls. Ideal for quick calculations, data transformations, and API-free logic.

ParametersJSON Schema
NameRequiredDescriptionDefault
languageYesThe language runtime to use: 'python' or 'node'.
codeYesThe code snippet to execute. Keep it self-contained.

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and effectively discloses key behavioral traits: it specifies hard limits (15-second timeout, 64 KB output cap), isolation (runs in isolated temp file), and statelessness (no persistent state between calls). It does not cover aspects like error handling or security implications, but provides substantial operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with core functionality and efficiently structured in three sentences: the first states purpose and constraints, the second details isolation, and the third provides usage context. Every sentence adds value without redundancy, making it appropriately sized and zero-waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (code execution with constraints), no annotations, and no output schema, the description is largely complete: it covers purpose, behavioral limits, and usage context. However, it lacks details on return values or error responses, which would be helpful for an agent invoking the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds minimal value beyond the schema, mentioning 'self-contained' for the code parameter but not elaborating on syntax or constraints. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool executes code snippets in specific languages (Python/Node.js) in a sandboxed environment, distinguishing it from sibling tools like doc_search or terminal_commander by focusing on code execution rather than document retrieval or system commands. It specifies the action ('executes'), resource ('code snippet'), and context ('sandboxed child process').

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool ('ideal for quick calculations, data transformations, and API-free logic'), but does not explicitly state when not to use it or name alternatives among siblings. It implies usage for small, stateless tasks but lacks explicit exclusions or comparisons to other tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

github_repo_readerA

Recursively reads all source files in a local repository directory. Automatically ignores .git, node_modules, binary files, and large files (>500KB). Returns a directory tree and the full content of each readable file.

ParametersJSON Schema
NameRequiredDescriptionDefault
repo_pathYesAbsolute path to the local repository root. Windows example: C:\Users\YourName\Projects\my-repo
max_filesNoMaximum number of files to return (default: 100, max: 500).

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: recursive traversal, automatic ignoring of specific directories and file types, handling of binary and large files, and the return format (directory tree and file contents). This gives the agent clear expectations without contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose in the first sentence, followed by essential behavioral details in a compact form. Every sentence adds value (e.g., filtering rules and return format), with no redundant or vague language, making it highly efficient and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (recursive file reading with filters), no annotations, and no output schema, the description does a good job covering behavior and output. It explains what is returned (directory tree and file contents) and key constraints, though it could benefit from mentioning error handling or performance implications for large repositories.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description does not add any additional meaning or context beyond what the schema provides for 'repo_path' and 'max_files', such as usage examples or constraints not in the schema. Baseline 3 is appropriate as the schema handles parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('reads', 'returns') and resources ('all source files in a local repository directory'). It distinguishes itself from potential siblings by specifying recursive reading with automatic filtering of common directories and file types, which is not implied by the tool name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context through details like 'local repository directory' and filtering of '.git', 'node_modules', etc., suggesting it's for analyzing codebases. However, it does not explicitly state when to use this tool versus alternatives like 'doc_search' or 'code_executor', nor does it provide exclusions or prerequisites for usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

terminal_commanderA

Executes a safe Windows CMD or PowerShell command on the local machine. Protected by a strict allowlist — only pre-approved commands are permitted. Dangerous patterns (rm -rf, del /s, format, shutdown, registry edits, etc.) are blocked even if the base command is allowed. Allowed commands include: dir, git, node, npm, python, tsc, docker, ipconfig, and more. Use this to run git status, dir, npm install, tsc --noEmit, etc.

ParametersJSON Schema
NameRequiredDescriptionDefault
commandYesThe full command to execute. Examples: 'git status', 'dir C:\Projects', 'npm run build', 'ipconfig /all'
working_directoryNoOptional: Absolute path to set as the working directory before executing. Windows example: C:\Users\YourName\Projects\my-repo
use_powershellNoIf true, runs the command via PowerShell instead of CMD. Default: false (uses CMD on Windows, /bin/sh on others).

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does an excellent job disclosing key behavioral traits: safety mechanisms (strict allowlist, blocked dangerous patterns), platform specifics (Windows CMD/PowerShell), and examples of allowed commands. It doesn't cover error handling or output format, but provides substantial operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded with the core purpose and safety constraints, followed by specific examples. Every sentence adds value, though the list of allowed commands could be slightly more concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, the description provides excellent context about safety constraints, allowed commands, and usage examples. It doesn't describe the return format or error behavior, but covers most essential operational aspects given the complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already fully documents all three parameters. The description adds no additional parameter information beyond what's in the schema, meeting the baseline expectation when schema coverage is complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('executes') and resources ('Windows CMD or PowerShell command on the local machine'), and distinguishes it from siblings by focusing on safe command execution rather than code execution, document search, or GitHub operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly defines when to use this tool ('to run git status, dir, npm install, tsc --noEmit, etc.') and provides clear alternatives by naming sibling tools (code_executor, doc_search, github_repo_reader), though it doesn't explicitly state when not to use it beyond the allowlist constraints.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: code_executor runs code snippets, doc_search searches documents, github_repo_reader reads repository files, and terminal_commander executes system commands. The descriptions make it easy to differentiate between them, as they target different resources and use cases.

Naming Consistency4/5

The naming follows a consistent snake_case pattern with descriptive names (e.g., code_executor, doc_search), but there is a minor deviation with github_repo_reader using a compound term that could be more aligned (e.g., repo_reader). Overall, the naming is readable and mostly predictable.

Tool Count5/5

With 4 tools, the count is well-scoped for an AI Dev Assistant, covering key development tasks like code execution, documentation search, repository reading, and terminal commands. Each tool earns its place without feeling excessive or insufficient for the server's purpose.

Completeness4/5

The tool set covers essential development workflows, including code execution, documentation, repository management, and system operations. A minor gap exists in not having tools for more advanced tasks like debugging or version control beyond basic commands, but agents can work around this with the provided tools.

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pathakkhhimanshu/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server