
worldnine/scrapbox-cosense-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
worldnine/scrapbox-cosense-mcp는 MCP 서버 후보가 https://github.com/worldnine/scrapbox-cosense-mcp.에서 수입되었습니다
개요
worldnine/scrapbox-cosense-mcp는 MCP 서버 후보가 https://github.com/worldnine/scrapbox-cosense-mcp.에서 수입되었습니다
개요(AI 번역)
일본말 첫걸음
개요
MCP 서버 (이전 Scrapbox).
| 도구 | 설명 | Auth 필수 |
|---|---|---|
get_page |
페이지 내용, 메타데이터 및 링크 | 개인 프로젝트의 경우 |
list_pages |
분류·편리한 페이지(최대 1000명) | 개인 프로젝트의 경우 |
search_pages |
전체 텍스트 검색 키워드 강조 (최대 100개 결과) | 민간사업 |
create_page |
Markdown/Scrapbox body로 페이지 만들기 | 네 |
| [T4] | 페이지별 직접 URL 생성 | No |
insert_lines |
페이지별 지정된 줄 후 삽입 텍스트 | 예 |
edit_lines |
멀티라인블록(First match, or all with [T7]])을 포함한 정확한 매치라인 교체 | 네 |
delete_lines |
멀티라인블록(First match, or all with [T9]])을 포함한 정확한 매치라인 삭제 | 네 |
delete_page |
페이지를 삭제 - 선택 해제, 아래를 참조하십시오 | 예 |
rewrite_page |
페이지 전체 콘텐츠 교체 - 옵트인, 아래에서 보기 | 네 |
get_smart_context |
AI-optimized 형식의 페이지와 연결된 페이지 (1-hop/2-hop) | 네 |
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
scrapbox-cosense-mcp
Overview
MCP server for Cosense (formerly Scrapbox).
| Tool | Description | Auth Required |
|---|---|---|
get_page |
Get page content, metadata, and links | For private projects |
list_pages |
Browse pages with sorting and pagination (max 1000) | For private projects |
search_pages |
Full-text search with keyword highlighting (max 100 results) | For private projects |
create_page |
Create a page with a Markdown/Scrapbox body | Yes |
get_page_url |
Generate direct URL for a page | No |
insert_lines |
Insert text after a specified line in a page | Yes |
edit_lines |
Replace exact-match line(s), including a multi-line block (first match, or all with matchAll) |
Yes |
delete_lines |
Delete exact-match line(s), including a multi-line block (first match, or all with matchAll) |
Yes |
delete_page |
Delete a page — opt-in, see below | Yes |
rewrite_page |
Replace a page’s entire content — opt-in, see below | Yes |
get_smart_context |
Get a page and its linked pages (1-hop/2-hop) in AI-optimized format | Yes |
create_page, insert_lines, edit_lines, and rewrite_page support a format parameter ("markdown" or "scrapbox") to control content conversion.
edit_lines replaces only the first matching line by default. Set matchAll: true to replace every occurrence. The default is deliberately conservative: a line such as a bullet marker or a blank line can repeat many times in a page, and replacing all of them at once is rarely what the caller intended.
targetLineText may contain newlines to match a contiguous block of lines. The block is replaced as a whole, so n lines can become m lines (for example, collapsing several lines into one). Block matches with matchAll: true are non-overlapping.
delete_lines uses the same exact-match (and block) semantics but removes the matched lines instead of replacing them. It refuses to delete the title line (the first line), because that would rename or remove the page itself — use delete_page for that.
delete_page and rewrite_page are opt-in
delete_page and rewrite_page are not registered unless COSENSE_ENABLE_DELETE=true is set. Without it neither tool appears in the tool list at all, so an agent cannot call them even by mistake. This server is often added to a shared MCP configuration, so whole-page destruction is exposed only to those who deliberately turn it on.
The reasoning: insert_lines, edit_lines, and delete_lines all require an exact match, which is only possible if the caller has actually read the page — they can only destroy lines they already know. delete_page and rewrite_page act on the entire page regardless of whether the caller has read it, so they get a separate opt-in gate.
delete_page removes the whole page. There is no undo. Two further guards are built in:
설치
npx -y scrapbox-cosense-mcp설정
{
"mcpServers": {
"cosense-notes": {
"command": "npx",
"args": ["-y", "scrapbox-cosense-mcp"],
"env": {
"COSENSE_PROJECT_NAME": "notes",
"COSENSE_MCP_PAT": "your-personal-access-token",
"COSENSE_TOOL_SUFFIX": "notes",
"COSENSE_ENABLE_DELETE": "true"
}
},
"cosense-archive": {
"command": "npx",
"args": ["-y", "scrapbox-cosense-mcp"],
"env": {
"COSENSE_PROJECT_NAME": "archive",
"COSENSE_MCP_PAT": "your-personal-access-token",
"COSENSE_TOOL_SUFFIX": "archive"
}
}
}
}