Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,13 @@ export default defineConfig({
{ label: "Tiger Cloud essentials", link: "/learn/tiger-cloud/tiger-cloud-essentials" },
],
},
{
label: "Tiger CLI and MCP",
collapsed: true,
items: [
{ label: "Tiger CLI and Tiger MCP", link: "/learn/tiger-cli-mcp" },
],
},
{
label: "Capabilities and comparison",
collapsed: true,
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/get-started/quickstart/mcp-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { NumberedList, NumberedItem } from "@components/NumberedList";
import RESTPrereqs from "../../../../partials/_prereqs-cloud-account-only.mdx";
import { Prerequisites } from "@components/Prerequisites";

{C.MCP_LONG} gives your AI agent access to {C.CLOUD_LONG} so you can manage {C.SERVICE_SHORT}s and query your data using natural language.
{C.MCP_LONG} gives your AI agent access to {C.CLOUD_LONG} so you can manage {C.SERVICE_SHORT}s and query your data using natural language. For how {C.MCP_LONG} compares to {C.CLI_LONG} and where each fits, see [{C.CLI_LONG} and {C.MCP_LONG}](/learn/tiger-cli-mcp).

{C.MCP_LONG} is built into the {C.CLI_LONG} binary. Alongside tools to manage {C.SERVICE_SHORT}s and run SQL, it includes built-in skills (for example, schema design, {C.HYPERTABLE} setup, and migration planning) and is wired to {C.COMPANY} documentation, so your AI agent can design, analyze, and recommend improvements with up-to-date guidance. This page walks you through installing {C.CLI_LONG}, configuring authentication for {C.MCP_LONG}, and managing {C.CLOUD_LONG} resources from your AI agent.

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/get-started/quickstart/rest-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import * as C from "@constants";
import RESTGetStarted from "../../../../partials/_devops-rest-api-get-started.mdx";

Use {C.REST_LONG} to build your own integrations or when you need language-native access from an application. The [{C.CLI_LONG}](/get-started/quickstart/tiger-cli) is a convenience wrapper over a subset of this API; the REST API is the complete surface.
Use {C.REST_LONG} to build your own integrations or when you need language-native access from an application. The [{C.CLI_LONG}](/get-started/quickstart/tiger-cli) is a convenience wrapper over a subset of this API; the REST API is the complete surface. For how the REST API, {C.CLI_LONG}, and {C.MCP_LONG} compare, see [{C.CLI_LONG} and {C.MCP_LONG}](/learn/tiger-cli-mcp).

Check warning on line 12 in src/content/docs/get-started/quickstart/rest-api.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: Google.Acronyms

Spell out 'REST', if it's unfamiliar to the audience.

Check warning on line 12 in src/content/docs/get-started/quickstart/rest-api.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: Google.Acronyms

Spell out 'REST', if it's unfamiliar to the audience.

<RESTGetStarted />

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/get-started/quickstart/tiger-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sidebar:
import * as C from "@constants";
import CLIGetStarted from "../../../../partials/_devops-cli-get-started.mdx";

{C.CLI_LONG} is a command-line interface for managing {C.CLOUD_LONG} programmatically. It lets you, your scripts, and AI agents provision, configure, and manage {C.SERVICE_LONG}s. {C.CLI_LONG} calls {C.REST_LONG} under the hood and bundles {C.MCP_LONG} for AI agents.
{C.CLI_LONG} is a command-line interface for managing {C.CLOUD_LONG} programmatically. It lets you, your scripts, and AI agents provision, configure, and manage {C.SERVICE_LONG}s. {C.CLI_LONG} calls {C.REST_LONG} under the hood and bundles {C.MCP_LONG} for AI agents. For how these compare and where each fits, see [{C.CLI_LONG} and {C.MCP_LONG}](/learn/tiger-cli-mcp).

<CLIGetStarted />

Expand Down
69 changes: 69 additions & 0 deletions src/content/docs/learn/tiger-cli-mcp/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
title: Tiger CLI and Tiger MCP

Check warning on line 2 in src/content/docs/learn/tiger-cli-mcp/index.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: TigerData.ProductConstants

Use the constant 'C.CLI_LONG' instead of the literal 'Tiger CLI' in prose.
description: Understand Tiger CLI and Tiger MCP, how they compare to the REST API, and where each fits in your workflow

Check warning on line 3 in src/content/docs/learn/tiger-cli-mcp/index.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: Google.Acronyms

Spell out 'REST', if it's unfamiliar to the audience.
products: [cloud]
keywords: [Tiger CLI, Tiger MCP, AI agent, REST API]
---

import * as C from "@constants";
import { Callout } from "@stainless-api/docs/components";

{C.CLI_LONG} and {C.MCP_LONG} let you manage {C.CLOUD_LONG} without opening {C.CONSOLE}. You work from your terminal, from a script, or from an AI coding tool such as Claude Code, Cursor, or Codex. Both connect to the same platform and share one login, so anything you can do from the command line, an agent can do too.

To install them and create your first {C.SERVICE_SHORT}, see [Get started with {C.CLI_LONG}](/get-started/quickstart/tiger-cli) and [Integrate {C.CLOUD_LONG} with your AI agent](/get-started/quickstart/mcp-cli).

## What each tool is

The three build on each other, from the raw API up to natural language:

- **{C.REST_LONG}**: the HTTP API for {C.CLOUD_LONG} and the base layer the other tools build on. It's the complete surface, so call it directly when you build your own integration or need access from your application's language. See the [{C.REST_LONG} reference](/reference/tiger-cloud-rest).
- **{C.CLI_LONG}**: a command-line interface that wraps a subset of {C.REST_LONG}. A single binary manages your {C.SERVICE_SHORT}s, replicas, {C.VPC}s, and related infrastructure, and connects you to your databases to run SQL. Every command is explicit and repeatable, which suits scripting, CI/CD, and daily operations.
- **{C.MCP_LONG}**: a Model Context Protocol server that ships inside the {C.CLI_LONG} binary. It gives an AI agent typed tools to manage {C.SERVICE_SHORT}s and run SQL, a set of skills for {C.PG} and {C.TIMESCALE_DB} work such as schema design and {C.HYPERTABLE} setup, and search across {C.COMPANY} documentation. An agent can use it both to act on your database and to advise you about it in plain language.

<Callout variant="note" title="One install">
{C.MCP_LONG} ships inside {C.CLI_LONG}, so installing `tiger` gives you both the command line and the MCP server. They share the same login and the same permissions.
</Callout>

## When to use which

| You want to... | Use |

Check warning on line 29 in src/content/docs/learn/tiger-cli-mcp/index.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: Google.Ellipses

In general, don't use an ellipsis.
| --- | --- |
| Automate or repeat operations in scripts or CI/CD | {C.CLI_LONG} |
| Work in natural language, or get design and optimization help | {C.MCP_LONG} |
| Build a custom integration in your own language | {C.REST_LONG} |

### How {C.CLI_LONG} and {C.MCP_LONG} work together

The two tools share a login and overlap on most operations, but each does something the other can't.

{C.MCP_LONG} can reason about your database. Through its skills and documentation search, an agent designs schemas, finds {C.HYPERTABLE} candidates, plans migrations, and recommends improvements in plain language. {C.CLI_LONG} has no command for any of that.

{C.CLI_LONG} gives you precise, repeatable execution: interactive database sessions, connection strings, and commands you can commit to a script or pipeline. An agent working through {C.MCP_SHORT} is non-deterministic, so it suits exploration and design more than automation.

Many workflows use both. An agent explores your data and proposes a change through {C.MCP_SHORT}, then you apply and verify it with {C.CLI_SHORT}.

## Where they fit in your workflow

Between them, {C.CLI_LONG} and {C.MCP_LONG} cover the whole lifecycle of working with {C.CLOUD_LONG}. Most operations work from either tool. Setup runs through {C.CLI_LONG}, and design and review belong to {C.MCP_LONG}.

- Set up: install and authenticate {C.CLI_LONG}, then connect your agent. {C.MCP_LONG} runs once {C.CLI_LONG} is in place.
- Build: create {C.SERVICE_SHORT}s and run the SQL to add {C.HYPERTABLE}s, {C.CAGG}s, {C.JOB}s, and policies from either tool, or ask {C.MCP_LONG} to design them for you.

Check warning on line 50 in src/content/docs/learn/tiger-cli-mcp/index.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: Google.Acronyms

Spell out 'JOB', if it's unfamiliar to the audience.

Check warning on line 50 in src/content/docs/learn/tiger-cli-mcp/index.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: Google.Acronyms

Spell out 'CAGG', if it's unfamiliar to the audience.
- Validate: fork a {C.SERVICE_SHORT} to test a change safely from either tool, or ask {C.MCP_LONG} to review a schema against best practices.
- Operate: run queries, rotate credentials, resize, and check the state of a {C.SERVICE_SHORT} from either tool.
- Debug: pull logs and run diagnostic queries from either tool.

## Work safely with AI agents

Because {C.MCP_LONG} lets an agent act on your database, decide up front what it may do. Read-only mode is the main control: it blocks the agent's write access, not your own.

- Turn on read-only mode so an agent can query and explore but cannot write data, change schemas, or alter infrastructure. See [Restrict {C.MCP_LONG} to read-only](/get-started/quickstart/mcp-cli#restrict-tiger-mcp-to-read-only).
- Point an agent at a fork or a {C.READ_REPLICA} for exploratory work, so production is never in the path.
- Ask for a single computed answer rather than a raw export, so the database does the work and less data leaves it.

## Next steps

- [Get started with {C.CLI_LONG}](/get-started/quickstart/tiger-cli): Install the CLI, authenticate, and create your first {C.SERVICE_SHORT} from the terminal.

Check warning on line 65 in src/content/docs/learn/tiger-cli-mcp/index.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: TigerData.ProductConstants

Use the constant 'C.CLI_SHORT' instead of the literal 'CLI' in prose.
- [Integrate {C.CLOUD_LONG} with your AI agent](/get-started/quickstart/mcp-cli): Set up {C.MCP_LONG} and connect it to Claude Code, Cursor, or another client.
- [Get started with the REST API](/get-started/quickstart/rest-api): Manage the same resources over HTTP for custom integrations.

Check warning on line 67 in src/content/docs/learn/tiger-cli-mcp/index.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: Google.Acronyms

Spell out 'REST', if it's unfamiliar to the audience.
- [{C.CLI_LONG} reference](/reference/tiger-cloud/tiger-cli) and [{C.MCP_LONG} reference](/reference/tiger-cloud/tiger-mcp): Every command, tool, flag, and parameter.
- [File an issue in the {C.CLI_LONG} repo](https://github.com/timescale/tiger-cli/issues/new): Report bugs or request features to help shape the open-source {C.CLI_LONG} and {C.MCP_LONG}.
2 changes: 1 addition & 1 deletion src/content/docs/reference/tiger-cloud/tiger-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{C.CLI_LONG} is a command-line interface that you use to manage {C.CLOUD_LONG} resources including VPCs, {C.SERVICE_SHORT}s, read replicas, and related infrastructure. {C.CLI_LONG} calls {C.REST_LONG} to communicate with {C.CLOUD_LONG}.

To install {C.CLI_SHORT}, configure authentication, and create your first {C.SERVICE_SHORT}, see [Get started with Tiger CLI](/get-started/quickstart/tiger-cli). This page is the reference for every {C.CLI_SHORT} command and configuration parameter.
To install {C.CLI_SHORT}, configure authentication, and create your first {C.SERVICE_SHORT}, see [Get started with Tiger CLI](/get-started/quickstart/tiger-cli). This page is the reference for every {C.CLI_SHORT} command and configuration parameter. For an overview of {C.CLI_LONG} and {C.MCP_LONG}, see [{C.CLI_LONG} and {C.MCP_LONG}](/learn/tiger-cli-mcp).

Check warning on line 19 in src/content/docs/reference/tiger-cloud/tiger-cli.mdx

View workflow job for this annotation

GitHub Actions / Vale

Vale: TigerData.ProductConstants

Use the constant 'C.CLI_LONG' instead of the literal 'Tiger CLI' in prose.

{C.CLI_LONG} (which bundles {C.MCP_LONG}) is open source. [File an issue in the repo](https://github.com/timescale/tiger-cli/issues/new) to report bugs or request features and help shape the product.

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/reference/tiger-cloud/tiger-mcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import MCPCommands from "../../../../partials/_devops-mcp-commands.mdx";

{C.MCP_LONG} gives your AI agent access to {C.CLOUD_LONG} so you can manage {C.SERVICE_SHORT}s and query your data in natural language. It is built into the {C.CLI_LONG} binary.

To install and configure {C.MCP_LONG} for your AI agent, see [Integrate Tiger Cloud with your AI agent](/get-started/quickstart/mcp-cli). This page is the reference for the {C.MCP_SHORT} tools your agent can call.
To install and configure {C.MCP_LONG} for your AI agent, see [Integrate Tiger Cloud with your AI agent](/get-started/quickstart/mcp-cli). This page is the reference for the {C.MCP_SHORT} tools your agent can call. For an overview of {C.MCP_LONG} and {C.CLI_LONG}, see [{C.CLI_LONG} and {C.MCP_LONG}](/learn/tiger-cli-mcp).

## {C.MCP_LONG} tools

Expand Down
Loading