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

# bazable mcp

> Start a Model Context Protocol server so AI coding agents can interact with Bazable natively.

Starts a **Model Context Protocol (MCP) server** that lets AI coding agents (Cursor, Claude Code, Copilot, and more) interact with Bazable natively.

Once started, the server listens on `stdin`/`stdout` for JSON-RPC requests and exposes production-ready tools that inspect your contract and run tests.

## Available tools

<AccordionGroup>
  <Accordion title="listEndpoints" icon="list">
    Returns all contracted endpoints with their HTTP methods and statuses.

    **Input:** none.
  </Accordion>

  <Accordion title="getEndpoint" icon="magnifying-glass">
    Returns the request and response schemas for a specific endpoint.

    **Input:** `method` (string), `url` (string).
  </Accordion>

  <Accordion title="inspect" icon="shield-check">
    Runs a full contract inspection (`bazable inspect --json --ci`) and returns violations as JSON.

    **Input:** none.
  </Accordion>

  <Accordion title="test" icon="flask">
    Runs mock tests on all endpoints (`bazable test --json --mock --all`) and returns pass/fail results.

    **Input:** none.
  </Accordion>
</AccordionGroup>

## Usage

```bash theme={null}
bazable mcp
```

## Options

<Info>
  This command takes no options.
</Info>

## Example

```bash theme={null}
bazable mcp
```

<Tip>
  Run [`bazable gen context`](/commands/generate-context) first to auto-configure Cursor and Cline with the MCP server.
</Tip>


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