Skip to content

Add dead_code MCP tool #428

Closed
Closed

Description

@ajianaz

Part of #426.

Task

Expose dead code detection as MCP tool for AI agents.

Spec

Tool name: dead_code
Parameters:

  • include_tests (bool, default false)
  • min_lines (int, default 0)
  • kind (string, optional — filter by symbol kind)

Implementation

  1. Add to src/mcp/tools.rs list_tools() — name, description, input schema
  2. Add handler in handle_tool_call() — calls same logic as CLI
  3. Return JSON array of dead symbols

Acceptance

  • MCP tool appears in list_tools
  • Returns structured JSON with name, kind, file, line
  • Works via stdio MCP protocol

Est: 0.5 days

Activity

  1. added
    scope:code-intel
    on Jul 29, 2026
  2. ajianaz commented on Aug 1, 2026

    @ajianaz
    CollaboratorAuthor

    Implemented. Closing as completed — feature verified in codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurescope:code-intel

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions