프리뷰 배포에서 수집된 리뷰 코멘트를 코딩 에이전트가 읽고, 조치하고, 해결할 수 있도록 지원합니다.
다른 이름 maple-kit/maple, @maple-kit/mcp
- 스타
- 22
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 0.17.1
- 마지막 커밋
- 2026년 11월 3일
- 라이선스
- Apache-2.0
Maple MCP란?
Maple은(는) MCP server입니다. 프리뷰 배포에서 수집된 리뷰 코멘트를 코딩 에이전트가 읽고, 조치하고, 해결할 수 있도록 지원합니다.
프로젝트 README에서 생성된 요약
Maple MCP server 정보
Maple은 코딩 에이전트가 프리뷰 배포에서 발견된 리뷰 코멘트와 직접 상호작용할 수 있는 방법을 제공합니다. AI 클라이언트가 특정 피드백을 읽고, 뷰포트나 스크린샷을 통해 컨텍스트를 이해하며, 필요한 코드 변경을 적용하고, 해당 코멘트를 해결됨 상태로 표시할 수 있습니다. 이를 통해 에이전트가 개발 프로세스 중에 시각적 또는 기능적 비판 사항을 자율적으로 처리할 수 있는 폐쇄 루프를 형성합니다.
개발자는 .maple/ 디렉토리에서 코멘트를 읽어 이 서버를 로컬에서 사용하거나, GITHUB_TOKEN, MAPLE_GITHUB_OWNER, MAPLE_GITHUB_REPO를 제공하여 GitHub에 연결할 수 있습니다. 이 서버에는 Claude Code와 같은 클라이언트를 위해 설계된 특화된 stop hook이 포함되어 있어, 열려 있는 코멘트가 있는 동안 에이전트가 작업을 완료하는 것을 방지합니다. 또한 MAPLE_URL을 통해 배포된 라우트와 통신하여 코멘트가 해결되면 체크 결과를 다시 게시함으로써 머지 게이트(merge gates)를 관리하는 기능도 지원합니다.
활용 사례
- 1코멘트 해결 자동화에이전트가 특정 코멘트를 식별하고, 수정을 적용하며, 이를 해결한 커밋을 기록할 수 있습니다.
- 2새로운 피드백 모니터링개발자가 에이전트에게 특정 브랜치에 리뷰어가 새로운 코멘트를 게시할 때까지 대기하도록 지시할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Maple MCP 설치 방법
형식 확인: 2026년 11월 10일Claude Code에 Maple MCP 설치
$ claude mcp add --env GITHUB_TOKEN=<YOUR_GITHUB_TOKEN> maple -- npx -y @maple-kit/mcpCursor에 Maple MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"maple": {
"command": "npx",
"args": [
"-y",
"@maple-kit/mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}VS Code에 Maple MCP 설치
.vscode/mcp.json
{
"servers": {
"maple": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@maple-kit/mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Claude Desktop에 Maple MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"maple": {
"command": "npx",
"args": [
"-y",
"@maple-kit/mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Codex에 Maple MCP 설치
~/.codex/config.toml
[mcp_servers.maple] command = "npx" args = ["-y", "@maple-kit/mcp"] [mcp_servers.maple.env] GITHUB_TOKEN = "<YOUR_GITHUB_TOKEN>"
Gemini CLI에 Maple MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"maple": {
"command": "npx",
"args": [
"-y",
"@maple-kit/mcp"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}구성
GITHUB_TOKEN비밀A 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.
| 이름 | 설명 | 유형 |
|---|---|---|
| GITHUB_TOKEN | A token that can read and write the repository's pull request comments. Required for the github store. | 비밀 |
| 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. |
자동 검사
2026년 11월 12일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음통과
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지와 의존성에 심각한 보안 권고 없음통과
README
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.
Maple MCP 질문
Maple MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --env GITHUB_TOKEN=<YOUR_GITHUB_TOKEN> maple -- npx -y @maple-kit/mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Maple MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
에이전트가 무엇을 수정해야 하는지 어떻게 알 수 있나요?
에이전트는 도구를 사용하여 파일 및 라인 번호, 뷰포트, 스크린샷, 주변 마크업을 포함한 코멘트 컨텍스트를 가져옵니다.
GitHub 저장소 없이도 Maple을 사용할 수 있나요?
네, GitHub 인증 정보를 제공하지 않으면 서버가 작업 디렉토리 내의 로컬 .maple/ 디렉토리에 코멘트를 읽고 씁니다.
코멘트가 아직 해결되지 않았는데 에이전트가 작업을 종료하려고 하면 어떻게 되나요?
maple-stop-hook을 통해 아직 열려 있거나 재검증이 필요한 코멘트가 있는 경우 세션을 차단하여 에이전트가 작업을 종료하는 것을 방지할 수 있습니다.