Skip to main content
Glama
genpark-agent-codebase-ast-dependency-slicer-skill

genpark-agent-codebase-ast-dependency-slicer-skill

genpark-agent-codebase-ast-dependency-slicer-skill

Python 3.9+ License MIT MCP Compatible GenPark AI Zero Dependencies

🌐 GenPark MCP Hub • 📦 GenPark Official • 📖 Documentation


📌 Overview & Capability

genpark-agent-codebase-ast-dependency-slicer-skill is a deterministic, high-performance, zero-dependency Python tool and native Model Context Protocol (MCP) server designed for autonomous AI agents, multi-agent frameworks (LangGraph, CrewAI, AutoGen, OpenAI Swarm), and developer environments (Cursor, Windsurf, Claude Desktop).

Executive Capability: Multi-file AST dependency graph parser & minimum context slicer extracting symbol call-trees for coding agents.

⚡ Key Highlights

  • 🐍 Zero External pip Dependencies: Implemented entirely with pure Python standard library for instant zero-overhead execution.

  • 🔌 Native Model Context Protocol (MCP): Plugs directly into any MCP-compliant client via JSON-RPC 2.0 stdio.

  • ⚡ Sub-Millisecond Execution: Slashes token burn and latency by resolving routine agent tasks deterministically without frontier LLM round-trips.

  • 🛡️ Production-Hardened: Comprehensive error handling, boundary validation, and telemetry.


Related MCP server: tree-lens

🏗️ Architecture

graph LR
    Agent([🤖 Autonomous Agent / IDE]) -->|MCP Protocol / JSON-RPC| Server[⚡ genpark-agent-codebase-ast-dependency-slicer-skill Server]
    Server --> Core[🧠 Deterministic Processing Core]
    Core --> Out[📊 Actionable Result & Telemetry]
    Out --> Agent

🚀 Quickstart & Usage

1. Direct Python Client Execution

python example_usage.py

2. Programmatic Integration

from client import CodebaseASTDependencySlicer

client = CodebaseASTDependencySlicer()
result = client.run_benchmark_ast_slicing()
print(result)

🔌 Model Context Protocol (MCP) Setup

Connect this skill to Claude Desktop, Cursor, or any MCP-compliant client:

claude_desktop_config.json

{
  "mcpServers": {
    "genpark-agent-codebase-ast-dependency-slicer-skill": {
      "command": "python",
      "args": ["/path/to/genpark-agent-codebase-ast-dependency-slicer-skill/mcp_server.py"]
    }
  }
}

Direct MCP Testing

python mcp_server.py --test

📊 Technical Specifications

Parameter

Type

Required

Description

payload

string / dict

Yes

Primary context, code, schema, or content input

options

dict

No

Execution flags, compression ratios, or risk bounds


Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables LLM agents to query a codebase's structural knowledge (symbols, imports, call graphs, etc.) via MCP, reducing tokens and improving correctness compared to raw file access.
      73 npm
      7
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables LLM agents to navigate source code structurally via tree-sitter over MCP, offering outline-based reading, AST pattern search, workspace-scale symbol indexing, call graph analysis, and built-in security audit queries.
      15
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables coding agents to query a local-first code intelligence graph of Python repositories—covering functions, classes, modules, and their relationships—via MCP, supporting subgraph retrieval, caller lookup, and impact analysis without re-reading the codebase.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding agents to navigate and understand entire codebases through symbol-aware semantic retrieval and relational call graph traversal, supporting structural impact analysis and code modification workflows over MCP.
      Apache 2.0