Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| API_DOMAIN | No | API domain | scrapbox.io |
| COSENSE_SID | No | Session ID for Scrapbox/Cosense authentication (required for private projects) | |
| SERVICE_LABEL | No | Service identifier | cosense (scrapbox) |
| COSENSE_PAGE_LIMIT | No | Initial page fetch limit (1-1000) | 100 |
| COSENSE_SORT_METHOD | No | Initial page fetch order (updated/created/accessed/linked/views/title) | updated |
| COSENSE_PROJECT_NAME | Yes | Project name |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_page | Create a new page in Scrapbox project on cosense (scrapbox). Creates a new page with the specified title and optional body text. Returns the page creation URL without opening browser. Uses example-project project as default if projectName is not specified. |
| get_page_url | Generate URL for a page in Scrapbox project on cosense (scrapbox). Returns the direct URL to the specified page without opening it in browser. Uses example-project project as default if projectName is not specified. |
| get_page | Get a page from Scrapbox project on cosense (scrapbox). Returns page content and its linked pages. Page content includes title and description in plain text format. Uses example-project project as default if projectName is not specified. |
| list_pages | Browse and list pages from Scrapbox project on cosense (scrapbox) with flexible sorting and pagination. Use this tool to discover pages by recency, popularity, or alphabetically. Returns page metadata and first 5 lines of content. Available sorting methods: updated (last update time), created (creation time), accessed (access time), linked (number of incoming links), views (view count), title (alphabetical). Different from search_pages which finds content by keywords. Uses example-project project as default if projectName is not specified. |
| search_pages | Search for content within pages in Scrapbox project on cosense (scrapbox). Use this tool to find pages containing specific keywords or phrases. Returns matching pages with highlighted search terms and content snippets. Limited to 100 results maximum. Supports basic search ("keyword"), multiple keywords ("word1 word2" for AND search), exclude words ("word1 -word2"), and exact phrases (""exact phrase""). Different from list_pages which browses pages by metadata. Uses example-project project as default if projectName is not specified. |
| insert_lines | Insert text after a specified line in a Scrapbox page on cosense (scrapbox). If target line not found, text is appended to the end of the page. Uses example-project project as default if projectName is not specified. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |