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

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

by Alpha-Park

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: Graft

πŸ—οΈ 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
      Standalone MCP server for code structure analysis using tree-sitter. Directory trees, symbol definitions, and call graphs without reading raw source files. Supports Rust, Python, Go, Java, TypeScript, Fortran, JavaScript, C/C++, and C#. Benchmarked up to 68% fewer tokens vs native tools.
      7
      Apache 2.0
    • A
      license
      B
      quality
      D
      maintenance
      Local-first codebase context engine that parses code into a ranked dependency graph and serves it to AI tools via MCP for deep structural understanding.
      5
      13 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables people and AI agents to query local code repositories as graphs through stdio MCP tools for project listing, search, dependency tracing, impact analysis, bridge detection, node inspection, bounded code reading, and optional LSP definition/reference lookups.
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables coding agents to run deterministic, zero-dependency AST static analysis over source code, building call graphs and dependency metrics to find orphaned functions, unreachable methods, breaking API surface diffs, and token-bloat clusters, then return a structured refactoring plan. It plugs into MCP clients like Claude Desktop, Cursor, and Windsurf via a single Python entrypoint.
      -