Skip to main content
Glama
Madiocre

DevEnv Doctor MCP

by Madiocre

devenv-doctor-mcp

An MCP server that gives an LLM client (Claude, or any MCP-compatible host) the ability to actually inspect your local dev environment — Docker container health, pnpm workspace integrity, and stuck/hung processes — instead of you copy-pasting terminal output back and forth.

Now powered by NitroStack! The project has been refactored from a monolithic script into a clean, declarative architecture using @nitrostack/core.

Why this exists

While building this, I hit a real pnpm bug: pnpm self-update corrupted my global environment lockfile, and every single pnpm invocation started crashing with Cannot use 'in' operator to search for 'integrity' in undefined. Diagnosing it meant manually hunting through ~/.local/share/pnpm, checking process states, and re-running commands with debug flags — exactly the kind of repetitive, mechanical diagnosis an LLM with the right tools could do directly. This project is that toolset.

Related MCP server: onboard-mcp

What it does

The application provides four primary tools, registered via @Tool decorators:

  • ping: Sanity check — returns pong plus the current server time.

  • check_docker_status: Checks whether a given container is running and whether its expected port is actually bound on the host. It reports the current state, healthcheck status, and every configured port mapping.

  • check_pnpm_workspace: Validates pnpm-workspace.yaml, detects orphaned packages, dead glob patterns, lockfile staleness, and missing package manager pin.

  • diagnose_stuck_process: Finds processes bound to a given port and flags likely zombie/hung states.


🚀 Quick Start Guide & Usage

Because this project is now built with NitroStack, it natively bootstraps an HTTP server using the @McpApp decorator.

1. Setup & Build

npm install
npm run build

2. Start the Server

Start the application. By default, NitroStack will bind the MCP HTTP transport to port 3000, unless you provide a PORT environment variable:

PORT=8080
node build/main.js

3. Testing with the MCP Inspector

Since the server now runs over HTTP rather than standard I/O, you can connect the official Inspector using the SSE (Server-Sent Events) URL:

npx @modelcontextprotocol/inspector http://localhost:3000/sse

Note: Depending on your exact NitroStack configuration, the SSE endpoint path may vary. Check your console output upon startup.

4. Connecting to a Host (e.g., Claude Desktop)

To use this with Claude Desktop, you can point it to the executable script using standard configuration. If your host requires standard I/O (stdio) instead of HTTP, you may need to adjust the transport configuration in src/main.ts from type: "http" to type: "stdio"

Known limitations

Being upfront about these rather than letting them surprise you:

  • Glob matching doesn't support negation patterns (!/test/), which some pnpm-workspace.yaml files use to exclude folders. A workspace using negation may get spurious "dead pattern" warnings.

  • Lockfile staleness is a mtime heuristic, and git clone resets file mtimes to roughly the same moment — so this check can false-positive immediately after a fresh clone, even on a perfectly healthy workspace. - ps flags used in diagnose_stuck_process are GNU/Linux-specific (--no-headers); this tool hasn't been tested on macOS/BSD ps.

  • Stuck-process detection is a single snapshot, not a trend — a process briefly in uninterruptible-sleep (D) state doing normal disk I/O can be flagged even though it's healthy. A more robust version would sample twice with a delay before flagging.

None of these are silent — each one is either surfaced as a message from the tool itself, or documented here.

Built With

  • @nitrostack/core for declarative MCP routing, dependency injection, and application bootstrapping

  • zod for strict input schema validation

  • yaml for real YAML parsing.

  • Node's child_process.execFile throughout (never exec) — every shell call uses array arguments, not interpolated strings, so user-supplied input (container names, paths) can't be used for shell injection.

License

MIT

Available Tools

4 tools
check_docker_statusA

Checks whether a given container is running and whether its expected port is actually bound on the host.

ParametersJSON Schema
NameRequiredDescriptionDefault
expectedPortNoPort the container is expected to expose on the host
containerNameYesDocker container name to check

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full burden. It discloses the core behavior (checking status and port binding) and implies a non-mutating operation, but it omits details like return format, error behavior, or what happens if the container is not found or expectedPort is omitted.

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 a single, well-structured sentence that front-loads the action ('Checks whether') and avoids redundancy. Every phrase contributes to understanding the tool's core purpose.

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

Completeness2/5

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

For a tool with no output schema and no annotations, the description should explain return values and error handling. It only states what is checked, leaving the agent uncertain about the result format and edge cases like missing containers or optional port usage.

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 coverage is 100%, so the baseline is 3. The description adds minimal value beyond the schema—it rephrases the expectedPort concept but does not clarify the behavior when expectedPort is not provided or how containerName is resolved.

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 function: checking if a container is running and if the expected port is bound on the host. This specific verb+resource+scope distinguishes it from sibling tools like ping, check_pnpm_workspace, and diagnose_stuck_process.

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: use this when you need to verify a container's running state and port binding. However, it does not explicitly state when to prefer this over alternatives or mention any exclusions, leaving usage guidance to inference.

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

check_pnpm_workspaceA

Validates pnpm-workspace.yaml, detects orphaned packages, dead glob patterns, lockfile staleness, and missing package manager pin.

ParametersJSON Schema
NameRequiredDescriptionDefault
repoPathYesAbsolute path to the monorepo root

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It lists what is validated (orphaned packages, dead glob patterns, etc.) but does not state whether the tool is read-only, how results are returned, or any side effects. This is a significant gap for an agent that needs to know if invoking the tool could cause changes.

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 a single sentence that front-loads the core action ('Validates pnpm-workspace.yaml') and then lists specific validation targets. There is no fluff, and every word adds value.

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

Completeness3/5

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

The tool is simple with one well-documented parameter, and the description enumerates exactly what issues it detects, covering the main functionality. However, it does not describe the return value or prerequisites, and since there is no output schema, this leaves a gap for the agent regarding how to interpret the result.

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?

The only parameter, repoPath, has a full schema description ('Absolute path to the monorepo root'). The tool description does not add extra parameter semantics, so the baseline score of 3 is appropriate.

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?

Clearly states the tool's purpose with a specific verb 'Validates' and resource 'pnpm-workspace.yaml', then enumerates four distinct validation checks. This distinguishes it from siblings like check_docker_status and diagnose_stuck_process, which target completely different domains.

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 this tool is for validating pnpm workspace configurations, but it does not explicitly state when to use it, nor does it mention alternatives or exclusion criteria. Since the sibling tools are unrelated, the intended context is somewhat clear, but there is no direct when-to-use guidance.

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

diagnose_stuck_processC

Finds processes bound to a given port and flags likely zombie/hung states.

ParametersJSON Schema
NameRequiredDescriptionDefault
portYesPort number to inspect

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries full burden for behavioral disclosure. It mentions 'flags' zombie/hung states but does not clarify whether the tool is read-only or may terminate processes, what permissions are needed, or what the output looks like.

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 a single concise sentence with no redundancy. It front-loads the action and outcome efficiently.

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

Completeness2/5

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

The tool is simple with one parameter, but the lack of annotations and output schema places more burden on the description. It explains the core function but fails to provide usage context, safety profile, or expected results, making it incomplete for an agent deciding whether and how to invoke it.

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?

The input schema provides 100% coverage for the only parameter, port, described as 'Port number to inspect'. The description adds no extra semantic detail, so it does not improve on the schema but also does not conflict.

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

Purpose4/5

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

The description clearly states the tool finds processes bound to a given port and flags zombie/hung states, using a specific verb and resource. It does not explicitly distinguish from sibling tools like check_docker_status, but the primary function is unambiguous.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description implies a diagnostic scenario but lacks context on prerequisites, appropriate use cases, or exclusions.

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

pingA

Sanity check — returns pong plus the current server time.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

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 of behavioral disclosure. It clearly explains what the tool returns (pong + server time) and implies a read-only, non-destructive nature via 'sanity check.' It does not mention errors or side effects, but for a simple ping tool, this is adequate transparency.

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 a single, front-loaded sentence that efficiently communicates the tool's purpose and return value. Every word earns its place, and there is no unnecessary verbosity.

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

Completeness5/5

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

Given the tool's trivial complexity (no parameters, no output schema), the description fully covers what the tool does and what it returns. It is complete for an agent to select and invoke correctly without additional context.

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

Parameters4/5

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

The tool accepts zero parameters, so the schema is fully covered (100%). With 0 params, the baseline is 4, and the description correctly needs no parameter details. There is nothing missing.

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 function: a sanity check that returns 'pong' and the current server time. This is a specific verb+resource pairing and is easily distinguished from sibling tools like check_docker_status or diagnose_stuck_process.

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 phrase 'Sanity check' implies usage for verifying server connectivity, but there is no explicit guidance on when to use this tool versus alternatives. It does not name any exclusions or alternative tools, so the guidance is implied rather than explicit.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 4 tool updatesv1.0.0
    • First observedcheck_docker_status
    • First observedcheck_pnpm_workspace
    • First observeddiagnose_stuck_process
    • First observedping

TDQS

A3.6/5.0
Disambiguation5/5

Each tool targets a distinct concern: ping for liveness, Docker container status, pnpm workspace validation, and process diagnosis. No two tools overlap in purpose, so an agent can easily select the right one.

Naming Consistency4/5

Three tools use a verb_noun pattern (check_docker_status, check_pnpm_workspace, diagnose_stuck_process), but 'ping' deviates by using a standalone verb without a prefix. This is a minor inconsistency, but the naming remains intuitive.

Tool Count5/5

With only 4 tools, the server is tightly scoped for a development environment diagnostics tool. Each tool provides a specific health check, and the count feels appropriate without being too thin or overloaded.

Completeness3/5

The tools cover several common dev environment issues (Docker, pnpm, stuck processes), but the broad 'DevEnv Doctor' purpose suggests missing checks like system resource monitoring or package manager version validation. These are notable gaps but agents can work around them.

Maintenance

ActivitySlowing
ResponsivenessSyncing

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

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to autonomously check, diagnose, and recover Dockerized services through safe, tool-based ops without direct host shell access.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Checks your local development environment for common issues like wrong Node version, missing Docker, missing git config, missing .env keys, and busy ports, and provides fixes.
    6
    17
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables LLM clients to inspect local dev environments—Docker container health, pnpm workspace integrity, and stuck process detection—without manual terminal copy-pasting.
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables Claude to inspect and manage Docker containers locally, including listing containers, fetching status and logs, and checking system health. It also supports safely restarting whitelisted containers through a two-step confirmation flow with an audit trail.
    -

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/Madiocre/DevDoc-MCP-Nitro'

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