Skip to main content
Glama

cosense-mcp-server

by yosider

Cosense MCP 服务器

Cosense的 MCP 服务器。

工具

以下工具可用于与 Cosense 页面进行交互:

  • get_page :检索具有指定标题的页面
  • list_pages :列出资源中可用的页面
  • search_pages :搜索包含指定查询字符串的页面
  • insert_lines :在页面的指定行后插入文本

MCP 客户端配置

需要以下环境变量:

  • COSENSE_PROJECT_NAME :项目名称
  • COSENSE_SID :用于身份验证的会话 ID
    • 写入页面和读取私有页面所必需的
    • 小心处理,因为它包含敏感信息
    • 更多详细信息,请参阅scrapboxlab/connect.sid

从 npm 注册表运行

JSR 注册表配置

此包依赖于托管在 JSR 上的@cosense/std@cosense/types 。在使用 npx 之前,您需要全局配置 JSR 注册表:

对于 Linux/macOS:

echo "@jsr:registry=https://npm.jsr.io" >> ~/.npmrc

对于 Windows (PowerShell):

echo "@jsr:registry=https://npm.jsr.io" >> $env:USERPROFILE\.npmrc

或者,如果您不想修改全局设置,请从源代码运行(请参阅下面的部分)

客户端json配置

配置 JSR 注册表后,配置您的 MCP 客户端:

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

从源运行

克隆并构建
git clone https://github.com/yosider/cosense-mcp-server.git cd cosense-mcp-server npm install npm run build
客户端json配置
{ "mcpServers": { "cosense-mcp-server": { "command": "npx", "args": ["-y", "/path/to/cosense-mcp-server"], "env": { "COSENSE_PROJECT_NAME": "your_project_name", "COSENSE_SID": "your_sid" } } } }

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspect

检查器将提供一个 URL 来访问浏览器中的调试工具。

致谢

该项目是从funwarioisii/cosense-mcp-server分叉而来的。

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

cosense-mcp-server 作为中间件命令管道服务器,促进与 Claude Desktop 的集成,允许与 cosense 中的项目进行交互。

  1. 工具
    1. MCP 客户端配置
      1. 从 npm 注册表运行
      2. 从源运行
      3. 调试
    2. 致谢

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        An MCP server that allows Claude to access pages from Cosense projects, supporting both public and private projects with optional SID authentication.
        Last updated -
        JavaScript
        • Apple
      • -
        security
        F
        license
        -
        quality
        An MCP server that allows AI assistants like Claude to execute terminal commands on the user's computer and return the output, functioning like a terminal through AI.
        Last updated -
        7
        Python
        • Apple
      • -
        security
        A
        license
        -
        quality
        A server that lets Claude desktop app execute terminal commands on your computer and edit files through Model Context Protocol, featuring command execution, process management, and advanced file operations.
        Last updated -
        21,867
        MIT License
        • Linux
        • Apple
      • -
        security
        F
        license
        -
        quality
        An MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.
        Last updated -
        JavaScript

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/yosider/cosense-mcp-server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server