> ## Documentation Index
> Fetch the complete documentation index at: https://docs.patch.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# How to build, test and publish on Patch

> The guide agents read first, as Markdown, with this environment's addresses. Needs no key. `for` is `mcp` (the default), as the MCP server's `guide` tool has it, or `cli`, which also says which `pch` command or API route does what each tool does.



## OpenAPI

````yaml /api-reference/openapi.json get /guide
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /guide:
    get:
      tags:
        - Releases
      summary: How to build, test and publish on Patch
      description: >-
        The guide agents read first, as Markdown, with this environment's
        addresses. Needs no key. `for` is `mcp` (the default), as the MCP
        server's `guide` tool has it, or `cli`, which also says which `pch`
        command or API route does what each tool does.
      parameters:
        - schema:
            type: string
            enum:
              - mcp
              - cli
            example: cli
          required: false
          name: for
          in: query
      responses:
        '200':
          description: The guide, in Markdown
          content:
            text/markdown:
              schema:
                type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.