Skip to content

Add MCP tools for Xdebug toggle #76

Open

Description

@claytoncollie

Problem

Local supports enabling/disabling Xdebug per site through its UI. Useful when the agent is debugging a hairy bug and wants to suggest the user attach a debugger — currently requires manual UI clicks to flip Xdebug on/off.

Proposal

  • enable_xdebug(siteId?)
  • disable_xdebug(siteId?)
  • get_xdebug_status(siteId?) → current state plus connection info (host, port, IDE key)

LocalApi additions

LocalApi.enableXdebug, disableXdebug, getXdebugStatus.

Acceptance criteria

  • State persists across site restarts
  • Status tool returns useful info (port, IDE key) for configuring an IDE
  • Errors clearly when site is halted
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions