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:
对于 Windows (PowerShell):
或者,如果您不想修改全局设置,请从源代码运行(请参阅下面的部分)
客户端json配置
配置 JSR 注册表后,配置您的 MCP 客户端:
从源运行
克隆并构建
客户端json配置
调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
检查器将提供一个 URL 来访问浏览器中的调试工具。
致谢
该项目是从funwarioisii/cosense-mcp-server分叉而来的。
This server cannot be installed
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 中的项目进行交互。
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn MCP server that allows Claude to access pages from Cosense projects, supporting both public and private projects with optional SID authentication.Last updated -JavaScript
- -securityFlicense-qualityAn 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 -7Python
- -securityAlicense-qualityA 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,867MIT License
- -securityFlicense-qualityAn 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