hacknplan-mcp

hacknplan-mcp

Enables Claude to interact with HacknPlan project management via the MCP protocol. Provides tools for managing projects, work items, boards, milestones, time logs, design models, and cross-project portfolio views.

Category
访问服务器

README

@mtuska/hacknplan-mcp

A Model Context Protocol (MCP) server for the HacknPlan project-management API, built for use with Claude. It exposes HacknPlan projects, boards, work items, sub-tasks, dependencies, time logs, the design model, and metrics as MCP tools — plus a cross-project portfolio dashboard and a deadline schedule view that HacknPlan has no native equivalent for.

Pure TypeScript/Node — runs over npx, no Python or other runtime required.

Quick start

npx @mtuska/hacknplan-mcp install

The installer will:

  1. Ask where to register the server with Claude — global (all your projects), project (this repo, shared via .mcp.json), or local (this repo, private to you).
  2. Prompt for your HacknPlan API key (input is hidden) and store it in the chosen Claude MCP config.
  3. Install the bundled hacknplan Claude skill into the matching skills directory (global → ~/.claude/skills, project/local → ./.claude/skills).

Then ask Claude to run the hacknplan_whoami tool to confirm the key works. (Restart Claude / reload the window first if it was already running.)

The bundled skill (auto-updating)

install drops a hacknplan skill that teaches Claude how to drive these tools (id-resolution, feature breakdown, destructive-confirm rules, the portfolio / schedule / standup views). It's part of the npm package, so on every later server launch — which Claude runs via npx -y @mtuska/hacknplan-mcp (always the latest) — the server re-syncs the skill if the package version changed, keeping it current with no action from you.

The refresh only touches a skill copy this package installed (tracked by a .installed-by.json marker), so your own edits to other skills are never affected. Pass --skip-skill to register the MCP server without the skill.

Updating from a version before the skill existed (≤ 0.2.0): the auto-sync is update-only — it refreshes a skill it previously installed, but does not create one. If you installed the MCP server before the skill shipped (v0.3.0), re-run install once to add it:

npx -y @mtuska/hacknplan-mcp install --global

After that, every later upgrade auto-updates it on the next server launch.

Getting an API key

HacknPlan → your avatar → Settings → API → Create. Tick the scopes you need.

Install options

npx @mtuska/hacknplan-mcp install [options]

  -g, --global        Register for all projects (private, in ~/.claude.json). Default.
  -p, --project       Register for this repo only, shared via ./.mcp.json.
      --local         Register for this repo only, private to you.
      --api-key KEY   Provide the key non-interactively (else prompted / $HACKNPLAN_API_KEY).
      --name NAME     Server name to register (default: "hacknplan").
      --skip-skill    Register the MCP server only; don't install the Claude skill.
  -y, --yes           Non-interactive; use defaults and fail if the key is missing.

Non-interactive example (e.g. CI / dotfiles):

HACKNPLAN_API_KEY=hp_xxx npx @mtuska/hacknplan-mcp install --global -y

Project scope & secrets: --project writes the key into ./.mcp.json, which is typically committed. For shared repos prefer --global, or add .mcp.json to .gitignore.

The installer uses the official claude mcp add-json command when the Claude Code CLI is available, and otherwise writes the MCP config file directly.

Manual configuration

If you'd rather not use the installer, add this to your Claude MCP config (~/.claude.json for global, or a project .mcp.json):

{
  "mcpServers": {
    "hacknplan": {
      "command": "npx",
      "args": ["-y", "@mtuska/hacknplan-mcp"],
      "env": { "HACKNPLAN_API_KEY": "hp_your_key_here" }
    }
  }
}

Environment variables

Variable Required Purpose
HACKNPLAN_API_KEY yes Authorization: ApiKey <key> for the HacknPlan API.
HACKNPLAN_GROUPS no JSON map of group label → project names, for the portfolio grouping.
HACKNPLAN_GROUPS='{"Products":["Website","Mobile App"],"Ops":["Infra"]}'

Tools

75 tools across the HacknPlan surface. Highlights:

  • Read/introspecthacknplan_whoami, list_projects, get_project, list_work_items (rich server-side filters), get_work_item, list_stages/categories/tags/boards/milestones/importance_levels.
  • Search & focusfind_work_items (free-text + facet search to resolve a task by name into its id) and my_work (what's assigned to you, per-project or across all).
  • Work itemscreate_work_item (with story→task parent_id, assignees, dependencies, checklists), update_work_item (re-stage / re-prioritize / recategorize / re-estimate / reassign / move board·milestone), plan_feature (create a user story + child tasks + checklists in one call), delete_work_item, add_comment, sub-tasks, tags, user assignment.
  • Planningcreate_project/update_project/delete_project, stages, categories, tags, importance levels, boards (create_board/update_board/close_board/reopen_board), milestones (create_milestone/update_milestone/delete_milestone), dependencies.
  • Lifecycle — non-destructive archive/release via close_project/reopen_project and close_milestone/reopen_milestone.
  • Activity & metricsrecent_activity (the "what changed this week" / standup feed), log_work, list_work_logs, get_project_metrics, get_milestone_metrics, get_board_metrics (sprint burndown).
  • Design model*_design_element/*_design_element_type, plus get_design_element_metrics and design-element comments (list/add_design_element_comment) for the feature/knowledge tree.
  • Portfolio (cross-project)portfolio_overview (completion %, urgent / blocked / due-soon / overdue across all projects) and schedule_overview (a deadline countdown bucketed by horizon).

Destructive tools (delete_*, remove_dependency) require confirm=true.

Development

npm install
npm run build        # tsc -> dist/
npm run typecheck
npm run dev          # run the CLI from source via tsx
node dist/cli.js serve   # run the MCP server over stdio

Publishing

Releases are tag-driven via .github/workflows/release.yml. Pushing a vX.Y.Z tag validates that it matches package.json, publishes to npm, and creates the GitHub release:

npm version patch        # bumps package.json (CLI + server read it at runtime)
git push --follow-tags

Publishing uses npm Trusted Publishing (OIDC) with provenance — no NPM_TOKEN secret. One-time maintainer setup:

  1. Publish v0.1.0 once manually (npm publish --access public) to claim the @mtuska/hacknplan-mcp name.
  2. On npmjs.com → the package → Trusted Publishers, add this repo (mtuska/hacknplan-mcp) and the workflow filename (release.yml).

After that, every tag-driven release publishes with provenance and no long-lived token. Users can verify with npm audit signatures.

License

MIT © Montana Tuska

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选