
yosider/cosense-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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: 指定したクエリ文字列を含むページを検索
インストール
前提条件
次の環境変数を設定します。
- [
COSENSE_PROJECT_NAME— Cosense プロジェクト名 - [
COSENSE_SID— 認証に使用されるセッションクッキー。 このページを書いて、プライベートページを読む必要があります。 秘密のように扱います。 詳細は[https://scrapbox.io/scrapboxlab/connect.sidを参照してください。
##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 titlelist_pages: Lists available pages in the resourcessearch_pages: Searches for pages containing the specified query stringinsert_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_nameandyour_sidwith your actual values in the configuration. For manual setup, you can also edit.vscode/mcp.jsondirectly.
For Claude Desktop Users
Add one of the following configurations to your claude_desktop_config.json:
Using pnpm
{
"mcpServers": {
"cosense-mcp-server": {
"command": "pnpm",
インストール
npx -y @yosider/cosense-mcp-server設定
{
"mcpServers": {
"cosense-mcp-server": {
"command": "pnpm",
"args": ["-s", "dlx", "@yosider/cosense-mcp-server"],
"env": {
"COSENSE_PROJECT_NAME": "your_project_name",
"COSENSE_SID": "your_sid"
}
}
}
}