Cosense MCP Server logo

Cosense MCP Server

by yosider

Cosense MCP Server is a server designed to interact with Cosense pages. It provides tools for retrieving, listing, searching, and inserting text into Cosense pages.

View on GitHub

Last updated: N/A

What is Cosense MCP Server?

The Cosense MCP Server is a server application that allows users to interact with Cosense pages programmatically. It provides a set of tools to manage and manipulate content within a Cosense project.

How to use Cosense MCP Server?

To use the server, you need to configure it with the necessary environment variables (COSENSE_PROJECT_NAME and COSENSE_SID). You can run it either from the npm registry or from source. After building, configure your MCP client with the provided JSON configuration, specifying the command and arguments to execute the server. Debugging can be done using the MCP Inspector.

Key features of Cosense MCP Server

  • Retrieving pages

  • Listing available pages

  • Searching for pages

  • Inserting text into pages

  • Authentication using Session ID

  • Support for JSR registry

  • Debugging tools via MCP Inspector

Use cases of Cosense MCP Server

  • Automated content management for Cosense projects

  • Programmatic access to Cosense pages

  • Integration with other applications

  • Data extraction and analysis from Cosense

  • Batch updates and modifications of Cosense content

FAQ from Cosense MCP Server

What is COSENSE_SID?

COSENSE_SID is a Session ID used for authentication. It's required for writing to pages and reading private pages. Handle it with care as it contains sensitive information.

How do I configure the JSR registry?

You can configure the JSR registry globally by adding @jsr:registry=https://npm.jsr.io to your .npmrc file.

How do I run the server from source?

Clone the repository, navigate to the directory, run npm install to install dependencies, and then run npm run build to build the project.

How can I debug the MCP server?

Use the MCP Inspector by running npm run inspect. This will provide a URL to access debugging tools in your browser.

What tools are available for interacting with Cosense pages?

The tools available are: get_page, list_pages, search_pages, and insert_lines.