Permite que um agente de codificação leia, atue e resolva comentários de revisão coletados em deployments de preview.
Também conhecido como maple-kit/maple, @maple-kit/mcp
- Stars
- 23
- Ferramentas
- —
- Downloads, 30 dias
- —
- Versão mais recente
- 0.17.1
- Último commit
- 3 de nov. de 2026
- Licença
- Apache-2.0
O que é o MCP Maple?
Maple é um MCP server. Permite que um agente de codificação leia, atue e resolva comentários de revisão coletados em deployments de preview.
Resumo gerado a partir do README do projeto
Sobre o MCP server de Maple
O Maple oferece uma maneira para agentes de codificação interagirem diretamente com comentários de revisão encontrados em deployments de preview. Ele permite que um cliente de IA leia feedbacks específicos, entenda o contexto por meio de viewports ou screenshots, aplique as alterações de código necessárias e marque esses comentários como resolvidos. Isso cria um ciclo fechado onde um agente pode tratar de forma autônoma críticas visuais ou funcionais durante o processo de desenvolvimento.
Desenvolvedores podem usar este servidor localmente, lendo comentários de um diretório .maple/, ou conectá-lo ao GitHub fornecendo um GITHUB_TOKEN, MAPLE_GITHUB_OWNER e MAPLE_GITHUB_REPO. O servidor inclui um stop hook especializado, projetado para clientes como o Claude Code, para evitar que um agente finalize sua tarefa enquanto ainda existirem comentários abertos. Ele também suporta o gerenciamento de merge gates ao se comunicar com rotas deployadas via MAPLE_URL para republicar os resultados dos checks assim que os comentários forem resolvidos.
O que você pode fazer com ele
- 1Automatizar a resolução de comentáriosUm agente pode identificar um comentário específico, aplicar a correção e registrar o commit que a resolveu.
- 2Monitorar novos feedbacksUm desenvolvedor pode instruir um agente a aguardar que um revisor poste novos comentários em um branch específico.
Escrito a partir do README do projeto. Cada caso de uso é verificado com uma citação dele.
Como instalar o MCP Maple
Formatos verificados em 10 nov 2026Adicionar ao CursorAdicionar ao GooseInstalar o MCP Maple no Claude Code
$ claude mcp add --env 'GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>' maple -- npx -y @maple-kit/mcpInstalar o MCP Maple no Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"maple": {
"command": "npx",
"args": [
"-y",
"@maple-kit/mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Instalar o MCP Maple no VS Code
.vscode/mcp.json
{
"servers": {
"maple": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@maple-kit/mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Instalar o MCP Maple no VS Code CLI
$ code --add-mcp '{"name":"maple","type":"stdio","command":"npx","args":["-y","@maple-kit/mcp"],"env":{"GITHUB_TOKEN":"<YOUR_GITHUB_TOKEN>"}}'Instalar o MCP Maple no Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"maple": {
"command": "npx",
"args": [
"-y",
"@maple-kit/mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Instalar o MCP Maple no Codex
$ codex mcp add maple --env 'GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>' -- npx -y @maple-kit/mcpInstalar o MCP Maple no Codex config.toml
~/.codex/config.toml
[mcp_servers.maple] command = "npx" args = ["-y", "@maple-kit/mcp"] [mcp_servers.maple.env] GITHUB_TOKEN = "<YOUR_GITHUB_TOKEN>"
Instalar o MCP Maple no Gemini CLI
$ gemini mcp add -s user -e 'GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>' maple npx -- -y @maple-kit/mcpInstalar o MCP Maple no Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"maple": {
"command": "npx",
"args": [
"-y",
"@maple-kit/mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Configuração
GITHUB_TOKENSecretoA token that can read and write the repository's pull request comments. Required for the github store.
MAPLE_GITHUB_OWNERThe repository's owner. Required for the github store.
MAPLE_GITHUB_REPOThe repository. Required for the github store.
MAPLE_STOREgithub, the default when a forge is configured, or file, the comments under .maple/ on this machine.
| Nome | Descrição | Tipo |
|---|---|---|
| GITHUB_TOKEN | A token that can read and write the repository's pull request comments. Required for the github store. | Secreto |
| MAPLE_GITHUB_OWNER | The repository's owner. Required for the github store. | |
| MAPLE_GITHUB_REPO | The repository. Required for the github store. | |
| MAPLE_STORE | github, the default when a forge is configured, or file, the comments under .maple/ on this machine. |
Verificações automatizadas
Executado em 12 de nov. de 2026Relatório completo →Passou em nossas verificações automatizadas. Isso não é uma auditoria de segurança: leia o código e dê ao servidor o acesso mais restrito de que ele precisa. Como as verificações funcionam
- Repositório de origem vinculado e acessívelPassou
- Licença de código aberto (OSI)Passou
- Commit ou release no último anoPassou
- Nome do pacote não é próximo a um pacote popularPassou
- O endpoint remoto usa HTTPSNão verificado
- Ferramentas destrutivas estão rotuladasNão verificado
- Sem instruções ocultas para o modeloPassou
- Nenhum aviso crítico no pacote ou em suas dependênciasPassou
README
Ver no GitHub@maple-kit/mcp
The Model Context Protocol server that hands a coding agent the review comments Maple collected on a preview deployment.
Pre-release. Every package here is 0.x and makes no compatibility promise.
The agent waits for a comment, reads it with its context — file:line from
the tagger, the viewport, the screenshot, the mock it was written under — makes
the change, and resolves it against the commit that fixed it. The reviewer's
half is the overlay; the two meet in the store.
Install
npm install @maple-kit/mcp
Two binaries ship: maple-mcp, the server, and maple-stop-hook, which stops
an agent from calling itself finished while comments are still open.
Connect an agent
A client starts the server with no arguments, so it is configured through the
environment. In Claude Code's .mcp.json:
{
"mcpServers": {
"maple": {
"command": "npx",
"args": ["-y", "-p", "@maple-kit/mcp", "maple-mcp"],
"env": { "MAPLE_GITHUB_OWNER": "acme", "MAPLE_GITHUB_REPO": "web" }
}
}
}
and run the client under op run --env-file so GITHUB_TOKEN never lands in a
file. A missing value fails at startup rather than on the first tool call.
| Name | Secret | What it is |
|---|---|---|
GITHUB_TOKEN |
Yes | A token that can read and write pull-request comments. Required for the github store. |
MAPLE_GITHUB_OWNER |
No | The repository's owner. Required for the github store. |
MAPLE_GITHUB_REPO |
No | The repository. Required for the github store. |
MAPLE_GITHUB_API |
No | The API root, for Enterprise Server. |
MAPLE_STORE |
No | github, the default when a forge is configured, or file, the default when none is: the comments under .maple/. |
MAPLE_BRANCH |
No | The branch the Stop hook checks, else the one checked out. The server ignores it. |
MAPLE_URL |
No | The deployed route's mount URL. A resolve asks it to republish the gate. |
MAPLE_GATE_TOKEN |
Yes | For CI only: the gate App's installation token. Not with MAPLE_URL. |
MAPLE_GATE_APP_ID |
No | The gate App's id, so it updates its own check run rather than another's. |
MAPLE_REQUIRE_APPROVAL |
No | true to hold the gate until somebody approves, matching the route and CI. |
With no forge
Set none of GITHUB_TOKEN, MAPLE_GITHUB_OWNER and MAPLE_GITHUB_REPO and the
server reads and writes the comments fileStore() keeps under .maple/ in its
working directory's repository, so the loop works on a laptop with no pull
request. MAPLE_STORE=file says so explicitly. It is a laptop's store, not a
preview pod's: docs/connectors.md has the argument. The Stop hook reads the
same folder for the branch checked out in the session's working directory, and
stays silent where there is no .maple/ folder, no comments for the branch or
no repository.
Tools
| Tool | Reads | What it does |
|---|---|---|
list_comments(branch, statuses?) |
✓ | Return the review comments on a branch, newest first. |
wait_for_comments(branch, cursor?, timeoutMs?) |
✓ | Block until a new comment arrives or the wait elapses. Returns status "timeout" rather than failing when nothing arrives. |
resolve_comment(id, sha, note?) |
Mark a comment resolved, recording the commit that addressed it. | |
get_comment_context(id, branch) |
✓ | Return everything needed to act on one comment: anchor, viewport, surrounding markup and any replay link. A comment written under a Maple Mock carries mock.recipe and mock.replay, a link to the page in that state. |
start_solo(previewUrl) |
Start a bridge on localhost and return the link that pairs a deployed preview with it. The reviewer opens the link in their browser and the comments they write there land in .maple/ for list_comments and wait_for_comments to read. They never count toward the merge gate. |
wait_for_comments is clamped to 55 seconds because every coding client cuts a
tool call off at 60, and it emits notifications/progress every 15 seconds. A
timeout is a result: an agent that treats one as an error stops looping the
first time nobody is looking. Its cursor is a timestamp; omit it on the first
call to drain whatever is already waiting.
The Stop hook
MCP gives a server no way to interrupt a client, so the loop is closed from the
other end. Claude Code's Stop hook runs when the agent believes it is
finished, and Maple's answers with the comments still open:
{
"hooks": {
"Stop": [
{ "hooks": [{ "type": "command", "command": "npx -y -p @maple-kit/mcp maple-stop-hook" }] }
]
}
}
The Maple Claude Code plugin registers it for you. It blocks while a comment
is open or needs_reverify, at most eight stops in a row per session; on the
ninth it lets the session end and says what is still open, which beats an agent
resolving comments to escape. The count is kept per session_id in the system
temp directory, and a stop no block caused starts it again.
The hook does not see .mcp.json's env. That block is handed to the MCP
server alone; a hook runs in the client's own environment. So
MAPLE_GITHUB_OWNER, MAPLE_GITHUB_REPO and GITHUB_TOKEN have to be set
where the client itself starts — under the same op run --env-file — or the
hook fails naming the one missing. With neither of the first two set, it reads
the comments under .maple/ for the current branch instead, and lets every
stop through where there are none. MAPLE_BRANCH defaults to the branch checked out in the
session's working directory.
Resolving clears the gate
With MAPLE_URL set to a deployed route's mount URL, such as
https://web-482.preview.acme.dev/api/maple, resolve_comment asks that route
to republish maple/visual-review, so an agent that resolves the last comment
with nothing left to push does not leave the check holding on finished work.
The request carries the branch and GITHUB_TOKEN, which must be able to push
to the repository. The route decides the verdict and publishes with the gate
App's own credentials, which never leave it. A failed refresh is logged to
stderr and the resolve is still recorded.
MAPLE_GATE_TOKEN is the other way, for CI: a gate App installation token the
server publishes with directly. It expires an hour after it is minted, so it
suits a job, not a session. Setting both fails at startup.
Documentation
- The agent loop
- The merge gate
- The
maple-reviewskill turns a pull request's```maplecomments into a worklist without the server.
Licence
Apache-2.0. See LICENSE and NOTICE.
Perguntas sobre o MCP Maple
Como adiciono o MCP Maple ao Claude Code?
Execute claude mcp add --env 'GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>' maple -- npx -y @maple-kit/mcp no seu terminal. Adicione --scope user para torná-lo disponível em todos os projetos.
Como adiciono o MCP Maple ao Cursor?
Abra ~/.cursor/mcp.json e adicione o servidor em mcpServers, usando a configuração do Cursor mostrada na seção de instalação acima.
Como o agente sabe o que corrigir?
O agente utiliza ferramentas para obter o contexto do comentário, incluindo o arquivo, o número da linha, o viewport, screenshots e a marcação ao redor.
Posso usar o Maple sem um repositório no GitHub?
Sim, caso nenhuma credencial do GitHub seja fornecida, o servidor lê e escreve os comentários em um diretório local .maple/ no diretório de trabalho.
O que acontece se o agente tentar finalizar enquanto ainda houver comentários abertos?
O maple-stop-hook pode impedir que o agente finalize, bloqueando a sessão se ainda houver comentários abertos ou que precisem de re-verificação.