YC

yosider/cosense-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 9 forks 品質 63 トレンド 0

Cosense の MCP サーバー

概要

Cosenseページとのやりとりには、以下のツールがあります。 - get page: 指定されたタイトルでページを取得する - list pages: リソースの利用可能なページのリスト - search pages: 指定されたクエリ文字列を含むページを検索します - insert lines: 指定した行がページの後にテキストを入力 次の環境変数を設定します。 - COSENSE PROJECT NAME — あなたのCosenseプロジェクト名。 - COSENSE SID — 認証に使用されるセッションクッキー。 このページを書いて、プライベートページを読む必要があります。 秘密のように扱います。 詳細はhttps://scrapbox.io/scrapboxlab/connect.sidを参照してください。 これらのワンクリックインストールボタンの1つを使用します。 : ボタンをクリックすると、設定の実際の値に your project name と your sid を置き換えます。 手動設定では、.vscode/mcp.json を直接編集することもできます。 次の設定を claude desktop config.json に追加します。 このパッケージは、JSR-hostedパッケージによって異なります.

概要(AI 翻訳)

CosenseのMCPサーバー。

ツール

Cosenseページとのやりとりには、以下のツールがあります。

  • [search_pages: 指定したクエリ文字列を含むページを検索

インストール

前提条件

次の環境変数を設定します。

##VSコードユーザーの場合

これらのワンクリックインストールボタンの1つを使用します。

**注記: ボタンをクリックすると、設定の実際の値で[your_project_nameと[your_sidを置き換えます。 マニュアル設定では、直接[.vscode/mcp.json]を編集することもできます。

##Claudeデスクトップユーザー向け

[claude_desktop_config.json に次の設定を追加します。

###pnpm の使用

糸の使用

###npx を使う

このパッケージは、JSR-hostedパッケージによって異なります.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Cosense MCP Server

A MCP server for Cosense.

Tools

The following tools are available for interacting with Cosense pages:

  • get_page: Retrieves a page with the specified title
  • list_pages: Lists available pages in the resources
  • search_pages: Searches for pages containing the specified query string
  • insert_lines: Inserts text after a specified line in a page

Installation

Prerequisites

Set the following environment variables:

  • COSENSE_PROJECT_NAME — your Cosense project name.
  • COSENSE_SID — session cookie used for authentication. Required for writing pages and reading private pages. Treat this like a secret. See https://scrapbox.io/scrapboxlab/connect.sid for more details.

For VS Code Users

Use one of these one-click installation buttons:

Note: After clicking the button, replace your_project_name and your_sid with your actual values in the configuration. For manual setup, you can also edit .vscode/mcp.json directly.

For Claude Desktop Users

Add one of the following configurations to your claude_desktop_config.json:

Using pnpm

{
  "mcpServers": {
    "cosense-mcp-server": {
      "command": "pnpm",
GitHub で README 全文を見る

インストール

npx -y @yosider/cosense-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "cosense-mcp-server": { "command": "pnpm", "args": ["-s", "dlx", "@yosider/cosense-mcp-server"], "env": { "COSENSE_PROJECT_NAME": "your_project_name", "COSENSE_SID": "your_sid" } } } }