Skip to main content
Glama

Kotelkin Planfix MCP

Русский | English

MCP-сервер для работы с Planfix REST API.

Проект подключает Planfix к MCP-клиентам через STDIO transport. После настройки токена MCP-клиент может создавать и читать задачи, обновлять сроки и статусы, работать с комментариями, чеклистами, проектами, справочниками, процессами, объектами, кастомными полями и DataTags.

Эта версия документации описывает пакет v0.1.3, основанный на опубликованном baseline v0.1.2; страница Releases показывает актуальный опубликованный tag. Это локальный MCP-сервер по STDIO, не hosted-сервис.

Что Это Даёт

  • Один MCP-сервер для Planfix.

  • 58 инструментов MCP поверх Planfix REST API.

  • Запуск через STDIO, без отдельного web-сервера.

  • Авторизация через Planfix bearer token.

  • Локальные проверки без вызова Planfix.

  • Live QA через настоящий MCP STDIO-сервер на тестовом Planfix-аккаунте.

Related MCP server: Dependency-Track MCP Server

Кому Это Полезно

  • Пользователям Planfix, которые хотят подключить свой аккаунт к MCP-клиенту.

  • Разработчикам, которым нужен практичный и понятный MCP-сервер для Planfix.

  • Тем, кто хочет автоматизировать задачи, комментарии, чеклисты, проекты и справочники Planfix через AI-инструменты.

Требования

  • Python 3.12+

  • Аккаунт Planfix с доступом к REST API

  • PLANFIX_BASE_URL, например https://your-company.planfix.com/rest

  • PLANFIX_TOKEN

Официальные источники Planfix REST API:

Установка

git clone https://github.com/AndreiSVetvit/kotelkin-planfix-mcp.git
cd kotelkin-planfix-mcp
python -m venv .venv

Установите пакет и выполните локальный smoke:

.\.venv\Scripts\python.exe -m pip install -e .
.\.venv\Scripts\planfix-mcp-smoke.exe

В macOS/Linux используйте .venv/bin/python -m pip install -e . и .venv/bin/planfix-mcp-smoke. Активация окружения не требуется.

Smoke проверяет регистрацию 58 инструментов локально и не вызывает Planfix.

Для разработки и тестов:

python -m pip install -e ".[dev]"

В PowerShell без активации: .\.venv\Scripts\python.exe -m pip install -e ".[dev]".

Настройка

Минимальные переменные окружения:

PLANFIX_BASE_URL=https://your-company.planfix.com/rest
PLANFIX_TOKEN=your_token_here

Дополнительные настройки:

PLANFIX_TIMEOUT_SEC=20
PLANFIX_RETRY_MAX=2
PLANFIX_MIN_REQUEST_INTERVAL_SEC=1.0
PLANFIX_STATUS_CHANGE_DELAY_SEC=1.0
PLANFIX_SILENT_DEFAULT=false
LOG_LEVEL=INFO

Токен нельзя коммитить в репозиторий. Для локального использования можно сохранить токен в OS keyring:

planfix-mcp-secrets-init

PowerShell без активации: .\.venv\Scripts\planfix-mcp-secrets-init.exe; macOS/Linux: .venv/bin/planfix-mcp-secrets-init.

Запуск

planfix-mcp-server

Или:

python -m planfix_mcp.server

Конфигурация MCP-Клиента

Для Codex CLI укажите абсолютный путь к команде в .venv, чтобы сервер запускался и вне активированного окружения:

# PowerShell
codex mcp add kotelkin-planfix-mcp -- (Resolve-Path .venv\Scripts\planfix-mcp-server.exe).Path
# macOS/Linux
codex mcp add kotelkin-planfix-mcp -- "$(pwd)/.venv/bin/planfix-mcp-server"
codex mcp list

В Codex проверьте подключение через /mcp. Для безопасной первой пробы попросите вызвать planfix_task_get с task_id уже известной задачи и fields="id,name,status,endDateTime". В ответе нужно сообщить только эти четыре поля; не создавать и не менять записи.

Пример формы конфигурации:

{
  "mcpServers": {
    "kotelkin-planfix-mcp": {
      "command": "planfix-mcp-server",
      "env": {
        "PLANFIX_BASE_URL": "https://your-company.planfix.com/rest",
        "PLANFIX_TOKEN": "your_token_here"
      }
    }
  }
}

Быстрая Проверка

Проверка регистрации инструментов без вызова Planfix:

planfix-mcp-smoke

PowerShell без активации: .\.venv\Scripts\planfix-mcp-smoke.exe; macOS/Linux: .venv/bin/planfix-mcp-smoke.

Проверка соответствия официальному Swagger Planfix:

planfix-mcp-swagger-check

Проверка реальных credentials:

planfix-mcp-secrets-init
planfix-mcp-preflight

PowerShell без активации: .\.venv\Scripts\planfix-mcp-secrets-init.exe и .\.venv\Scripts\planfix-mcp-preflight.exe. macOS/Linux: .venv/bin/planfix-mcp-secrets-init и .venv/bin/planfix-mcp-preflight.

planfix-mcp-secrets-init сохраняет введённые credentials в OS keyring; preflight выполняет только GET /ping и GET /workspace/list. Проверка списка задач выключена по умолчанию.

Базовая live-проверка через MCP STDIO:

planfix-mcp-live-qa-basic

Расширенная live-проверка на тестовом аккаунте:

PLANFIX_LIVE_QA_COMMENT_TASK_ID=12345 \
PLANFIX_LIVE_QA_DATATAG_ID=10 \
PLANFIX_LIVE_QA_ASSIGNEE_ID=1 \
PLANFIX_LIVE_QA_DIRECTORY_ID=10 \
planfix-mcp-live-qa-extended

Постоянные изменения конфигурации Planfix, например создание custom fields, включаются только отдельным флагом:

PLANFIX_LIVE_QA_CONFIG_WRITES=1 planfix-mcp-live-qa-extended

Что Умеет MCP

  • Задачи: создать, получить, обновить, найти списком.

  • Сроки, статусы, исполнители и кастомные поля задач.

  • Комментарии: список, добавление, обновление, получение, удаление.

  • Чеклисты: создание, список, получение пункта, обновление.

  • DataTags: добавление в задачу и к существующему комментарию.

  • Проекты: создание, список, группы, шаблоны, получение, обновление, файлы.

  • Справочники: группы, список, получение, записи, фильтры.

  • Процессы и объекты: списки и статусы.

  • Кастомные поля задач и проектов.

Полный список инструментов и примеры входных данных: MANUAL_QA_EXTENDED_TOOLS.md.

Пример: прочитать фактические значения задачи

Поручите MCP-клиенту: «Создай задачу Подготовить предложение клиенту с описанием Подготовить черновик и отправить на согласование, исполнителем по заранее заданному Planfix ID из шаблона и сроком завтра в 17:00 по часовому поясу аккаунта. Добавь чек-лист из пунктов Подготовить черновик, Проверить цену и срок, Отправить на согласование, а также комментарий Черновик готовится к проверке. Затем прочитай сохранённые значения задачи через planfix_task_get, пункты — через planfix_task_checklist_get, комментарий — через planfix_task_comments_list; сравни с поручением и не называй запись подтверждённой, если readback недоступен». Для чтения выбранных полей существующая команда planfix_task_get принимает:

{
  "tool": "planfix_task_get",
  "arguments": {
    "task_id": 12345,
    "fields": "id,name,description,assignees,endDateTime,status,processId"
  }
}

Для readback чек-листа и комментариев явно запросите поля, иначе список может содержать только ID:

{"tool":"planfix_task_checklist_get","arguments":{"task_id":12345,"payload":{"fields":"id,name,isDone"}}}
{"tool":"planfix_task_comments_list","arguments":{"task_id":12345,"payload":{"fields":"id,description","typeList":"Comments"}}}

fields — необязательный список через запятую: имена системных полей Planfix и/или ID кастомных полей. Без него сохраняется прежний запрос; выбранные значения читает сам Planfix, а AI должен сравнить фактический ответ, не предполагать успех.

Безопасность

Некоторые инструменты изменяют данные в Planfix. Для проверки используйте тестовый аккаунт или рабочее пространство, где не страшно создать тестовые записи.

Токены храните в переменных окружения, OS keyring или настройках MCP-клиента вне Git. Не добавляйте токены в README, issue, логи или screenshots.

Документация

Статус

Версия пакета и документации — v0.1.3; этот maintenance-релиз продолжает опубликованный baseline v0.1.2. См. релизы и release notes и roadmap.

Лицензия

MIT

Available Tools

58 tools
planfix_comment_deleteC

Delete comment by comment id via /comment/{id}.

Inputs: comment_id (required), silent. Returns: object

planfix_comment_getC

Get comment by comment id via /comment/{id}.

Inputs: comment_id (required). Returns: object

planfix_customfield_project_createC

Create project custom field via /customfield/project/.

Inputs: payload (required), silent. Returns: object

planfix_customfield_project_getC

Get project custom field by id via /customfield/project/{id}.

Inputs: field_id (required). Returns: object

planfix_customfield_project_group_createC

Create custom field set for project via /customfield/group/project/.

Inputs: payload (required), silent. Returns: object

planfix_customfield_project_group_listC

List custom field sets for project via /customfield/group/project.

Inputs: payload. Returns: object

planfix_customfield_project_listC

List custom fields for project via /customfield/project.

Inputs: payload. Returns: object

planfix_customfield_task_createC

Create task custom field via /customfield/task/.

Inputs: payload (required), silent. Returns: object

planfix_customfield_task_getC

Get task custom field by id via /customfield/task/{id}.

Inputs: field_id (required). Returns: object

planfix_customfield_task_group_createC

Create custom field set for task via /customfield/group/task/.

Inputs: payload (required), silent. Returns: object

planfix_customfield_task_group_listC

List custom field sets for task via /customfield/group/task.

Inputs: payload. Returns: object

planfix_customfield_task_listC

List custom fields for task via /customfield/task.

Inputs: payload. Returns: object

planfix_directory_entry_addC

Add directory entry via /directory/{id}/entry/.

Inputs: payload (required), directory_id (required), silent. Returns: object

planfix_directory_entry_deleteC

Delete directory entry via /directory/{id}/entry/{key}.

Inputs: key (required), directory_id (required), silent. Returns: object

planfix_directory_entry_getC

Get directory entry via /directory/{id}/entry/{key}.

Inputs: key (required), directory_id (required). Returns: object

planfix_directory_entry_listC

List directory entries via /directory/{id}/entry/list.

Inputs: directory_id (required), payload. Returns: object

planfix_directory_entry_updateC

Update directory entry via /directory/{id}/entry/{key}.

Inputs: key (required), payload (required), directory_id (required), silent. Returns: object

planfix_directory_filtersC

Get directory entry filters via /directory/{id}/filters.

Inputs: directory_id (required), payload. Returns: object

planfix_directory_getC

Get directory by id via /directory/{id}.

Inputs: directory_id (required). Returns: object

planfix_directory_groupsC

Get directory groups via /directory/groups.

Inputs: payload. Returns: object

planfix_directory_listC

List directories via /directory/list.

Inputs: payload. Returns: object

planfix_object_getC

Get object by id via /object/{id}.

Inputs: object_id (required). Returns: object

planfix_object_listC

List objects via /object/list.

Inputs: payload. Returns: object

planfix_object_statusesC

Get object task statuses via /object/{id}/statuses.

Inputs: object_id (required), payload. Returns: object

planfix_process_contact_listC

List contact processes via /process/contact.

Inputs: payload. Returns: object

planfix_process_task_listC

List task processes via /process/task.

Inputs: payload. Returns: object

planfix_process_task_statusesC

Get task statuses by process id via /process/task/{id}/statuses.

Inputs: process_id (required), payload. Returns: object

planfix_project_createC

Create project via /project/.

Inputs: payload (required), silent. Returns: object

planfix_project_filesC

Get project files via /project/{id}/files.

Inputs: project_id (required), payload. Returns: object

planfix_project_getC

Get project by id via /project/{id}.

Inputs: project_id (required). Returns: object

planfix_project_groupsC

Get project groups via /project/groups.

Inputs: payload. Returns: object

planfix_project_listC

List projects via /project/list.

Inputs: payload. Returns: object

planfix_project_templatesC

Get project templates via /project/templates.

Inputs: payload. Returns: object

planfix_project_updateC

Update project by id via /project/{id}.

Inputs: payload (required), project_id (required), silent. Returns: object

planfix_task_acceptB

Accept task by task id via task update payload (REST API has no dedicated accept endpoint).

Inputs: task_id (required), silent, payload. Returns: object

planfix_task_change_assigneesC

Change task assignees/auditors by task id via task update payload.

Inputs: payload (required), task_id (required), silent. Returns: object

planfix_task_change_datesC

Change task dates/deadline by task id via task update payload.

Inputs: payload (required), task_id (required), silent. Returns: object

planfix_task_change_statusC

Change task status by task id via task update payload.

Inputs: payload (required), task_id (required), silent. Returns: object

planfix_task_checklist_createC

Create checklist item in task via /task/{id}/checklist.

Inputs: payload (required), task_id (required), silent. Returns: object

planfix_task_checklist_getC

Get task checklist tree.

Inputs: task_id (required), payload. Returns: object

planfix_task_checklist_item_getC

Get checklist item by task id and item id via /task/{id}/checklist/{itemId}.

Inputs: item_id (required), task_id (required). Returns: object

planfix_task_checklist_updateC

Update task checklist item or tree payload.

Inputs: item_id (required), payload (required), task_id (required), silent. Returns: object

planfix_task_comment_addC

Add a comment to a task.

Inputs: payload (required), task_id (required), silent. Returns: object

planfix_task_comments_listC

List comments for task id.

Inputs: task_id (required), payload. Returns: object

planfix_task_comment_updateC

Update or delete a comment by task id and comment id using payload action.

Inputs: payload (required), task_id (required), comment_id (required), silent. Returns: object

planfix_task_createC

Create a task in Planfix using raw payload.

Inputs: payload (required), silent. Returns: object

planfix_task_datatag_addC

Add DataTag to task.

Inputs: payload (required), task_id (required), silent. Returns: object

planfix_task_datatag_to_commentC

Attach DataTag to task comment context.

Inputs: payload (required), task_id (required), comment_id (required), silent. Returns: object

planfix_task_filesC

Get task files.

Inputs: task_id (required), payload. Returns: object

planfix_task_filtersC

Get task filters.

Inputs: payload. Returns: object

planfix_task_getB

Get task details by id, optionally selecting comma-separated fields.

Inputs: task_id (required), fields. Returns: object

planfix_task_get_statusesB

Get available statuses for task: resolves process/object from task; if task payload is minimal, pass process_id/object_id in payload.

Inputs: task_id (required), payload. Returns: object

planfix_task_listC

List tasks with filters and pagination payload.

Inputs: payload. Returns: object

planfix_task_recurringC

Get recurring tasks.

Inputs: payload. Returns: object

planfix_task_rejectB

Reject task by task id via task update payload (REST API has no dedicated reject endpoint).

Inputs: task_id (required), silent, payload. Returns: object

planfix_task_templatesC

Get available task templates.

Inputs: payload. Returns: object

planfix_task_updateC

Update a task by id using raw payload.

Inputs: payload (required), task_id (required), silent. Returns: object

planfix_task_update_custom_fieldsC

Update task custom fields by task id.

Inputs: payload (required), task_id (required), silent. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.3/5.0

    Scored across 58 tools

    Disambiguation2/5

    Many task-mutation tools (accept, reject, change_status, change_assignees, change_dates, update_custom_fields) are all thin wrappers over the same task-update payload, making it unclear when to use the generic planfix_task_update versus a specialized variant. Comment operations are also duplicated between planfix_task_comment_update (which can delete) and planfix_comment_delete, and checklist retrieval is split across overlapping getters.

    Naming Consistency3/5

    Most tools follow a planfix_<resource>_<action> snake_case pattern, but the ordering is inconsistent: planfix_task_comment_add versus planfix_comment_get, and verbs alternate between add and create for essentially the same operation. Still readable, but not a single predictable convention.

    Tool Count1/5

    58 tools for a Planfix API surface is excessive, with many granular wrappers that could be consolidated into a smaller set of generic resource operations. The volume far exceeds what an agent can reasonably distinguish and select among.

    Completeness3/5

    Coverage is broad across tasks, projects, directories, processes, objects, and custom fields, but CRUD is incomplete: no task delete, project delete, or directory delete, and user/contact management is largely absent beyond process_contact_list. Agents will hit dead ends for common lifecycle operations.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to connect to Agenzax's REST API over stdio, providing tools for messaging, session management, and review-mode oversight.
      18
      88 npm
      5
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP clients to query projects, fetch findings, trigger analysis, upload CycloneDX BOMs, and check async token status against an OWASP Dependency-Track instance via stdio.
      9
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP-capable clients to drive Worksection projects, tasks, subtasks, comments, tags, people, time tracking, files, search, and reporting through a consistent set of tools over stdio.
      53
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to interact with the Crewmeister API over local stdio, covering operations for members, teams, time tracking, salary exports, and related platform resources.
      Apache 2.0