INNER CODE UNIT · Python

edit

thomwebb/gac · src/gac/cli.py:268

def edit(ctx: Any) -> None:
    """Set the editor for commit messages interactively. (Alias for 'editor')"""
    ctx.forward(editor_cli)


cli.add_command(edit)  # Add the edit alias


@click.command()
def serve() -> None:
    """Start the GAC MCP server (stdio transport).

    Exposes gac_status and gac_commit as MCP tools for AI agents.

    Usage in MCP client config:
        {"command": "uvx", "args": ["gac", "serve"]}
    """
    from gac.mcp.server import main as _mcp_main

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…