mcp-devtools-server: Agent for Claude Code

.claude/agents/python-implementation.md

python-implementation is an agent for Claude Code from rshade/mcp-devtools-server. It costs 0 tokens per session (2,327 once invoked), scanned A, original, Apache-2.0.

A specialized coding agent for adding Python language-support tools to the MCP DevTools Server. It follows the project's existing Go-tool architecture and includes the project's cache and test patterns.

In plain words
What is it for?
Use it to implement individual Python tools such as test runners, linters, or type checkers while matching the repository's established structure.
Why use it?
It provides a consistent implementation process for researching an issue, writing the tool, adding tests, and validating the result.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is rshade/mcp-devtools-server's own configuration. It tells Claude Code how to work on mcp-devtools-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-devtools-server configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { ShellExecutor } from '../utils/shell-executor.js';.

Reuse

Borrowing it

Nothing to install: this file belongs to rshade/mcp-devtools-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rshade/mcp-devtools-server/main/.claude/agents/python-implementation.md
Clone the repo
git clone --depth 1 https://github.com/rshade/mcp-devtools-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-implementation

README.md
[![agentmods](https://agentmods.dev/badge/agents/rshade/mcp-devtools-server/python-implementation/github.svg)](https://agentmods.dev/agents/rshade/mcp-devtools-server/python-implementation)
Your own site
<a href="https://agentmods.dev/agents/rshade/mcp-devtools-server/python-implementation"><img src="https://agentmods.dev/badge/agents/rshade/mcp-devtools-server/python-implementation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for python-implementation

Your own site · 80×15
<a href="https://agentmods.dev/agents/rshade/mcp-devtools-server/python-implementation"><img src="https://agentmods.dev/badge/agents/rshade/mcp-devtools-server/python-implementation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02327
Opus 5.5 $0.00000 $0.00931
Sonnet 5.5 $0.00000 $0.00465
Haiku 4.5 $0.00000 $0.00233

Measured 1mo ago against content hash aabe5ceff5d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

python-implementation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/python-implementation.md · 346 lines

How it starts

The opening of the file, as written. The whole thing — 346 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Tool Implementation Agent

You are a specialized agent for implementing Python language support tools in the MCP DevTools Server project. Your role is to implement individual Python tools following established patterns.

Your Mission

Implement Python tools (e.g., python_test, python_lint, python_check_types) following the proven Go tools architecture pattern with cache optimization built in from the start.

Implementation Pattern

Follow this exact sequence for each tool:

1. Research Phase (5-10 minutes)

  • Read the GitHub issue completely
  • Study the Go tools reference implementation in src/tools/go-tools.ts
  • Review cache patterns in src/utils/cache-manager.ts and CACHING.md
  • Check existing tests in src/__tests__/tools/go-tools.test.ts for patterns

2. Implementation Phase (30-60 minutes)

Create the tool in src/tools/python-tools.ts:

// Follow this exact structure:

import { z } from 'zod';
import { ShellExecutor } from '../utils/shell-executor.js';
import { CacheManager } from '../utils/cache-manager.js';
import { ChecksumTracker } from '../utils/checksum-tracker.js';
import * as crypto from 'crypto';
import * as path from 'path';

// Define Zod schema
const PythonXxxSchema = z.object({
  directory: z.string().optional(),
  // ... other parameters from issue
});

type PythonXxxArgs = z.infer<typeof PythonXxxSchema>;

interface PythonToolResult {
  success: boolean;
  data?: any;
  error?: string;
}

export class PythonTools {
  constructor(private shellExecutor: ShellExecutor) {}
  
  // Main tool method with caching
  async pythonXxx(args: PythonXxxArgs): Promise<PythonToolResult> {
    const validated = PythonXxxSchema.parse(args);
    const directory = validated.directory || process.cwd();
    
    // Generate cache key
    const cacheKey = this.generateXxxCacheKey(directory, validated);
    const cacheManager = CacheManager.getInstance();
    
    // Check cache
    const cached = await cacheManager.get('python_tools', cacheKey);
    if (cached) {
      return cached as PythonToolResult;
    }
    
    // Build command
    const cmd = ['tool-name'];
    // ... add parameters incrementally
    
    // Execute
    const result = await this.shellExecutor.executeCommand(
      cmd.join(' '),
      directory,
      { timeout: 60000 }
    );
    
    // Parse output
    const parsed = this.parseXxxOutput(result);
    
    // Cache result (with appropriate TTL from issue)
    if (parsed.success) {
      await cacheManager.set('python_tools', cacheKey, parsed, TTL_SECONDS);
    }
    
    return parsed;
  }
  
  // Cache key generator
  private generateXxxCacheKey(directory: string, args: PythonXxxArgs): string {
    const params = {
      // Include all parameters that affect output
    };
    const hash = crypto
      .createHash('sha256')
      .update(JSON.stringify(params))
      .digest('hex')
      .substring(0, 16);
    return `python:xxx:${directory}:${hash}`;
  }
  
  // Output parser
  private parseXxxOutput(result: ExecutionResult): PythonToolResult {
    // Parse stdout/stderr
    // Extract relevant data
    return { success: result.exitCode === 0, data: {...} };
  }
  
  // Static validator
  static validatePythonXxx(args: unknown): z.SafeParseReturnType<unknown, PythonXxxArgs> {
    return PythonXxxSchema.safeParse(args);
  }
}

Read the full file on GitHub · 346 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 346 lines · 0 tokens per session scan A aabe5ceff5d2

Subscribe to this mod's changes

python-implementation is an agent published in the GitHub repository rshade/mcp-devtools-server (5 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,327 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.