{"id":50593146,"url":"https://github.com/pipefy/ai-toolkit","last_synced_at":"2026-06-05T12:01:20.115Z","repository":{"id":286910775,"uuid":"962913928","full_name":"pipefy/ai-toolkit","owner":"pipefy","description":"MCP server, CLI, and agent skills for Pipefy.","archived":false,"fork":false,"pushed_at":"2026-06-03T01:48:46.000Z","size":2176,"stargazers_count":24,"open_issues_count":27,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-03T03:17:15.939Z","etag":null,"topics":["ai-toolkit","cli","mcp-server","pipefy","sdk","skills"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pipefy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-04-08T21:42:59.000Z","updated_at":"2026-06-02T22:43:45.000Z","dependencies_parsed_at":"2026-04-24T00:01:59.938Z","dependency_job_id":null,"html_url":"https://github.com/pipefy/ai-toolkit","commit_stats":null,"previous_names":["gbrlcustodio/pipefy-mcp-server","pipefy/ai-toolkit"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pipefy/ai-toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipefy%2Fai-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipefy%2Fai-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipefy%2Fai-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipefy%2Fai-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pipefy","download_url":"https://codeload.github.com/pipefy/ai-toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pipefy%2Fai-toolkit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33939227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-toolkit","cli","mcp-server","pipefy","sdk","skills"],"created_at":"2026-06-05T12:01:19.391Z","updated_at":"2026-06-05T12:01:20.109Z","avatar_url":"https://github.com/pipefy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg\n    src=\"docs/images/pipefy-developers-banner.png\"\n    alt=\"Pipefy Developers — Where developers orchestrate intelligence\"\n    width=\"100%\"\n  /\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/pipefy/ai-toolkit/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/pipefy/ai-toolkit/actions/workflows/ci.yml/badge.svg\" alt=\"CI Status\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.python.org/downloads/\"\u003e\u003cimg src=\"https://img.shields.io/badge/python-3.11%2B-blue.svg\" alt=\"Python 3.11+\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/astral-sh/uv\"\u003e\u003cimg src=\"https://img.shields.io/badge/uv-package%20manager-blueviolet\" alt=\"uv package manager\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://modelcontextprotocol.io/introduction\"\u003e\u003cimg src=\"https://img.shields.io/badge/MCP-Server-orange\" alt=\"MCP Server\" /\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-Apache%202.0-blue.svg\" alt=\"License\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# pipefy-labs\n\nOpen-source toolkit for **Pipefy** developers: a Model Context Protocol (MCP) server for AI agents, a **`pipefy`** CLI for terminals and automation, a shared GraphQL SDK, and a catalog of agent skill playbooks.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#overview\"\u003eOverview\u003c/a\u003e •\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e •\n  \u003ca href=\"#repository-layout\"\u003eRepository layout\u003c/a\u003e •\n  \u003ca href=\"#mcp-server\"\u003eMCP server\u003c/a\u003e •\n  \u003ca href=\"#command-line-interface\"\u003eCLI\u003c/a\u003e •\n  \u003ca href=\"#agent-skills\"\u003eAgent skills\u003c/a\u003e •\n  \u003ca href=\"#documentation\"\u003eDocumentation\u003c/a\u003e •\n  \u003ca href=\"#development\"\u003eDevelopment\u003c/a\u003e •\n  \u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Overview\n\n| Component | Package / path | Purpose |\n|-----------|----------------|---------|\n| **MCP server** | `pipefy-mcp-server` | Exposes **149** tools to MCP clients (Cursor, Claude Desktop, Claude Code, and others). |\n| **CLI** | `pipefy-cli` | Terminal commands aligned with MCP capabilities; see [`docs/parity.md`](docs/parity.md). |\n| **SDK** | `pipefy-sdk` | Vendor GraphQL client, services, and models shared by MCP and CLI. |\n| **Skills** | [`skills/`](skills/) | Markdown playbooks (Anthropic Skills format) for common Pipefy workflows. |\n\nFeedback and issues: [GitHub Issues](https://github.com/pipefy/ai-toolkit/issues) · **dev@pipefy.com**\n\n---\n\n## Installation\n\n\u003e Pre-1.0 ships from this git repo via `uvx` and `uv tool install`. PyPI becomes the canonical source at **v1.0**. The current beta line is **`v0.2.0-beta.*`** (first tag: [`v0.2.0-beta.1`](https://github.com/pipefy/ai-toolkit/releases/tag/v0.2.0-beta.1)). Two install paths: the **Quick install** script below (resolves the latest GitHub Release at runtime and runs `uv tool install` for you), or **Claude Code** via the plugin marketplace.\n\u003e\n\u003e The CLI snippets below pin **`@latest`**, a moving git tag the release flow updates to point at the most recent release. To pin a specific version, swap `@latest` for a version tag (e.g. `@v0.2.0-beta.2`). The `--with pipefy-sdk @ ...#subdirectory=packages/sdk` / `pipefy-auth @ ...#subdirectory=packages/auth` flags are required pre-1.0: this repo is a uv workspace, and the workspace members are not yet published to PyPI, so uv needs them named explicitly. The flags go away at v1.0 (PyPI install).\n\nTwo auth paths:\n\n- **Human OAuth (interactive)**: `pipefy auth login` runs the browser flow and stores a session in your OS keychain. Works anywhere the `pipefy` CLI is on PATH (`uv tool install` once, any client can invoke it). Claude Code additionally exposes it as the `/pipefy:login` slash command via the plugin marketplace. Pipe membership is whatever the signed-in user already has.\n- **Service account (unattended / CI)**: provision a Service Account in [Pipefy Admin](https://app.pipefy.com/) (Admin → Service Accounts) and add that account to every pipe the tools should touch. Wire `PIPEFY_SERVICE_ACCOUNT_CLIENT_ID` and `PIPEFY_SERVICE_ACCOUNT_CLIENT_SECRET` into the client config below.\n\nFull env-var reference and `config.toml` precedence: [`docs/config.md`](docs/config.md).\n\n### Quick install (recommended)\n\nOne command installs the CLI + MCP server, optionally adds skills, and registers the MCP server in your client config:\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/pipefy/ai-toolkit/main/install.sh \\\n  | sh -s -- --client cursor\n```\n\nReplace `--client cursor` with one of: `claude-code`, `claude-desktop`, `codex`, or `none` (prints the snippet to paste). Useful flags:\n\n- `--yes` skip all confirmation prompts.\n- `--no-skills` skip the `npx skills add` step.\n- `--version vX.Y.Z` pin a specific [GitHub Release](https://github.com/pipefy/ai-toolkit/releases) tag (default: most recent prerelease or release).\n- `--dry-run` print every command without executing.\n- `--allow-root` opt-in for root execution (refused by default).\n\nAfter install, run `pipefy auth login` to authenticate (`--device` on headless systems). The installer puts `pipefy-mcp-server` on PATH, so each client's config collapses to `{\"command\": \"pipefy-mcp-server\"}`.\n\n### Claude Code\n\n```text\n/plugin marketplace add pipefy/ai-toolkit\n/plugin install pipefy\n/pipefy:install\n/pipefy:login\n```\n\n`/plugin install pipefy` registers the MCP server and the `/pipefy:install` + `/pipefy:login` slash commands. `/pipefy:install` runs `uv tool install` once to put `pipefy` on PATH (idempotent). `/pipefy:login` runs the OAuth browser flow. For hand-wired setups (paste-into-config blocks per client, the macOS `errSecParam` keychain note, the local-clone alternative for contributors), see [`packages/mcp/README.md`](packages/mcp/README.md).\n\n### CLI\n\nAd-hoc:\n\n```sh\nuvx \\\n  --with \"pipefy-sdk @ git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/sdk\" \\\n  --with \"pipefy-auth @ git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/auth\" \\\n  --from \"git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/cli\" \\\n  pipefy-cli --help\n```\n\nPermanent install:\n\n```sh\nuv tool install \\\n  --with \"pipefy-sdk @ git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/sdk\" \\\n  --with \"pipefy-auth @ git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/auth\" \\\n  \"git+https://github.com/pipefy/ai-toolkit@latest#subdirectory=packages/cli\"\npipefy --install-completion bash    # or zsh, fish\npipefy auth login                   # browser OAuth, session in OS keychain\n```\n\nCLI deep-dives (auth precedence, `--token` / `PIPEFY_TOKEN`, parity matrix): [`packages/cli/README.md`](packages/cli/README.md) and [`docs/cli/`](docs/cli/README.md).\n\n### Skill catalog install\n\n```sh\nnpx skills add pipefy/ai-toolkit                           # all skills\nnpx skills add pipefy/ai-toolkit --skill pipefy-pipes-and-cards\n```\n\nCatalog and authoring guide: [`skills/README.md`](skills/README.md).\n\n### Post-1.0 (PyPI preview)\n\n```sh\nuvx pipefy-mcp-server\nuv tool install pipefy-cli\n```\n\nDeprecation and semver (post-1.0): [`docs/DEPRECATION.md`](docs/DEPRECATION.md).\n\n---\n\n## Repository layout\n\n`uv` workspace with three Python packages and a skills catalog. **`pipefy-sdk`** is the vendor GraphQL layer; MCP and CLI depend on it and do not import each other.\n\n| Path | Distribution | Role |\n|------|--------------|------|\n| [`packages/sdk/`](packages/sdk/) | `pipefy-sdk` | GraphQL transport, services, queries, Pydantic models. [Package README](packages/sdk/README.md) |\n| [`packages/mcp/`](packages/mcp/) | `pipefy-mcp-server` | MCP tool registration and server lifecycle. [Package README](packages/mcp/README.md) |\n| [`packages/cli/`](packages/cli/) | `pipefy-cli` | Typer CLI (`pipefy` command). [Package README](packages/cli/README.md) |\n| [`skills/`](skills/) | — | Agent skill playbooks. [Catalog](skills/README.md) |\n\n---\n\n## MCP server\n\nThe server registers **149 tools** across ten domains. Canonical names: `PIPEFY_TOOL_NAMES` in [`packages/mcp/src/pipefy_mcp/tools/registry.py`](packages/mcp/src/pipefy_mcp/tools/registry.py).\n\nTool descriptions and `Args:` blocks come from Python docstrings (what MCP clients show to models). Per-area reference docs cover parameters, edge cases, and cross-cutting behavior.\n\n**Shared conventions** (pagination, IDs, permissions, error shape): [`docs/mcp/tools/cross-cutting.md`](docs/mcp/tools/cross-cutting.md).\n\n| Domain | Tools | Summary | Reference |\n|--------|:-----:|---------|-----------|\n| **Pipes \u0026 cards** | 37 | Pipes, phases, fields, labels, cards, field conditions, attachments. | [docs](docs/mcp/tools/pipes-and-cards.md) |\n| **Database tables** | 17 | Tables, records, schema, table-record attachments. | [docs](docs/mcp/tools/database-tables.md) |\n| **Relations** | 8 | Pipe and card relations. | [docs](docs/mcp/tools/relations.md) |\n| **Reports** | 17 | Pipe and organization reports, async exports. | [docs](docs/mcp/tools/reports.md) |\n| **Automations \u0026 AI** | 22 | Automations, AI automations, AI agents, validators. | [docs](docs/mcp/tools/automations-and-ai.md) |\n| **Observability** | 10 | Logs, usage, credits, job exports. | [docs](docs/mcp/tools/observability.md) |\n| **Members, email \u0026 webhooks** | 11 | Membership, inbox email, webhooks. | [docs](docs/mcp/tools/members-email-webhooks.md) |\n| **Organization** | 1 | Organization metadata. | [docs](docs/mcp/tools/organization.md) |\n| **Portals** | 20 | Portal read/CRUD, pages, elements, sub-portals (publish/unpublish). | [docs](docs/mcp/tools/portal.md) |\n| **Introspection** | 5 | Schema discovery and raw GraphQL. | [docs](docs/mcp/tools/introspection.md) |\n\n---\n\n## Command-line interface\n\nThe **`pipefy`** CLI mirrors shipped MCP capabilities where parity is defined in **[`docs/parity.md`](docs/parity.md)**. Conventions: Rich output by default, **`--json`** for scripts, **`--yes`** on destructive commands.\n\n```sh\npipefy pipe list --json\npipefy card get 123456789\npipefy introspect query --name getPipe\n```\n\nCLI-specific guides: **[`docs/cli/`](docs/cli/README.md)** (including [introspect-then-execute](docs/cli/self-healing.md)).\n\n---\n\n## Agent skills\n\nThe [`skills/`](skills/) directory holds workflow playbooks: prerequisites, tool tables (MCP + CLI), steps, and success criteria. Compatible with any agent that reads Markdown (Cursor, Claude Code, Codex, and others). Distribution is via [`skills.sh`](https://github.com/vercel-labs/skills) (55+ agent targets); install commands are under [Installation](#installation) above.\n\nFull catalog: [`skills/README.md`](skills/README.md). Authoring: [`skills/AGENTS.md`](skills/AGENTS.md). Contributions: [`CONTRIBUTING.md`](CONTRIBUTING.md).\n\n---\n\n## Documentation\n\n| Document | Description |\n|----------|-------------|\n| [`docs/README.md`](docs/README.md) | Index by surface (MCP, CLI, SDK). |\n| [`docs/config.md`](docs/config.md) | `PIPEFY_*` environment variables, `config.toml` schema and path, precedence chain. |\n| [`docs/parity.md`](docs/parity.md) | MCP tool ↔ CLI command matrix. |\n| [`docs/MIGRATION.md`](docs/MIGRATION.md) | Notes for existing MCP users. |\n| [`AGENTS.md`](AGENTS.md) | Repository guidelines for contributors and agents. |\n| [`RELEASE.md`](RELEASE.md) | Versioning and release process. |\n\n---\n\n## Development\n\nInstall [`uv`](https://docs.astral.sh/uv/getting-started/installation/) if you don't have it, then from the repository root:\n\n```bash\nuv sync\n[[ -f .env ]] || cp .env.example .env   # first-time setup; then fill in PIPEFY_SERVICE_ACCOUNT_*\nuv run pytest -m \"not integration\"    # unit tests (no live API)\nuv run pytest -m integration -v     # live API (requires PIPEFY_*)\nuv run ruff check . \u0026\u0026 uv run ruff format .\n```\n\n**MCP Inspector** (protocol debugging):\n\n```bash\nnpx @modelcontextprotocol/inspector uv --directory . run pipefy-mcp-server\n```\n\n**Adding an MCP tool:** implement under `packages/mcp/src/pipefy_mcp/tools/`, register in `ToolRegistry`, add the name to `PIPEFY_TOOL_NAMES`, and ship the matching CLI command (or document a deferral in `docs/parity.md`). See [`AGENTS.md`](AGENTS.md) for the full TDD workflow.\n\n---\n\n## Contributing\n\nContributions are welcome via issues and pull requests.\n\n| Area | How to contribute |\n|------|-------------------|\n| **Skills** | Markdown only — see [`CONTRIBUTING.md`](CONTRIBUTING.md). |\n| **MCP / CLI / SDK** | Follow [`AGENTS.md`](AGENTS.md) and [`docs/parity.md`](docs/parity.md). |\n| **Field mapping gaps** | Open an issue with the field type and expected behavior. |\n| **Existing MCP setups** | [`docs/MIGRATION.md`](docs/MIGRATION.md) — configuration remains compatible. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpipefy%2Fai-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpipefy%2Fai-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpipefy%2Fai-toolkit/lists"}