cosense-mcp-server

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.

Integrations

  • The server depends on packages hosted on JSR registry (@cosense/std and @cosense/types) and requires configuration to access these dependencies.

  • Provides tools to interact with Cosense pages, which are part of the Scrapbox ecosystem. Features include retrieving pages, listing available pages, searching pages, and inserting text into pages.

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의 경우:

지엑스피1

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

cosense-mcp-server는 미들웨어 명령 파이프라인 서버 역할을 하여 Claude Desktop과의 통합을 용이하게 하며, cosense의 프로젝트와의 상호작용을 가능하게 합니다.

  1. Tools
    1. MCP Client Configuration
      1. Run from npm registry
      2. Run from source
      3. Debugging
    2. Acknowledgments
      ID: arzvlylcom