mcp
v0.15.0MCP server that exposes Loupe comments to Claude Code as an actionable, fully-contextualized backlog.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_comments
List Loupe product-feedback comments for the project as a task backlog. Each item carries its board stage, priority and change type, so you can start with the most urgent. Use this to see what a PM has flagged, then work through the items.
| Parameter | Type | Description |
|---|---|---|
branch | string | Filter to one branch, e.g. "main". |
changeType | string | Filter by change type. |
priority | string | Filter by priority. |
repo | string | Filter to one repository, e.g. "org/repo". |
status | string | Filter by stage. Omit for all. |
url | string | Filter to a single page path, e.g. /checkout. |
get_comment
Get the full context for one comment: the request, the page, the target element's HTML, and its computed styles — everything needed to make the change.
| Parameter | Type | Description |
|---|---|---|
id * | string | The comment id from list_comments. |
update_status
Move a comment along the board. Set In Progress when you start it, and In Review when the change is ready for a human — only a person resolves a comment, so never set Resolved yourself.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
status * | string | Stage: queue / todo / in_progress / in_review / resolved. Legacy "open" and "done" are accepted too. |
propose_change
Submit the modified UI for a comment: the rewritten HTML (and optional CSS) that resolves the PM's request. This stores your proposal on the comment so the dev team can review the code and a live preview in the dashboard. Use get_comment first to see the original element, its computed styles, and the screenshot.
| Parameter | Type | Description |
|---|---|---|
html * | string | The modified element markup that implements the requested change. |
id * | string | The comment id from list_comments. |
css | string | Accompanying CSS. Omit if the styling is inlined in the HTML. |
notes | string | A short explanation of what you changed and why. |
get_latest_selection
What the user last selected in the browser, with its element, computed styles and the source files most likely to render it. Use this when someone says "this element" or "what I'm looking at" and no thread exists yet.
get_selection_history
The recent element selections, newest first — useful when the user clicked a few things and you need to pick the right one.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many to list. Defaults to 10. |
get_element_context
Full context for one element: the element, the page, its key computed styles, the ranked source files that probably render it, and a ready-made edit prompt. Pass thread_id to work from a stored comment, or nothing to use the latest live selection. Call this before editing anything.
| Parameter | Type | Description |
|---|---|---|
include_prompt | boolean | Include the edit prompt. Defaults to true. |
selection_id | string | A specific selection by correlation id (see get_selection_history). Omit for the most recent. |
thread_id | string | Work from a stored comment instead of a live selection. |
find_source_for_selection
Just the ranked source files for the current selection or a stored thread — for when you only need to know where the component lives. Heuristic: verify the top candidate before editing it.
| Parameter | Type | Description |
|---|---|---|
selection_id | string | A specific selection by correlation id (see get_selection_history). Omit for the most recent. |
thread_id | string | Work from a stored comment instead of a live selection. |
get_companion_messages
Read what the person watching has said while you were working. Messages are ALSO delivered automatically on every other tool result, so you rarely need this — use it when you want to check before finishing a task, or when someone asked you to wait for their input.
| Parameter | Type | Description |
|---|---|---|
drain | boolean | Set false to read without consuming. Default true. |
reply_to_companion
Answer the person watching, in the panel they are looking at. Use this when a companion message needs a response, when you need a decision before continuing, or when you finish something they asked about.
| Parameter | Type | Description |
|---|---|---|
body * | string | Your reply. Markdown is fine. |
inReplyTo | string | The id of the message you are answering. |
get_activity_summary
What this machine's agent sessions have been doing: sessions, tool-call counts, files touched, and whether a session is still live. Use it to understand what has already been tried before starting, or to answer "what have you been working on?".
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many sessions to summarize. Default 5. |
session_id | string | Just this session. |
get_recent_events
The raw agent event stream — tool calls, prompts, session starts and stops — newest first. Use it when you need to know exactly what has run, rather than a summary.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many events. Default 30. |
type | string | Filter to one type, e.g. "tool_use" or "prompt_submit". |
get_files_touched
Every file the agent has touched in the recorded sessions, in first-seen order. Use it to see the blast radius of the work so far before adding to it.
get_dashboard_url
The local URL of the live activity dashboard — a page a person can open to watch what the agent is doing right now. Give them this when they ask to see progress.
install_agent_hooks
Install the Claude Code hooks that report tool use, prompts and sessions to Loupe. Idempotent (running it twice changes nothing), backed up before writing, and it never touches another tool's hook entries. Opt-in: nothing installs these on its own.
| Parameter | Type | Description |
|---|---|---|
path | string | The settings file to write. Defaults to ~/.claude/settings.json. |
mark_thread_addressed
Hand a thread back to a human: it moves to In Review and, optionally, posts your closing note. Use this when the change is ready. It CANNOT resolve a thread — only a person does that — which is why there is no status argument.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string | The thread you have addressed. |
message | string | A short note for the reviewer — what changed and where to look. Include a preview URL if there is one. |
add_thread_message
Reply on a thread without changing its status — progress notes, questions, or the preview URL when it goes live. The status is left exactly as it was.
| Parameter | Type | Description |
|---|---|---|
message * | string | Markdown. Say something useful; a person reads this. |
thread_id * | string |
get_thread_conversation
The whole conversation on a thread: the original request, then every reply with its author. Read it before answering so you are not repeating something already said.
| Parameter | Type | Description |
|---|---|---|
thread_id * | string |
create_pr_for_thread
Open a pull request for a fix — or, more usually, add it to the one the repo already has. One working branch per repo accumulates every fix as its own commit, and the PR body keeps a table of them. If that PR was merged or closed, a fresh branch is started automatically. Use `get_element_context` first to find the file, then pass the full new contents of each file you changed.
| Parameter | Type | Description |
|---|---|---|
description * | string | One line for the PR table, e.g. "larger checkout button". |
files * | array | Every file you changed. They land as one atomic commit. |
repo * | string | Owner/name, e.g. "acme/web". |
thread_id * | string | The thread this fix answers. |
base_branch | string | What to branch from. Defaults to "main". |
branch_name | string | Override the branch name. Rarely needed. |
revision_of | string | Set to a thread id when this is a revision — it gets its own revision-* branch rather than joining the accumulating one. |