Skip to content
RedFoxxoPublic

About

MCP server for Targetprocess: read and manage cards by name, with your team rules enforced and every write verified

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

38 Commits

Folders and files

Repository files navigation

pounce 🦊

CI Release MCP Registry Platforms License: MIT

pounce MCP server

An MCP server for Targetprocess: your AI assistant reads and manages your cards (stories, tasks, bugs, test plans, time, comments) through the Targetprocess REST API.

Tested against Targetprocess 2611.4. Releases are listed in CHANGELOG.md.

✨ Why pounce

  • πŸͺΆ One small program. No Node.js or other runtime; about 7 MB of memory when idle and 17 MB once it has read your instance's API metadata.
  • πŸ—£οΈ Works with names, not ids. "Move #36400 to Coded", "assign Foxxo as Developer": names are resolved, and an ambiguous one returns every candidate instead of a guess.
  • πŸ“ Follows your team's rules. Effort is booked per role, default assignees are cleared on new cards, and changes to parent cards are reported.
  • βœ… Honest results. Lists are fully paged, errors carry Targetprocess's own message, and every write is read back to confirm it stuck.
  • πŸ” Simple permissions. Every tool name starts with its tier (read_, write_, delete_, admin_), so one rule per tier covers them all.
  • 🧩 Full coverage when you need it. Optional generic tools reach every resource your instance reports, custom types included.

πŸš€ Quick start

  1. πŸ”‘ Get an access token: in Targetprocess, open your profile β†’ Access Tokens β†’ create one. Export it in your shell profile: export TP_TOKEN=...
  2. πŸ“¦ Install pounce: Linux and macOS curl -fsSL https://raw.githubusercontent.com/RedFoxxo/pounce/main/install.sh | sh, Windows (PowerShell) irm https://raw.githubusercontent.com/RedFoxxo/pounce/main/install.ps1 | iex.
  3. πŸ”Œ Connect your client: for Claude Code, run the command under Claude Code with your instance's URL. Other clients are listed under Connect your client.

Then ask your assistant "what's on my plate in Targetprocess?".

πŸ“¦ Install

Way For
Install script Linux, macOS, Windows: the usual way
Claude Desktop bundle Claude Desktop, nothing else to install
By hand Downloading the file yourself
From source Rust users, or a Docker image

Install script

# Linux and macOS
curl -fsSL https://raw.githubusercontent.com/RedFoxxo/pounce/main/install.sh | sh
# Windows, in PowerShell
irm https://raw.githubusercontent.com/RedFoxxo/pounce/main/install.ps1 | iex

The script downloads the file for your system from the latest release, checks it against the release's SHA256SUMS, and installs pounce in ~/.local/bin (Windows: %LOCALAPPDATA%\Programs\pounce). If that folder isn't on your PATH, it adds it: log out and back in (Windows: open a new terminal), then check with pounce --version.

πŸ”„ Update: run the same line again.

βš™οΈ Options, set for the script:

Variable Effect
POUNCE_VERSION Install a given release, e.g. POUNCE_VERSION=2.1.0
POUNCE_INSTALL_DIR Install into another folder
POUNCE_NO_MODIFY_PATH=1 Leave your PATH alone

For example curl -fsSL …/install.sh | POUNCE_VERSION=2.1.0 sh, or in PowerShell $env:POUNCE_VERSION = '2.1.0' before irm … | iex.

Claude Desktop

Download pounce.mcpb from the latest release and open it, or drag it into Settings β†’ Extensions. Claude Desktop asks for your Targetprocess URL and access token (kept in the system's secure storage) and the optional settings below, and runs pounce from the bundle.

By hand

Download the file for your system from the latest release into a folder on your PATH and rename it to pounce (pounce.exe on Windows):

System File
🐧 Linux x64 pounce-linux-x64
🐧 Linux arm64 pounce-linux-arm64
🍎 macOS, Apple silicon pounce-macos-arm64
🍎 macOS, Intel pounce-macos-x64
πŸͺŸ Windows x64, also Windows on ARM pounce-windows-x64.exe

On Linux and macOS, make it executable: chmod +x pounce. On macOS, a file downloaded with a browser also needs xattr -d com.apple.quarantine pounce once.

From source or Docker

  • πŸ¦€ With Rust: cargo install pounce-mcp --locked (the crate is pounce-mcp; the program is pounce), or cargo install --git https://github.com/RedFoxxo/pounce --tag v2.1.0 --locked.
  • 🐳 Docker: docker build -t pounce . in a clone, then docker run -i --rm -e TP_BASE_URL -e TP_TOKEN pounce.

βš™οΈ Settings

pounce reads its settings from environment variables, which your MCP client passes to it:

Variable Required Purpose
TP_BASE_URL βœ… Your instance, e.g. https://yourcompany.tpondemand.com (no /api/...). https only, except for localhost
TP_TOKEN βœ… Your access token. Never logged
TP_DEFAULT_PROJECT_ID Project for new cards that have no parent to inherit one from
TP_DEFAULT_TEAM_ID Team for new cards when none is given
POUNCE_TOOLSETS Tool groups, comma-separated: cards, raw, admin. Default cards; see Toolsets

πŸ”’ Keep the token out of config files: export it in your shell profile and let the client pass it through, as the examples below do.

πŸ“‘ pounce sends nothing to Targetprocess until a tool is called. It reads your instance's API metadata as tools need it (two or three extra read-only requests on the first card read, kept for the session). If the metadata can't be read, a built-in copy stands in and pounce tries again on the next call.

πŸ”Œ Connect your client

Claude Code

Register pounce once for all your projects. ${TP_TOKEN} is read from your environment when the server starts, so the token isn't stored in the config:

claude mcp add-json pounce --scope user '{
  "type": "stdio",
  "command": "pounce",
  "env": {
    "TP_BASE_URL": "https://yourcompany.tpondemand.com",
    "TP_TOKEN": "${TP_TOKEN}"
  }
}'

Then add the permission rules to ~/.claude/settings.json:

{
  "permissions": {
    "allow": ["mcp__pounce__read_*"],
    "ask": ["mcp__pounce__write_*", "mcp__pounce__delete_*"],
    "deny": ["mcp__pounce__admin_*"]
  }
}

The server name must be pounce for these rules to match (Claude Code names tools mcp__<server>__<tool>). Check the connection with claude mcp get pounce, or /mcp inside a session.

opencode

Add the server and the permission rules to opencode.json (global: ~/.config/opencode/opencode.json):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "pounce": {
        "type": "local",
        "command": ["pounce"],
        "environment": {
          "TP_BASE_URL": "https://yourcompany.tpondemand.com",
          "TP_TOKEN": "{env:TP_TOKEN}"
        }
      }
    }
  },
  "permissions": [
    { "action": "pounce_read_*", "resource": "*", "effect": "allow" },
    { "action": "pounce_write_*", "resource": "*", "effect": "ask" },
    { "action": "pounce_delete_*", "resource": "*", "effect": "ask" },
    { "action": "pounce_admin_*", "resource": "*", "effect": "deny" }
  ]
}

The server name must be pounce for these rules to match (opencode names tools <server>_<tool>, e.g. pounce_read_card). Restart opencode after changing the file; opencode mcp list shows whether it connected.

Other MCP clients

Any client that starts local (stdio) servers works. Most accept an mcpServers block like this one (Cursor, Claude Desktop without the bundle, ...):

{
  "mcpServers": {
    "pounce": {
      "command": "pounce",
      "env": {
        "TP_BASE_URL": "https://yourcompany.tpondemand.com",
        "TP_TOKEN": "your-access-token"
      }
    }
  }
}

If the client can't find pounce (some desktop apps don't see your shell's PATH), give the full path instead, e.g. "C:\\Users\\you\\AppData\\Local\\Programs\\pounce\\pounce.exe" on Windows. Then map the four tiers to the client's permission system.

🧰 Tools

πŸ” Permission tiers

Every tool name starts with its tier, so one rule per tier covers every tool, including ones added later. Every tool also carries MCP annotations: reads are marked read-only, deletions destructive.

Tier What it does Suggested rule
🟒 read_ Reads only allow
🟑 write_ Creates and updates cards, comments, time, relations, ... ask
🟠 delete_ Deletes ask
πŸ”΄ admin_ Changes configuration (projects, teams, users, processes, workflows, ...); needs an administrator token deny

πŸ“š Toolsets

Your client sends every listed tool to the model with each request, so pounce lists only the cards toolset unless POUNCE_TOOLSETS names others.

Toolset Tools Cost per request For
cards (default) 34 about 5,900 tokens Day-to-day work on cards
+ raw 18 more Any resource and operation your instance reports
+ admin 6 more Instance configuration, with an administrator token
all three 58 about 10,000 tokens POUNCE_TOOLSETS=cards,raw,admin
πŸƒ cards: the workflow tools, plus card history and attachments (34)
  • 🟒 read_card, read_search, read_my_work, read_states, read_people, read_teams, read_roles, read_projects, read_releases, read_iterations, read_custom_field_options, read_comments, read_relations, read_times, read_attachments, read_test_plan, read_history
  • 🟑 write_create_card, write_update_card, write_set_state, write_assign, write_unassign, write_set_role_effort, write_set_custom_fields, write_team, write_comment, write_log_time, write_relate, write_follow, write_test_cases, write_test_run, write_attachment
  • 🟠 delete_card, delete_relation
🧱 raw: generic tools for every resource your instance reports (18)
  • 🟒 read_meta, read_get, read_query, read_collection, read_v2_query, read_context, read_conversions, read_deleted, read_storage
  • 🟑 write_create, write_update, write_bulk, write_collection_add, write_storage
  • 🟠 delete_entity, delete_bulk, delete_collection_remove, delete_storage
πŸ›‘οΈ admin: instance configuration (6)
  • πŸ”΄ admin_create, admin_update, admin_delete, admin_collection_add, admin_collection_remove, admin_undelete

πŸ“ Rules the card tools follow

  • ⏱️ Effort belongs to a role. write_set_role_effort writes role effort; Targetprocess computes the card total. When a task changes, its story is recalculated and both are reported.
  • πŸ‘₯ New cards get exactly the people you ask for. write_create_card removes the assignments Targetprocess adds by default, even ones it adds a moment later, and reports what it removed. On existing cards nobody is removed unless you ask (exclusive).
  • πŸ” Parent cards are reported. State changes and new children show the parent's state before and after. Targetprocess may move a parent a few seconds later; the answer says so when it looks unchanged.
  • πŸ“ New cards inherit the parent's project. If no project can be resolved, nothing is sent.
  • πŸ—‘οΈ Deleting a card with children needs withChildren: true. Targetprocess deletes some children with it and keeps others without a parent; the answer lists which.
  • πŸ•’ Time goes where your process keeps it: standard Time entries, or a custom TimeRecord type (hours and date fields) linked to the person and the card.
  • πŸ“ Markdown in, Markdown out. Descriptions and comments can be written as Markdown (format: "markdown"), HTML or plain text, and are read back as Markdown.
  • πŸ” Every write is checked. Values that didn't persist are listed under notPersisted; if a multi-step write fails partway, the error says what was already done.
  • 🚫 Typos are refused, not dropped. An argument pounce doesn't know is refused with the allowed names and a close match.
  • πŸ“Ž Attachments are uploaded from base64 content; pounce never reads local files.

⚠️ Limitations

  • Downloading attachments isn't supported: with an access token, Targetprocess returns an HTML page instead of the file.
  • Automation rules, validation rules, mashups and CSV import have no REST management API and are out of scope.

⬆️ Upgrading

From 2.0 to 2.1: pounce now lists only the cards toolset by default. If you use the generic or admin tools, set POUNCE_TOOLSETS=cards,raw,admin.

From 1.x: pounce 1.x ran through npx from the npm package @redfoxxo/pounce, which gets no new versions.

  1. Install pounce as above.
  2. In your client's config, change "command": "npx", "args": ["-y", "@redfoxxo/pounce@1"] to "command": "pounce" (opencode: "command": ["pounce"]).
  3. Tool names, settings and permission rules stay the same. Two behaviour changes: only cards is listed by default (see above), and unknown argument keys are refused instead of ignored.

πŸ› οΈ Development

Building from source, running the tests and releasing are described in DEVELOPMENT.md.

πŸ“„ License

MIT

About

MCP server for Targetprocess: read and manage cards by name, with your team rules enforced and every write verified

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages