/scrapbox-cosense:cosense <operation or natural language request>from scrapbox-cosense
Reads, searches, creates, edits, deletes, and rewrites Cosense (Scrapbox) wiki pages via CLI. Useful for managing wiki content programmatically.
Ships in scrapbox-cosense. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cosense ページの取得・検索・作成・編集・削除・書き換え。CLI 経由で実行。
npx -y scrapbox-cosense-mcp で実行する(グローバルインストール済みなら scrapbox-cosense-mcp 直接でもよい)。
npx -y scrapbox-cosense-mcp get <title> — ページ取得npx -y scrapbox-cosense-mcp search <query> — キーワード検索npx -y scrapbox-cosense-mcp list [--sort=X --limit=N] — ページ一覧npx -y scrapbox-cosense-mcp create <title> [--body=TEXT] — ページ作成(markdown自動変換)npx -y scrapbox-cosense-mcp insert <title> --after=TEXT --text=TEXT — 行挿入npx -y scrapbox-cosense-mcp edit <title> --target=TEXT --text=TEXT [--all] — 行置換(完全一致、複数行ブロック対応、既定は最初の1件のみ)npx -y scrapbox-cosense-mcp delete-lines <title> --target=TEXT [--all] — 行削除(完全一致、複数行ブロック対応)npx -y scrapbox-cosense-mcp delete <title> [--dry-run] — ページ削除(COSENSE_ENABLE_DELETE=true が必要。取り消せないので、まず --dry-run で確認する)npx -y scrapbox-cosense-mcp rewrite <title> --body=TEXT [--dry-run] — ページ全体の書き換え(COSENSE_ENABLE_DELETE=true が必要。取り消せないので、まず --dry-run で確認する)npx -y scrapbox-cosense-mcp url <title> — URL生成npx -y scrapbox-cosense-mcp context <title> [--hop=1|2] — 関連ページ一括取得(Smart Context)詳細は npx -y scrapbox-cosense-mcp <command> --help で確認。
全コマンド共通: --compact でトークン効率の高い出力、--project=NAME でプロジェクト指定、--json でJSON出力。
| 変数名 | 説明 | 必須 |
|---|---|---|
COSENSE_PROJECT_NAME | 対象プロジェクト名(--project で上書き可) | はい |
COSENSE_MCP_PAT | Personal Access Token(おすすめ)。非公開プロジェクトと、create/insert/edit/delete-lines/delete/rewrite/contextに必要 | 条件付き |
COSENSE_SID | セッションID(connect.sid)。COSENSE_MCP_PATより優先する。PATに移るときは外す | いいえ |
COSENSE_ENABLE_DELETE | true のときだけ delete / rewrite サブコマンドが使える | いいえ |
COSENSE_PROJECT_ALLOW_LIST | --project で指定できるプロジェクトをカンマ区切りで制限する。COSENSE_PROJECT_NAME は常に許可。未設定なら無制限 | いいえ |
.claude/settings.local.json(gitignore対象)の env キーに追加してください。
{
"env": {
"COSENSE_PROJECT_NAME": "your-project-name",
"COSENSE_MCP_PAT": "your-personal-access-token"
}
}
全プロジェクト共通で使う場合は ~/.claude/settings.json に設定することもできます。
COSENSE_MCP_PATに設定Service Accountのアクセスキー(cs_で始まる)もCOSENSE_MCP_PATに入れる。公式CLIのcosense loginで保存したトークンや、公式CLIのCOSENSE_PATは読まないので、このサーバーには別に設定する。SIDを使う場合の取り方は認証を参照。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (worldnine/scrapbox-cosense-mcp) — no native marketplace selected
npx claudepluginhub p/worldnine-scrapbox-cosenseOther plugins' skills for the same job