Skip to main content
Glama
worldnine

Scrapbox Cosense MCP Server

scrapbox-cosense-mcp

日本語ドキュメント / Japanese

개요

Cosense(이전 Scrapbox)용 MCP 서버입니다.

도구

설명

인증 필요

get_page

페이지 콘텐츠, 메타데이터 및 링크 가져오기

비공개 프로젝트의 경우

list_pages

페이지 정렬 및 페이지네이션으로 탐색(최대 1000개)

비공개 프로젝트의 경우

search_pages

키워드 하이라이트가 포함된 전체 텍스트 검색(최대 100개 결과)

비공개 프로젝트의 경우

create_page

WebSocket API를 통해 Markdown/Scrapbox 본문으로 페이지 생성

예

get_page_url

페이지의 직접 URL 생성

아니요

insert_lines

페이지의 지정된 줄 뒤에 텍스트 삽입

예

edit_lines

정확히 일치하는 줄(들)을 교체하며, 여러 줄 블록 포함(matchAll 사용 시 첫 번째 일치 또는 전체)

예

delete_lines

정확히 일치하는 줄(들)을 삭제하며, 여러 줄 블록 포함(matchAll 사용 시 첫 번째 일치 또는 전체)

예

delete_page

모든 줄을 비워 페이지 삭제 — 옵트인(opt-in), 아래 참조

예

rewrite_page

페이지의 전체 콘텐츠 교체 — 옵트인(opt-in), 아래 참조

예

get_smart_context

페이지와 연결된 페이지(1-hop/2-hop)를 AI 최적화 형식으로 가져오기

예

create_page, insert_lines, edit_lines, rewrite_page는 콘텐츠 변환을 제어하는 format 매개변수("markdown" 또는 "scrapbox")를 지원합니다.

edit_lines는 기본적으로 첫 번째 일치 줄만 교체합니다. matchAll: true로 설정하면 모든 항목을 교체합니다. 기본값은 의도적으로 보수적입니다. 글머리 기호나 빈 줄 같은 줄은 페이지에서 여러 번 반복될 수 있으며, 한 번에 모두 교체하는 경우는 호출자가 의도한 경우가 드물기 때문입니다.

targetLineText는 연속된 여러 줄 블록을 매칭하기 위해 줄바꿈을 포함할 수 있습니다. 블록은 전체적으로 교체되므로 n개 줄이 m개 줄이 될 수 있습니다(예: 여러 줄을 한 줄로 축소). matchAll: true를 사용한 블록 매칭은 겹치지 않습니다.

delete_lines는 동일한 정확히 일치(및 블록) 의미를 사용하지만, 교체 대신 일치하는 줄을 제거합니다. 제목 줄(첫 번째 줄)을 삭제하는 것은 거부합니다. 제목 줄을 삭제하면 페이지 자체가 이름 변경되거나 제거될 수 있기 때문입니다. 이 경우 delete_page를 사용하세요.

delete_page 및 rewrite_page는 옵트인(opt-in)입니다

delete_page와 rewrite_page는 COSENSE_ENABLE_DELETE=true가 설정되지 않으면 등록되지 않습니다. 설정이 없으면 두 도구 모두 도구 목록에 아예 나타나지 않으므로 에이전트가 실수로 호출할 수도 없습니다. 이 서버는 공유 MCP 설정에 추가되는 경우가 많으므로, 페이지 전체 삭제는 의도적으로 활성화한 사람에게만 노출됩니다.

이유: insert_lines, edit_lines, delete_lines는 모두 정확히 일치해야 하므로 호출자가 실제로 페이지를 읽은 경우에만 가능합니다. 즉, 이미 알고 있는 줄만 변경할 수 있습니다. delete_page와 rewrite_page는 호출자가 페이지를 읽었는지 여부와 관계없이 페이지 전체에 영향을 주므로 별도의 옵트인 게이트가 필요합니다.

delete_page는 페이지의 모든 줄을 비우며, Cosense는 모든 줄이 비워지면 페이지를 제거합니다. 실행 취소는 불가능합니다. 두 가지 추가 안전장치가 내장되어 있습니다.

  • 페이지가 이미 존재해야 합니다. 페이지가 없으면 조용히 성공하지 않고 오류를 반환합니다. (REST API는 생성된 적 없는 페이지에도 제목 줄을 반환하므로, create_page와 같은 방식으로 persistent를 확인합니다.)

  • dryRun: true는 페이지에 영향을 주지 않고 제거될 줄 수와 그중 처음 5개를 보고합니다.

rewrite_page는 페이지의 전체 콘텐츠를 교체합니다(제목은 첫 번째 줄로 유지됩니다). 동일한 안전장치에 두 가지가 추가됩니다.

  • 페이지가 이미 존재해야 합니다. persistent 확인이 create_page와 반대이므로 오타로 새 페이지가 조용히 생성되지 않습니다.

  • 빈 콘텐츠는 거부됩니다. 페이지 제거는 delete_page의 역할입니다.

  • dryRun: true는 페이지에 영향을 주지 않고 변경 전후 줄 수와 미리보기를 보고합니다.

이 서버를 여러 프로젝트에 대해 여러 인스턴스로 실행하는 경우, 삭제를 허용할 각 인스턴스에 변수를 설정하세요:

{
  "mcpServers": {
    "cosense-notes": {
      "command": "npx",
      "args": ["-y", "scrapbox-cosense-mcp"],
      "env": {
        "COSENSE_PROJECT_NAME": "notes",
        "COSENSE_SID": "s:your-session-id",
        "COSENSE_TOOL_SUFFIX": "notes",
        "COSENSE_ENABLE_DELETE": "true"
      }
    },
    "cosense-archive": {
      "command": "npx",
      "args": ["-y", "scrapbox-cosense-mcp"],
      "env": {
        "COSENSE_PROJECT_NAME": "archive",
        "COSENSE_SID": "s:your-session-id",
        "COSENSE_TOOL_SUFFIX": "archive"
      }
    }
  }
}

여기서 notes 인스턴스는 delete_page_notes를 노출하고, archive 인스턴스는 삭제 도구를 전혀 노출하지 않습니다.

insert_lines와 edit_lines는 대상 줄이 없을 때 다르게 동작합니다. insert_lines는 페이지 끝에 추가합니다. "어딘가에 이 텍스트를 추가"는 여전히 합리적인 결과가 있기 때문입니다. edit_lines는 오류를 반환하고 페이지를 건드리지 않습니다. "이 특정 줄을 교체"에는 의미 있는 대체 동작이 없기 때문입니다. 교체 내용을 추가하면 호출자가 요청한 적 없는 페이지가 조용히 생성될 수 있습니다.

Related MCP server: scrapbox-cosense-mcp-editable

빠른 시작

데스크톱 확장(.mcpb) — 가장 쉬운 방법

  1. GitHub Releases에서 scrapbox-cosense-mcp.mcpb 다운로드

  2. 더블 클릭 — Claude Desktop에 설치 대화상자가 열립니다

  3. 프로젝트 이름(비공개 프로젝트의 경우 세션 ID)을 입력합니다

Claude Code 플러그인

  1. 마켓플레이스 추가:

    /plugin marketplace add worldnine/scrapbox-cosense-mcp
  2. 플러그인 설치:

    /plugin install scrapbox-cosense@worldnine-scrapbox-cosense-mcp

    기본적으로 전역으로 설치됩니다. 다른 범위는 --scope project 또는 --scope local을 사용하세요.

  3. 설정 파일에서 환경 변수를 설정하세요:

    {
      "env": {
        "COSENSE_PROJECT_NAME": "your_project_name",
        "COSENSE_SID": "your_sid"
      }
    }

파일

범위

~/.claude/settings.json

모든 프로젝트(전역)

.claude/settings.local.json

이 프로젝트만(gitignore됨)

플러그인에는 MCP 서버 구성과 CLI 작업을 위한 /cosense 스킬이 포함되어 있습니다.

Claude Code(수동 MCP 설정)

플러그인 대신 수동 구성을 선호하는 경우:

claude mcp add scrapbox-cosense-mcp \
  -e COSENSE_PROJECT_NAME=your_project \
  -e COSENSE_SID=your_sid \
  -- npx -y scrapbox-cosense-mcp

Claude Desktop / 기타 MCP 클라이언트

구성 파일에 추가하세요:

클라이언트

구성 파일

Claude Desktop (macOS)

~/Library/Application Support/Claude/claude_desktop_config.json

Claude Desktop (Windows)

%APPDATA%/Claude/claude_desktop_config.json

Cursor

.cursor/mcp.json (프로젝트 루트)

Windsurf

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "scrapbox-cosense-mcp": {
      "command": "npx",
      "args": ["-y", "scrapbox-cosense-mcp"],
      "env": {
        "COSENSE_PROJECT_NAME": "your_project_name",
        "COSENSE_SID": "your_sid"
      }
    }
  }
}

소스에서 빌드

git clone https://github.com/worldnine/scrapbox-cosense-mcp.git
cd scrapbox-cosense-mcp
npm install && npm run build

구성

필수

변수

설명

COSENSE_PROJECT_NAME

사용자의 Scrapbox/Cosense 프로젝트 이름

COSENSE_SID

비공개 프로젝트용 세션 ID(connect.sid 쿠키) — 얻는 방법

선택 사항

변수

기본값

설명

API_DOMAIN

scrapbox.io

API 도메인

SERVICE_LABEL

cosense (scrapbox)

도구 설명에 표시되는 이름

COSENSE_PAGE_LIMIT

100

초기 페이지 가져오기 제한(1–1000)

COSENSE_SORT_METHOD

updated

초기 정렬: updated, created, accessed, linked, views, title

COSENSE_TOOL_SUFFIX

—

여러 인스턴스용 도구 이름 접미사(예: main → get_page_main)

COSENSE_CONVERT_NUMBERED_LISTS

false

Markdown 변환 시 번호 목록을 글머리 기호 목록으로 변환

COSENSE_EXCLUDE_PINNED

false

초기 리소스 목록에서 고정된 페이지 제외

COSENSE_ENABLE_DELETE

false

delete_page 및 rewrite_page 도구(및 delete / rewrite CLI 명령)를 등록합니다. 설정하지 않으면 사용할 수 없습니다.

CLI 사용법

동일한 바이너리는 독립형 CLI로도 작동합니다:

scrapbox-cosense-mcp get "Page Title"
scrapbox-cosense-mcp search "keyword"
scrapbox-cosense-mcp list --sort=updated --limit=20
scrapbox-cosense-mcp create "New Page" --body="Markdown content"
scrapbox-cosense-mcp insert "Page" --after="target line" --text="new text"
scrapbox-cosense-mcp edit "Page" --target="old line" --text="new text"
scrapbox-cosense-mcp delete-lines "Page" --target="old line"
scrapbox-cosense-mcp delete "Page" --dry-run   # needs COSENSE_ENABLE_DELETE=true
scrapbox-cosense-mcp rewrite "Page" --body="new content" --dry-run   # needs COSENSE_ENABLE_DELETE=true
scrapbox-cosense-mcp url "Page Title"

플래그

설명

--compact

토큰 효율적인 간결한 출력(AI 에이전트 권장)

--project=NAME

프로젝트 이름 재정의

--json

JSON으로 출력

--help

도움말 표시(자세한 내용은 <command> --help 지원)

여러 프로젝트

모든 도구는 선택적 projectName 매개변수를 허용하여 단일 서버에서 다른 프로젝트를 대상으로 지정할 수 있습니다. 자격 증명이 다른 여러 비공개 프로젝트의 경우 COSENSE_TOOL_SUFFIX를 사용하여 별도의 서버 인스턴스를 실행하세요.

자세한 구성 예시는 docs/multiple-projects.md를 참조하세요.

개발

명령

설명

npm run build

빌드(TypeScript → JavaScript)

npm run watch

개발 중 자동 재빌드

npm test

테스트 스위트 실행

npm run lint

ESLint 실행

npm run inspector

MCP Inspector로 디버그

기여

  1. main에서 기능 브랜치를 만듭니다

  2. 변경 사항에 대한 테스트를 추가합니다

  3. npm run lint && npm test를 실행합니다

  4. 풀 리퀘스트를 생성합니다 — CI가 자동으로 실행됩니다

라이선스

MIT


Available Tools

9 tools
create_pageA

Create a new page in Scrapbox project on cosense (scrapbox). Creates a new page with the specified title and optional body text. Returns the page creation URL without opening browser. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
bodyNoContent in markdown format (default) or Scrapbox syntax (when format is 'scrapbox'). Avoid duplicating the title in the body since it's automatically displayed at the top. Supports links, code blocks, lists, and emphasis.
titleYesTitle of the new page
formatNoContent format of the body. 'markdown' (default) converts Markdown to Scrapbox syntax. 'scrapbox' passes content through as-is, preserving Scrapbox-native indentation and syntax.
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.
createActuallyNoWhether to actually create the page using WebSocket API. If true (default), creates the page immediately. If false, returns only the creation URL.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the behavioral details. It discloses that it uses the WebSocket API, returns the page creation URL without opening a browser, and mentions the createActually flag behavior. It doesn't address error handling, idempotency, or permissions, which are relevant for a write operation. Overall, it provides some behavioral insight but leaves gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences and front-loaded with the core action and outcome. It packs essential information about return behavior and defaults without redundancy. Every sentence adds value; no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 5 parameters, no output schema, and no annotations, the description covers the key aspects: creation, default project, body format, and the createActually flag. It does not mention what happens if the page already exists or error conditions, but for a straightforward create tool that's acceptable. The description is complete enough for typical agent use, with the main gaps being edge cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so each parameter already has a description. The description adds a useful note about not duplicating the title in the body ('Avoid duplicating the title in the body since it's automatically displayed at the top') and clarifies the default behavior for format and projectName. This exceeds what the schema states, but not significantly, so a baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: 'Create a new page in Scrapbox project on cosense (scrapbox).' It specifies the verb 'create' and the resource 'new page', and distinguishes itself from siblings like search_pages, get_page, and edit_lines by focusing on creation. The phrase 'returns the page creation URL without opening browser' adds clarity on the outcome.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions the default project behavior ('Uses my-cosense-project as default if projectName is not specified') and the body format options, giving context for usage. However, it does not explicitly state when to use this tool over siblings (e.g., when to prefer create_page vs edit_lines), though the create-vs-edit distinction is implicit. No exclusions or when-not-to-use guidance is given, but for a creation tool, this is adequate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

delete_linesA

Delete one or more lines from a Scrapbox page on cosense (scrapbox). Matches the target by exact text. If targetLineText contains newline characters, it is matched as a contiguous block of lines and removed as a whole. By default only the first match is removed; set matchAll to remove every (non-overlapping) occurrence. Refuses to delete the title line (the first line), which would rename or remove the page — use delete_page for that. Returns an error if no match is found. Requires COSENSE_SID. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
matchAllNoIf true, delete every occurrence of the target (a single line or a contiguous block). Block matches are non-overlapping. The operation is atomic: if any match includes the title line, the whole call is refused. Defaults to false (delete only the first match).
pageTitleYesTitle of the page to modify
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.
targetLineTextYesExact text of the line(s) to delete. Matching is case-sensitive and requires full-line exact matches. If it contains newline characters, the consecutive lines are matched as a contiguous block and removed as a whole.

TDQS

A5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Since no annotations are provided, the description carries full burden. It discloses matching semantics, block removal with newlines, default first-match behavior, matchAll option, refusal to delete title line, error handling for no match, authentication requirement (COSENSE_SID), and default project. This is highly transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-organized paragraph that front-loads the primary action and then details edge cases and constraints. Every sentence conveys necessary information without fluff, making it appropriately sized for the complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

As a mutation tool with no output schema and no annotations, the description covers all critical aspects: operation semantics, edge cases (title line, multiple matches, block removal), error conditions, authentication, and defaults. It is complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema is thorough, but the description adds substantial value: exact-match and case-sensitive semantics, newline as block, atomicity for block matches, title-line protection, and default project behavior. This goes beyond the schema's descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool deletes lines from a Scrapbox page and matches by exact text. It also differentiates from delete_page for deleting the title line, distinguishing it from sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance on when to use (delete lines) and when not (use delete_page for deleting the page/title). Also mentions default project behavior, though it doesn't contrast with edit_lines or insert_lines, but the core use case is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

edit_linesA

Replace one or more lines in a Scrapbox page on cosense (scrapbox). Matches the target by exact text and substitutes it with new content (which may span multiple lines). If targetLineText contains newline characters, it is matched as a contiguous block of lines, so any n lines can be replaced with m lines. By default only the first match is replaced; set matchAll to replace every (non-overlapping) occurrence. Returns an error if no match is found. Requires COSENSE_SID. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
formatNoContent format of newText. 'markdown' (default) converts Markdown to Scrapbox syntax. 'scrapbox' passes content through as-is, preserving Scrapbox-native indentation and syntax.
newTextYesReplacement content in markdown format (default) or Scrapbox syntax (when format is 'scrapbox'). May contain multiple lines separated by newline characters.
matchAllNoIf true, replace every occurrence of the target (a single line or a contiguous block). Block matches are non-overlapping. Defaults to false (replace only the first match).
pageTitleYesTitle of the page to modify
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.
targetLineTextYesExact text of the line(s) to replace. Matching is case-sensitive and requires full-line exact matches. If it contains newline characters, the consecutive lines are matched as a contiguous block and replaced as a whole.

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description fully discloses behavior: exact, case-sensitive matching; contiguous newline-block replacement; non-overlapping matchAll; error on missing match; and COSENSE_SID requirement. This gives an agent strong information about side effects and failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact, front-loaded, and has no filler. Every sentence adds a meaningful behavior or default, while keeping the total length reasonable for a six-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema and no annotations, the description is complete: it covers purpose, matching semantics, default behavior, multi-line replacement, project fallback, auth, and error conditions. This gives an agent everything needed to select and invoke the tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the schema already explains targetLineText, newText, format, matchAll, and projectName. The description adds only marginal context beyond the schema, such as 'any n lines can be replaced with m lines' and the no-match error, but not enough to move far beyond the schema baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description opens with 'Replace one or more lines in a Scrapbox page on cosense (scrapbox)', a specific verb and resource. It clearly frames edit_lines as replacement behavior, distinguishing it from insert_lines and delete_lines.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context: exact-text matching, block replacement, first-match default, matchAll option, no-match errors, and auth requirement. It does not explicitly name sibling tools as alternatives or exclusions, but it is easy for an agent to infer when replacement is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_pageB

Get a page from Scrapbox project on cosense (scrapbox). Returns page content and its linked pages. Page content includes title and description in plain text format. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
pageTitleYesTitle of the page
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses key behaviors: it returns 'page content and its linked pages' and specifies the format ('plain text format'). However, it misses details like error handling (e.g., what happens if the page doesn't exist), performance aspects, or authentication needs, which are important for a read operation without annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized with three sentences that are front-loaded: the first states the purpose, the second details returns, and the third covers defaults. There is no wasted text, but it could be slightly more structured (e.g., bullet points for returns) without losing conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description partially compensates by explaining return values ('page content and its linked pages') and format. However, for a tool with two parameters and no structured output, it lacks completeness in areas like error cases, pagination, or example usage, leaving gaps for an AI agent to infer behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters fully. The description adds minimal value beyond the schema by reiterating the default for 'projectName' ('my-cosense-project'), but does not provide additional context like examples or constraints. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get a page from Scrapbox project on cosense (scrapbox).' It specifies the verb ('Get') and resource ('page'), and distinguishes it from siblings like 'create_page' (creation) and 'list_pages' (listing). However, it doesn't explicitly differentiate from 'get_page_url' (which might retrieve a URL rather than content), leaving some ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by stating it 'Uses my-cosense-project project as default if projectName is not specified,' which provides context for when to omit a parameter. However, it lacks explicit guidance on when to use this tool versus alternatives like 'search_pages' or 'get_page_url,' and does not mention prerequisites or exclusions, leaving usage somewhat inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_page_urlA

Generate URL for a page in Scrapbox project on cosense (scrapbox). Returns the direct URL to the specified page without opening it in browser. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the page
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds useful context: the tool generates a URL without browser interaction and has a default project. However, it does not cover potential errors (e.g., if the page doesn't exist), rate limits, authentication needs, or the exact URL format, leaving gaps in behavioral transparency for a tool with no annotation support.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured, consisting of two sentences that efficiently convey the tool's purpose, behavior, and default parameter. Every sentence adds value: the first defines the action and context, and the second clarifies the default project and non-browser behavior, with no redundant or wasted information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description is partially complete. It covers the core functionality and default behavior adequately, but lacks details on error handling, return format (beyond 'direct URL'), and differentiation from siblings. Without annotations or output schema, more context would improve completeness for safe agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with clear descriptions for both parameters in the input schema. The description adds marginal value by reiterating the default project behavior for 'projectName,' but does not provide additional semantic context beyond what the schema already documents, such as examples or constraints on the 'title' parameter. Baseline 3 is appropriate given high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Generate URL for a page in Scrapbox project on cosense (scrapbox).' It specifies the verb ('Generate URL'), resource ('a page'), and platform context ('Scrapbox project on cosense'). However, it does not explicitly differentiate from sibling tools like 'get_page' (which likely retrieves page content rather than just the URL), leaving room for improvement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides some usage context by mentioning the default project ('my-cosense-project') and that it 'Returns the direct URL... without opening it in browser,' which implies a non-interactive use case. However, it lacks explicit guidance on when to use this tool versus alternatives like 'get_page' or 'list_pages,' and does not specify prerequisites or exclusions, relying on implied understanding.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_smart_contextA

Get smart context for a page on cosense (scrapbox). Returns the target page and its linked pages (1-hop or 2-hop) with full content in AI-optimized format. Useful for understanding the context and related knowledge around a specific topic. Requires COSENSE_SID authentication. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the page to get context for
hopCountNoNumber of link hops to include. 1 (default) returns directly linked pages. 2 returns pages linked from linked pages (larger response).
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description explicitly states authentication requirements (COSENSE_SID) and the default project behavior. It also discloses that the tool returns full content and uses AI-optimized formatting. While it does not explicitly state read-only or side effects, the nature of 'get context' is clearly a read operation, and no annotations exist to carry that burden. It adds meaningful behavioral context without contradicting anything.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: it states the purpose, the return value, the use case, authentication, and a default behavior in four sentences with no filler or redundancy. It is well-structured for quick scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is relatively complex (returns target page and linked pages with full contents) and has no output schema, but the description covers the key points: what is returned (page + linked pages, hop counts), the format (AI-optimized), the required auth, and the default project. This is sufficient for an agent to call it appropriately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage for all three parameters. The description repeats the default projectName behavior and mentions hop counts but adds no additional detail beyond what the schema already provides. Baseline 3 is appropriate since the schema fully documents parameters, though the description could have clarified the return format structure slightly more.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: 'Get smart context for a page' on cosense. It specifies the resource (page) and the scope (linked pages 1-hop or 2-hop) and distinguishes itself from sibling tools like get_page or search_pages by emphasizing the AI-optimized format and related-knowledge context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It indicates this tool is useful for understanding context and related knowledge around a topic, which gives a clear usage context. It does not explicitly state when not to use it or mention alternatives like get_page, but the context is clear enough and no misleading guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

insert_linesA

Insert text after a specified line in a Scrapbox page on cosense (scrapbox). If target line not found, text is appended to the end of the page. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
textYesText to insert in markdown format (default) or Scrapbox syntax (when format is 'scrapbox'). Can contain multiple lines separated by newline characters.
formatNoContent format of the text. 'markdown' (default) converts Markdown to Scrapbox syntax. 'scrapbox' passes content through as-is, preserving Scrapbox-native indentation and syntax.
pageTitleYesTitle of the page to modify
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.
targetLineTextYesText content of the line after which to insert new text. If not found, text will be appended to the end of the page.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses the append fallback and default project behavior, adding useful context. However, it does not mention what happens if the page does not exist, how duplicate line matches are handled, or any permission/error conditions. This is adequate but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, succinct, and front-loaded with the core function. No unnecessary wording or repetition. Every word contributes to understanding the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description handles the core insert behavior and fallback logic. It does not cover edge cases like missing pages or ambiguous target lines, but given the schema already documents all parameters and there is no output schema, it is reasonably complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the description adds minimal value beyond what the schema already states. It repeats the default project and append behavior, which are also in the schema. No additional parameter insights are provided, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (insert text after a specified line) and resource (Scrapbox page on cosense). It distinguishes from siblings like edit_lines and delete_lines by focusing on insertion. The verb is specific and the target is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool: when you need to insert new text after a specific line, with a fallback to appending if not found. It does not explicitly mention alternatives or when not to use it, but the wording provides clear context for typical usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_pagesA

Browse and list pages from Scrapbox project on cosense (scrapbox) with flexible sorting and pagination. Use this tool to discover pages by recency, popularity, or alphabetically. Returns page metadata and first 5 lines of content. Available sorting methods: updated (last update time), created (creation time), accessed (access time), linked (number of incoming links), views (view count), title (alphabetical). Different from search_pages which finds content by keywords. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
skipNoNumber of pages to skip
sortNoSort method for the page list
limitNoMaximum number of pages to return (1-1000)
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.
excludePinnedNoWhether to exclude pinned pages from the results

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It does well by describing the return format ('Returns page metadata and first 5 lines of content'), pagination capability (implied through 'skip' parameter), and default project behavior. However, it doesn't mention rate limits, authentication requirements, or error conditions that would be helpful for a read operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded with the core purpose in the first sentence. Each subsequent sentence adds valuable information about usage, return values, sorting options, and sibling differentiation. There's minimal redundancy, though the sorting methods list could be slightly more concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only listing tool with no output schema, the description provides good contextual completeness by explaining what's returned, how to use it versus alternatives, and default behaviors. It covers the essential aspects an agent needs, though additional details about response format structure or error handling would make it more complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds some value by listing all sorting methods and explaining the default project behavior, but doesn't provide additional semantic context beyond what's in the schema descriptions. This meets the baseline expectation when schema coverage is high.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('browse and list pages') and resource ('from Scrapbox project on cosense'), distinguishing it from sibling tools by explicitly contrasting with search_pages. It provides concrete details about what the tool does, including the scope of returned data (page metadata and first 5 lines of content).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool ('to discover pages by recency, popularity, or alphabetically') and when not to use it ('Different from search_pages which finds content by keywords'), providing clear alternatives. It also includes practical guidance about default project behavior, making it easy for an agent to choose between this tool and its sibling.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_pagesA

Search for content within pages in Scrapbox project on cosense (scrapbox). Use this tool to find pages containing specific keywords or phrases. Returns matching pages with highlighted search terms and content snippets. Limited to 100 results maximum. Supports basic search ("keyword"), multiple keywords ("word1 word2" for AND search), exclude words ("word1 -word2"), and exact phrases (""exact phrase""). Different from list_pages which browses pages by metadata. Uses my-cosense-project project as default if projectName is not specified.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query string
projectNameNoTarget project name. If not specified, defaults to 'my-cosense-project'.

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure and does so effectively. It reveals important behavioral traits: result limitation ('Limited to 100 results maximum'), search syntax capabilities ('Supports basic search...'), and default project behavior. However, it doesn't mention potential error conditions, authentication requirements, or rate limits, which prevents a perfect score.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured and front-loaded with the core purpose. Every sentence adds value: purpose statement, usage guidance, return format, limitations, search syntax, sibling differentiation, and default behavior. There's no wasted text, and information is presented in a logical flow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with 2 parameters, 100% schema coverage, and no output schema, the description provides substantial context about behavior, limitations, and usage. It explains what the tool returns ('Returns matching pages with highlighted search terms and content snippets') and search capabilities. The main gap is lack of output format details, which would be helpful given no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the baseline is 3, but the description adds meaningful context beyond the schema. It explains the default project behavior ('Uses my-cosense-project project as default if projectName is not specified') and provides search syntax examples that help interpret the query parameter. This adds practical value for parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verb ('Search for content') and resource ('within pages in Scrapbox project'), and explicitly distinguishes it from sibling tool list_pages ('Different from list_pages which browses pages by metadata'). This provides excellent clarity about what this tool does and how it differs from alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool ('Use this tool to find pages containing specific keywords or phrases') and when to use alternatives ('Different from list_pages which browses pages by metadata'). It also specifies the default project behavior, giving clear context for usage decisions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 5 tool updatesv0.10.1
    • Changedcreate_page2 fields changed
      • changedInput schema / properties / body / description
        Previous value: -"Content in markdown format. Avoid duplicating the title in the body since it's automatically displayed at the top. Supports links, code blocks, lists, and emphasis."New value: +"Content in markdown format (default) or Scrapbox syntax (when format is 'scrapbox'). Avoid duplicating the title in the body since it's automatically displayed at the top. Supports links, code blocks, lists, and emphasis."
      • addedInput schema / properties / format
        Added value: +{
        +  "description": "Content format of the body. 'markdown' (default) converts Markdown to Scrapbox syntax. 'scrapbox' passes content through as-is, preserving Scrapbox-native indentation and syntax.",
        +  "enum": [
        +    "markdown",
        +    "scrapbox"
        +  ],
        +  "type": "string"
        +}
    • Addeddelete_lines
    • Addededit_lines
    • Addedget_smart_context
    • Changedinsert_lines2 fields changed
      • addedInput schema / properties / format
        Added value: +{
        +  "description": "Content format of the text. 'markdown' (default) converts Markdown to Scrapbox syntax. 'scrapbox' passes content through as-is, preserving Scrapbox-native indentation and syntax.",
        +  "enum": [
        +    "markdown",
        +    "scrapbox"
        +  ],
        +  "type": "string"
        +}
      • changedInput schema / properties / text / description
        Previous value: -"Text to insert. Can contain multiple lines separated by newline characters."New value: +"Text to insert in markdown format (default) or Scrapbox syntax (when format is 'scrapbox'). Can contain multiple lines separated by newline characters."
  2. 6 tool updatesv0.4.0
    • Changedcreate_page1 field changed
      • changedInput schema / properties / projectName / description
        Previous value: -"Target project name. If not specified, defaults to 'example-project'."New value: +"Target project name. If not specified, defaults to 'my-cosense-project'."
    • Changedget_page1 field changed
      • changedInput schema / properties / projectName / description
        Previous value: -"Target project name. If not specified, defaults to 'example-project'."New value: +"Target project name. If not specified, defaults to 'my-cosense-project'."
    • Changedget_page_url1 field changed
      • changedInput schema / properties / projectName / description
        Previous value: -"Target project name. If not specified, defaults to 'example-project'."New value: +"Target project name. If not specified, defaults to 'my-cosense-project'."
    • Changedinsert_lines1 field changed
      • changedInput schema / properties / projectName / description
        Previous value: -"Target project name. If not specified, defaults to 'example-project'."New value: +"Target project name. If not specified, defaults to 'my-cosense-project'."
    • Changedlist_pages1 field changed
      • changedInput schema / properties / projectName / description
        Previous value: -"Target project name. If not specified, defaults to 'example-project'."New value: +"Target project name. If not specified, defaults to 'my-cosense-project'."
    • Changedsearch_pages1 field changed
      • changedInput schema / properties / projectName / description
        Previous value: -"Target project name. If not specified, defaults to 'example-project'."New value: +"Target project name. If not specified, defaults to 'my-cosense-project'."
  3. 6 tool updates
    • First observedcreate_page
    • First observedget_page
    • First observedget_page_url
    • First observedinsert_lines
    • First observedlist_pages
    • First observedsearch_pages

TDQS

A4/5.0

Scored across 9 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: search_pages for keyword search, list_pages for metadata browsing, get_page for content retrieval, get_page_url for URL generation, get_smart_context for context expansion, and separate create/edit/insert/delete operations for lines. No two tools overlap in functionality.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (search_pages, create_page, list_pages, insert_lines, edit_lines, delete_lines). The verbs are intuitive and match the actions, making the set predictable.

Tool Count5/5

With 9 tools, the server is well-scoped for managing Scrapbox pages and lines. Each tool serves a distinct function, and the count is within the ideal 3-15 range, balancing coverage without redundancy.

Completeness2/5

The set covers create, read, and line-level update/delete, but omits a delete_page tool even though the delete_lines description references it. This missing operation breaks the page lifecycle and forces agents to use unsupported calls, causing failures. Additionally, there is no tool to rename or update page metadata.

Maintenance

ActivityActive
ResponsivenessSlow

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server for Wiki.js projects that enables full-text search, page retrieval, and page management capabilities. It allows LLMs to interact with wiki content through specialized tools for searching, listing, and creating pages.
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for Cosense (formerly Scrapbox) that enables page creation, editing, deletion, and searching with WebSocket-based operations. Extends the original server with page-deletion and line-editing tools.
    8 npm
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Read-only MCP server for the Cosense project 'shiyui' that provides tools for fetching pages, full-text search, vector search, and related page retrieval. It uses Cloudflare Access OAuth for authentication.
    -