Add sync_board MCP tool #38

Merged
forgejo_admin merged 1 commit from 37-add-sync-board-mcp-tool into main 2026-03-14 19:56:00 +00:00

Summary

Adds the sync_board MCP tool that wraps SDK.sync_board() to auto-create missing phase board items and update stale columns. Bumps MCP version to 0.3.0 and SDK dependency to >=0.4.0.

Changes

  • src/pal_e_docs_mcp/tools/boards.py — added sync_board tool after get_board, using get_sdk().sync_board(board_slug) (SDK method, not raw HTTP)
  • pyproject.toml — bumped version from 0.2.0 to 0.3.0, SDK dependency from >=0.2.0 to >=0.4.0

Test Plan

  • Verify ruff format and ruff check pass (confirmed clean)
  • Verify SDK v0.4.0 installs from Forgejo PyPI (confirmed)
  • Call sync_board("board-pal-e-docs") via MCP and confirm created/updated/skipped counts returned

Review Checklist

  • ruff format passes
  • ruff check passes
  • SDK v0.4.0 resolves from Forgejo PyPI
  • Tool follows existing pattern (@mcp.tool(), Annotated, _ok/_error_response)
  • Manual smoke test of sync_board via MCP client
  • Forgejo issue: #37

Closes #37

## Summary Adds the `sync_board` MCP tool that wraps `SDK.sync_board()` to auto-create missing phase board items and update stale columns. Bumps MCP version to 0.3.0 and SDK dependency to >=0.4.0. ## Changes - `src/pal_e_docs_mcp/tools/boards.py` — added `sync_board` tool after `get_board`, using `get_sdk().sync_board(board_slug)` (SDK method, not raw HTTP) - `pyproject.toml` — bumped version from 0.2.0 to 0.3.0, SDK dependency from >=0.2.0 to >=0.4.0 ## Test Plan - Verify `ruff format` and `ruff check` pass (confirmed clean) - Verify SDK v0.4.0 installs from Forgejo PyPI (confirmed) - Call `sync_board("board-pal-e-docs")` via MCP and confirm created/updated/skipped counts returned ## Review Checklist - [x] `ruff format` passes - [x] `ruff check` passes - [x] SDK v0.4.0 resolves from Forgejo PyPI - [x] Tool follows existing pattern (`@mcp.tool()`, `Annotated`, `_ok`/`_error_response`) - [ ] Manual smoke test of `sync_board` via MCP client ## Related - Forgejo issue: #37 Closes #37
Add sync_board MCP tool + bump SDK to >=0.4.0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
0700715b85
Wraps SDK sync_board() method for board phase sync.
Bumps MCP version to 0.3.0.

Closes #37

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

Review -- LGTM

Files reviewed: src/pal_e_docs_mcp/tools/boards.py, pyproject.toml

Findings: None.

  • Tool placement correct (after get_board, before update_board)
  • Follows existing pattern exactly: @mcp.tool(), Annotated[str, Field(...)], try/except with _ok/_error_response
  • Uses SDK method get_sdk().sync_board() -- not raw HTTP helpers
  • Version bumps correct: MCP 0.2.0 -> 0.3.0, SDK dep >=0.2.0 -> >=0.4.0
  • ruff format and ruff check pass
  • SDK v0.4.0 confirmed installed from Forgejo PyPI
  • Closes #37 present for auto-close on merge
  • PR is mergeable
## Review -- LGTM **Files reviewed:** `src/pal_e_docs_mcp/tools/boards.py`, `pyproject.toml` **Findings:** None. - Tool placement correct (after `get_board`, before `update_board`) - Follows existing pattern exactly: `@mcp.tool()`, `Annotated[str, Field(...)]`, `try/except` with `_ok`/`_error_response` - Uses SDK method `get_sdk().sync_board()` -- not raw HTTP helpers - Version bumps correct: MCP 0.2.0 -> 0.3.0, SDK dep >=0.2.0 -> >=0.4.0 - `ruff format` and `ruff check` pass - SDK v0.4.0 confirmed installed from Forgejo PyPI - `Closes #37` present for auto-close on merge - PR is mergeable
forgejo_admin deleted branch 37-add-sync-board-mcp-tool 2026-03-14 19:56:00 +00:00
forgejo_admin referenced this pull request from a commit 2026-03-14 19:56:02 +00:00
Sign in to join this conversation.
No description provided.