DevPulse PM Agent
Gives Claude four decision tools for product management: rank backlog, mine customer feedback, size sprint capacity, and trace dependency risk, all grounded in JSON data.
README
DevPulse PM Agent — MCP Server
An MCP (Model Context Protocol) server that gives Claude four decision tools for a product manager: rank the backlog, mine customer feedback, size sprint capacity, and trace dependency risk — all grounded in DevPulse's own JSON data, computed fresh from whatever dataset is mounted.
Built for the "Product Nerve Center / PM Agent" challenge. Entry point is server.py; the four tools
live in tools/ as standalone *_impl functions.
The four tools
| Tool | Answers the PM question | Type |
|---|---|---|
prioritize_backlog |
What should we work on next? | judgment |
analyze_feedback |
What are customers actually asking for? | judgment |
assess_capacity |
Can we fit this into the sprint / who has capacity? | discovered rule 🔍 |
map_dependencies |
What's blocking X? | discovered rule 🔍 |
assess_capacity and map_dependencies are built on rules reverse-engineered from the Nimbus Oracle
(a discovery-only service). The server never calls the oracle — the discovered rules are implemented
as standalone logic (see Discovered rules below).
Repo layout
server.py # entry point — registers the 4 tools, loads data from PM_AGENT_DATA
tools/
prioritize_backlog.py # prioritize_backlog_impl(method, filters, include_dependency_check, backlog, feedback, deps)
analyze_feedback.py # analyze_feedback_impl(time_range, customer_tier, source, group_by, feedback)
assess_capacity.py # assess_capacity_impl(sprint_id, squad, include_carry_over, check_skill_fit, roster, backlog, sprints)
map_dependencies.py # map_dependencies_impl(item_ids, include_external, max_depth, backlog, deps)
data/ # sample data for local dev (grading mounts a DIFFERENT dataset)
requirements.txt # pinned deps
agent_config.json # run contract (runtime_version, entry, env_file, required_env: ["MCP_DATA_URL"])
env_vars.json # {"PM_AGENT_DATA":"", "MCP_DATA_URL":"..."}
olympics.json # {entrypoint, language, data_env_var, tools:[...]}
program.md # build spec the coding-agent loop executes against
eval.py # self-test harness (writes results.md / results.json)
results.md # latest eval report (regenerated by eval.py)
Quick start
python3.11 -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\Activate.ps1
pip install -r requirements.txt
python server.py # stdio transport (what Claude Desktop / Code use)
requirements.txt must pin exact versions (no 0.0.0). Minimum is mcp (which pulls in pydantic); pin
whatever pip freeze reports for your Python (3.11 / 3.12 / 3.13) and set the matching runtime_version
in agent_config.json.
Connect to Claude Desktop — add to claude_desktop_config.json:
{ "mcpServers": { "pm-agent": {
"command": "python", "args": ["/absolute/path/to/server.py"],
"env": { "PM_AGENT_DATA": "/absolute/path/to/data" } } } }
Connect via Claude Code: claude mcp add pm-agent python server.py
Data sourcing (design decision)
The server reads all five JSON files from DATA_DIR = PM_AGENT_DATA or ./data and makes no network
calls:
DATA_DIR = Path(os.environ.get("PM_AGENT_DATA", Path(__file__).parent / "data"))
The challenge brief states three times that the submitted server must not call the oracle, and that at
grading the oracle is gone and a different dataset is mounted. The only interpretation under which the
two discovery tools remain testable is that team_roster.json and dependency_map.json arrive as mounted
files alongside the three given files — so the server reads them from DATA_DIR, with a dev-only fallback
to sample_roster.json / sample_dependencies.json when running offline. Every tool tolerates an empty
roster / deps / feedback list without crashing.
Two dependency sources are merged: each backlog item's own dependencies field (always present, untyped —
EXT-* targets treated as external) is overlaid with the typed edges in dependency_map.json, so
map_dependencies works even when the map is empty.
Discovered rules 🔍
These are implemented as standalone logic. The exact constants are confirmed against the Nimbus Oracle
in Phase 1; the module-level CONFIRMED flag records whether that step is done.
Capacity (tools/assess_capacity.py), sprint = 10 working days, 21 pts at 100% allocation:
effective_capacity = total_capacity_points * (allocation/100) * ((10 - pto_days) / 10)
available_capacity = effective_capacity - carry_over_points
Roster field names are mapped defensively (sprint_allocation_percent↔allocation_percent,
carry_over_items[].points↔carry_over_points, name↔engineer_id). A 0%-allocation engineer contributes
0 to squad totals and is flagged zero_effective_capacity; available < 0 is flagged overloaded.
Dependencies (tools/map_dependencies.py): blocks and external block; soft is advisory (does not
block or extend the critical path). External deps with no ETA (null/""/TBD) are flagged HIGH risk;
cycles are detected and reported as full node lists and excluded from the critical path.
Development loop (how this repo was built)
This repo is driven by a build→test→fix loop:
program.md— the full build spec (contracts, tool schemas, algorithms, edge cases, the resolved data-sourcing decision, and the discovered-rule constants). The coding agent implements against it.eval.py— a self-contained harness. It runs every tool against the given data and a synthetic dataset with different ids/names/numbers and every trap baked in (cycle, churned+over-represented customer, unestimated item, stale item, 0%-allocation engineer, external-no-ETA edge, skill mismatch). Expectations are derived from the data itself, so the same checks pass on the blind grading set — nothing is hardcoded. It writesresults.md(human) andresults.json(machine) and exits non-zero on any FAIL or WARN.results.md— the latest report; the loop fixes every FAIL, then every WARN.
Run it:
python eval.py # -> results.md, results.json ; exit 0 when green
To drive it with a coding agent (e.g. GitHub Copilot CLI): point the agent at program.md, let it edit
tools/*.py and server.py, run python eval.py each iteration, read results.md, and repeat until 0
FAIL / 0 WARN. The only checks that stay open are [TODO-ORACLE] — the exact capacity numbers, which a
human locks by pasting the Phase-1 oracle findings into EXPECTED_CAPACITY in eval.py and the DISCOVERY
BLOCK in tools/assess_capacity.py.
Submission checklist
- [ ] All 4 tools implemented; each returns a dict (no
NotImplementedError). - [ ]
requirements.txtpinned (no0.0.0); installs clean in a fresh venv on the declared Python. - [ ]
agent_config.jsonruntime_versionmatches the venv;MCP_DATA_URLinrequired_env. - [ ] Tools read from
PM_AGENT_DATA; no hardcoded ids / names / numbers. - [ ] Deterministic output; graceful on bad input and empty roster/deps.
- [ ]
python eval.py→ 0 FAIL, 0 WARN (only[TODO-ORACLE]open). - [ ]
.venv/,__pycache__/,.envgit-ignored.
The six Technical-Decision-Log answers (schema rationale, investigation & traps, description craft, failure modes, custom insight, production scaling) are seeded in program.md → Appendix B — lift and expand them into the ≤1,500-word Approach Summary.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。