Skip to main content
Glama
Taiga MCP IAM

Taiga MCP IAM

by RockyCott
README.md
# Taiga MCP IAM

<p align="center">
  <img
    src="docs/assets/taiga-mcp-iam.png"
    alt="Taiga MCP IAM - AI assistants connected to Taiga"
    width="100%"
  />
</p>

**Use Taiga from your assistant, with the same project access you have in Taiga.**

Connect an MCP client to Taiga to explore projects, find the right assignee,
draft a user story, or review a plan before applying multiple changes. Run a
personal loopback instance, use your Taiga session directly, or give each member
of a team their own sign-in with Keycloak.

| Work | What the server provides |
| --- | --- |
| Find work | Projects, backlog, epics, milestones, issues, tasks, and item history |
| Edit stories | Tags, assignees, point estimates, comments, and epic relationships |
| Resolve references | Visible project numbers, internal IDs, and accent-insensitive member search |
| Draft and validate | Agile prompts, reusable templates, and deterministic user story checks |
| Apply a plan | Preview a multi-step change, approve it in the browser, and execute it once |

```mermaid
flowchart LR
    Client["MCP client"] --> MCP["Taiga MCP IAM"]
    Browser["Link account or approve a plan"] --> MCP
    Keycloak["Keycloak for team sign-in"] --> MCP
    MCP --> Taiga["Your Taiga instance"]
    MCP --> Postgres[("PostgreSQL")]
```

## Start locally

You need Python 3.12 or later, [uv](https://docs.astral.sh/uv/), and Docker with
Compose. PostgreSQL stores integration state and workflow approvals.

```bash
uv sync --frozen --all-extras
uv run python scripts/bootstrap_local.py
```

Set the following values in the generated `.env` for **personal mode**. Keep the
generated `TAIGA_MCP_LOCAL_MCP_TOKEN` and replace the Taiga URLs if you use a
self-hosted instance.

```dotenv
TAIGA_MCP_AUTH_PROVIDER=local
TAIGA_MCP_LOCAL_USERNAME=<your-taiga-username>
TAIGA_MCP_LOCAL_PASSWORD=<your-taiga-password>
```

```bash
docker compose -f compose.yaml -f compose.dev.yaml up -d --build --wait
curl --fail http://localhost:8000/readyz
```

Connect your client to `http://localhost:8000/mcp` over Streamable HTTP and send
the generated token as `Authorization: Bearer <token>`. To run the bundled
read-only smoke test, load that token as `MCP_ACCESS_TOKEN` in your shell and run
`uv run python scripts/mcp_client.py --bearer`.

## Choose a sign-in mode

| `TAIGA_MCP_AUTH_PROVIDER` | What the client sends | Taiga identity |
| --- | --- | --- |
| `keycloak` | A Keycloak OAuth access token | Each user links their own Taiga account in the browser |
| `taiga` | A Taiga login session token | The account that owns the session |
| `local` | A separate server-configured bearer token | One named account configured on the loopback server |

The [authentication guide](docs/authentication/README.md) covers all three modes.
See the [deployment guide](docs/deployment/README.md) for a local Keycloak realm
and HTTPS reverse proxies, and [client setup](docs/clients/README.md) for web and
terminal clients.

## First tools to try

1. Call `get_taiga_connection_status`. If Keycloak reports an unlinked account,
   use `get_account_linking_instructions` and open the returned URL.
2. Find the project with `list_projects` or `get_project_by_slug`.
3. Read a story such as `#42` with `get_user_story_by_ref`, passing the project
   ID and the visible reference.
4. To create a story, use `prepare_user_story` and `validate_user_story`, check
   optional values with the user, then call `create_user_story`.

Read the [tool catalog](docs/tools/catalog.md), [prompt catalog](docs/prompts/catalog.md),
or [workflow guide](docs/workflows/README.md) for details.

## Contribute

See [CONTRIBUTING](CONTRIBUTING.md) for development and tests and
[SECURITY](SECURITY.md) for reporting a vulnerability. [MIT License](LICENSE)