Progantt MCP Server
by supermafete
README.md
# Progantt MCP Server
[](https://github.com/supermafete/progantt-mcp/actions/workflows/ci.yml)
Remote [Model Context Protocol](https://modelcontextprotocol.io) server that exposes
[Progantt Flow](https://progantt.com) projects — Gantt charts, tasks, dependencies,
resources, tags and milestones — to AI clients such as Claude, Cursor, VS Code and
LM Studio.
This is the production server behind `https://mcp.progantt.com/mcp`. It is published
for transparency and audit: anyone can verify what the connector does with their data.
See [Scope and limitations](#scope-and-limitations) before assuming it is a drop-in
self-hosted product.
## What it does
- Speaks **Streamable HTTP** at `/mcp` (the modern MCP transport, POST + GET).
- Also supports the **legacy HTTP+SSE** transport at `/sse` and `/messages`.
- Acts as both an **OAuth 2.1 authorization server** and the **resource server**,
with server metadata discovery (RFC 8414 / RFC 9728) and dynamic client
registration + PKCE, so it can be added as a one-click connector.
- Reads and writes projects in Cloud Firestore through the Firebase Admin SDK,
on behalf of the authenticated user, respecting their role (owner, editor, viewer).
## Authentication
Two bearer schemes converge on a single principal:
| Scheme | Header | How the token is obtained |
| --- | --- | --- |
| API key | `Authorization: Bearer pgmcp_...` | Issued in the Progantt app (Profile → Connect AI). |
| OAuth 2.1 | `Authorization: Bearer pgmcpa_...` | DCR + PKCE against this server. |
Raw tokens are shown once and stored only as SHA-256 hashes. Access tokens are
opaque, bound to the canonical resource URI, and kept in Firestore.
## Endpoints
| Path | Purpose |
| --- | --- |
| `POST/GET/DELETE /mcp` | Streamable HTTP transport (JSON-RPC). |
| `GET /sse`, `POST /messages` | Legacy HTTP+SSE transport. |
| `/authorize`, `/token`, `/register`, `/revoke` | OAuth 2.1 authorization server. |
| `/.well-known/oauth-authorization-server` | RFC 8414 discovery. |
| `/.well-known/oauth-protected-resource/mcp` | RFC 9728 resource metadata. |
| `GET /oauth/request`, `POST /oauth/approve` | Browser half of the consent flow, called by the app's consent screen. |
| `GET /healthz` | Liveness probe. |
## Tools
27 tools, advertised with MCP annotations (`readOnlyHint` / `destructiveHint`):
- **Projects** — `list_projects`, `get_project`, `create_project`
- **Tasks** — `list_tasks`, `list_tasks_by_filter`, `add_task`, `update_task`,
`move_task`, `delete_task`, `bulk_add_tasks`
- **Hierarchy** — `get_task_tree`, `set_task_parent`, `create_task_group`
- **Analysis** — `get_dependency_graph`, `get_resource_load`
- **Milestones** — `list_milestones`, `add_milestone`, `update_milestone`, `delete_milestone`
- **Resources** — `list_resources`, `add_resource`, `delete_resource`, `assign_resources`
- **Tags** — `list_tags`, `add_tag`, `delete_tag`, `tag_tasks`
## Configuration
All configuration is supplied through environment variables. There are no secrets in
the source; Firestore and Auth credentials come from Application Default Credentials.
| Variable | Required | Description |
| --- | --- | --- |
| `FIRESTORE_PROJECT_ID` | yes | GCP/Firebase project holding Firestore and Auth. |
| `OAUTH_ISSUER` | yes | Public issuer URL, no path, e.g. `https://mcp.example.com`. |
| `MCP_RESOURCE_URL` | yes | Canonical resource URI, e.g. `https://mcp.example.com/mcp`. Access tokens are bound to it. |
| `APP_CONSENT_URL` | yes | URL of the web app's login + consent screen. |
| `CONSENT_ALLOWED_ORIGINS` | yes | Comma-separated CORS allowlist for `/oauth/request` and `/oauth/approve`. |
| `PORT` | no | HTTP port, default `8080`. |
| `SERVER_VERSION` | no | Version reported on `/healthz`, default `0.1.0`. |
`GOOGLE_APPLICATION_CREDENTIALS` is read by the Firebase Admin SDK when running
outside Google Cloud.
## Run locally
```bash
npm ci
npm run build
cp .env.example .env # then fill in the values
node --env-file=.env dist/index.js
```
`npm run dev` runs `tsc --watch` for iterative work.
## Docker
```bash
docker build -t progantt-mcp .
docker run -p 8080:8080 --env-file .env progantt-mcp
```
## Deployment notes
- **Single instance.** SSE sessions are held in process memory. Run one instance, or
add a shared session store before scaling out.
- The server is designed for Cloud Run behind an HTTPS load balancer; it sets
`trust proxy` so absolute URLs derived from requests are correct.
- OAuth state (clients, codes, access and refresh tokens) lives in Firestore, so no
signing secret has to be provisioned.
## Scope and limitations
This repository contains the server, not the product. To run it you also need:
1. A Firebase project with Firestore and Auth, and the project document schema the
server expects (`projects/{id}` with `data.tasks`, `data.milestones`,
`data.resources`, `data.tags`, plus `collaborators` and `permissions`).
2. A web app that implements the consent screen the OAuth flow delegates to
(`APP_CONSENT_URL`), calling `/oauth/request` and `/oauth/approve`.
3. Firestore security rules appropriate to your tenancy.
Those pieces are not part of this repository, so self-hosting is not turnkey.
## Privacy
Usage telemetry records the tool name, outcome and duration only. Task titles, project
names, tool arguments and any other user content are never recorded.
## License
[MIT](LICENSE) © Alt17 Mobile and Web Development SL
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues