mcp

v0.15.0
@loupekit/mcp Checked 4 days ago Published 29 days ago

MCP 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.

ParameterTypeDescription
branchstringFilter to one branch, e.g. "main".
changeTypestringFilter by change type.
prioritystringFilter by priority.
repostringFilter to one repository, e.g. "org/repo".
statusstringFilter by stage. Omit for all.
urlstringFilter 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.

ParameterTypeDescription
id *stringThe 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.

ParameterTypeDescription
id *string
status *stringStage: 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.

ParameterTypeDescription
html *stringThe modified element markup that implements the requested change.
id *stringThe comment id from list_comments.
cssstringAccompanying CSS. Omit if the styling is inlined in the HTML.
notesstringA 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.

ParameterTypeDescription
limitintegerHow 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.

ParameterTypeDescription
include_promptbooleanInclude the edit prompt. Defaults to true.
selection_idstringA specific selection by correlation id (see get_selection_history). Omit for the most recent.
thread_idstringWork 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.

ParameterTypeDescription
selection_idstringA specific selection by correlation id (see get_selection_history). Omit for the most recent.
thread_idstringWork 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.

ParameterTypeDescription
drainbooleanSet 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.

ParameterTypeDescription
body *stringYour reply. Markdown is fine.
inReplyTostringThe 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?".

ParameterTypeDescription
limitintegerHow many sessions to summarize. Default 5.
session_idstringJust 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.

ParameterTypeDescription
limitintegerHow many events. Default 30.
typestringFilter 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.

ParameterTypeDescription
pathstringThe 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.

ParameterTypeDescription
thread_id *stringThe thread you have addressed.
messagestringA 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.

ParameterTypeDescription
message *stringMarkdown. 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.

ParameterTypeDescription
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.

ParameterTypeDescription
description *stringOne line for the PR table, e.g. "larger checkout button".
files *arrayEvery file you changed. They land as one atomic commit.
repo *stringOwner/name, e.g. "acme/web".
thread_id *stringThe thread this fix answers.
base_branchstringWhat to branch from. Defaults to "main".
branch_namestringOverride the branch name. Rarely needed.
revision_ofstringSet to a thread id when this is a revision — it gets its own revision-* branch rather than joining the accumulating one.