Skip to main content

Crate aptu_coder

Crate aptu_coder 

Source
Expand description

Rust MCP server for code structure analysis using tree-sitter.

This crate exposes seven MCP tools for multiple programming languages:

Analyze family:

  • analyze_directory: Directory tree with file counts and structure
  • analyze_file: Semantic extraction (functions, classes, imports)
  • analyze_symbol: Call graph analysis (callers and callees)
  • analyze_module: Lightweight function and import index

Edit family:

  • edit_overwrite: Create or overwrite files
  • edit_replace: Replace text blocks in files

Exec family:

  • exec_command: Run shell commands with progress notifications

Key entry points:

Languages supported: Astro, C/C++, C#, CSS, Fortran, Go, HTML, Java, JavaScript, JSON, Kotlin, Markdown, Python, Rust, TOML, TSX, TypeScript, YAML.

Modules§

logging
MCP logging integration via tracing.
metrics
Metrics collection and daily-rotating JSONL emission.
otel

Structs§

CodeAnalyzer
MCP server handler that wires the four analysis tools to the rmcp transport.
ExecCommandParams
ShellOutput

Constants§

STDIN_MAX_BYTES