cosense-mcp-server
Cosense MCP 服务器
Cosense的 MCP 服务器。
工具
以下工具可用于与 Cosense 页面进行交互:
get_page:检索具有指定标题的页面list_pages:列出资源中可用的页面search_pages:搜索包含指定查询字符串的页面insert_lines:在页面的指定行后插入文本
Related MCP server: Cosense MCP Server
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分叉而来的。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
Latest Blog Posts
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