0.0.1 • Published 1 month ago

@servicetitan/anvil2-mcp v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

Anvil2 MCP Server

MCP server for accessing ServiceTitan's Anvil2 React component documentation.

Installation

Cursor

Install MCP Server

Manual Installation

Add the following to your Cursor settings JSON:

{
  "mcpServers": {
    "Anvil2": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@servicetitan/anvil2-mcp@latest"]
    }
  }
}

VS Code Installation

Command-line

code --add-mcp "{\"name\":\"Anvil2\",\"command\":\"npx\",\"args\":[\"-y\",\"@servicetitan/anvil2-mcp@latest\"]}"

URL Handler

You can also install by opening this link:

vscode:mcp/install?%7B%22name%22%3A%22Anvil2%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40servicetitan%2Fanvil2-mcp%40latest%22%5D%7D

Available Tools

get_all_components

Lists all available Anvil2 React components.

Parameters: None

Returns: JSON array of component names

get_component_by_name

Retrieves detailed documentation for a specific Anvil2 component.

Parameters:

  • name (string, required): The name of the Anvil2 component

Returns: Markdown-formatted documentation including design specs, usage guidelines, React implementation details, props, and examples.

get_full_documentation

Retrieves documentation for all components at once.

Parameters: None

Returns: Markdown-formatted documentation containing all Anvil2 components' documentation in a single response, including design specs, usage guidelines, React implementation details, props, and examples for each component.

Development

pnpm install
pnpm dev