clive-doc-mcp
v0.1.9Local MCP server for CliveDoc project management and document workflows
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
showdoc_authorize_browser
Open a browser authorization page and use existing CliveDoc login session to authorize MCP. Stores user_token locally for subsequent tools.
| Parameter | Type | Description |
|---|---|---|
auth_port | integer | Local helper port, 0 means random available port |
base_url | string | CliveDoc base URL, default from SHOWDOC_BASE_URL or http://127.0.0.1:8080 |
open_browser | boolean | Try to auto open system browser (default true) |
timeout_seconds | integer | Wait timeout when wait_for_completion=true (default 180) |
wait_for_completion | boolean | Wait for login result before returning (default true) |
showdoc_auth_status
Get current authorization session and optional browser auth flow status.
| Parameter | Type | Description |
|---|---|---|
flow_id | string | Optional flow id returned by showdoc_authorize_browser |
showdoc_auth_logout
Clear saved CliveDoc authorization tokens from local file.
| Parameter | Type | Description |
|---|---|---|
base_url | string | If provided, clear only this base_url session. Otherwise clear all sessions. |
clivedoc_list_projects
List projects visible to current authorized user.
| Parameter | Type | Description |
|---|---|---|
base_url | string | Optional CliveDoc base URL override |
item_group_id | integer | Optional project group id filter |
original | integer | Pass through original=1 if needed |
showdoc_list_projects
List projects visible to current authorized user.
| Parameter | Type | Description |
|---|---|---|
base_url | string | Optional CliveDoc base URL override |
item_group_id | integer | Optional project group id filter |
original | integer | Pass through original=1 if needed |
clivedoc_create_project
Create a CliveDoc project and return its ID. Projects are public unless a project access password is set.
| Parameter | Type | Description |
|---|---|---|
item_name * | string | Project name |
base_url | string | CliveDoc instance URL, defaults to the configured URL |
item_description | string | Project description. Use an empty string to clear it. |
item_domain | string | Project URL alias. Use an empty string to clear it. |
item_type | integer | 1 = regular, 2 = single-page, 4 = spreadsheet |
project_password | string | Project access password. Use an empty string to make the project public. |
clivedoc_get_project
Read the settings of a CliveDoc project you manage. Access passwords are excluded from the result.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | Project ID from clivedoc_list_projects |
base_url | string | CliveDoc instance URL, defaults to the configured URL |
clivedoc_update_project
Update only the supplied settings of a CliveDoc project you manage.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | Project ID from clivedoc_list_projects |
base_url | string | CliveDoc instance URL, defaults to the configured URL |
item_description | string | Project description. Use an empty string to clear it. |
item_domain | string | Project URL alias. Use an empty string to clear it. |
item_name | string | Project name |
order_num | integer | Project sort order |
project_password | string | Project access password. Use an empty string to make the project public. |
clivedoc_delete_project
Delete a CliveDoc project you manage. Use only after the user has requested deletion of this project.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | Project ID from clivedoc_list_projects |
owner_password * | string | Login password of the project owner, required by CliveDoc |
base_url | string | CliveDoc instance URL, defaults to the configured URL |
showdoc_list_project_docs
List document pages of a project by item_id or item_domain.
| Parameter | Type | Description |
|---|---|---|
article_link | string | Optional article link to auto detect item_id/item_domain |
base_url | string | Optional CliveDoc base URL override |
include_raw_menu | boolean | Include original menu tree from /api/item/info |
item_domain | string | Project domain identifier |
item_id | integer | Project id |
showdoc_parse_article_link
Parse CliveDoc article URL and extract item_id/item_domain/page_id/unique_key.
| Parameter | Type | Description |
|---|---|---|
link * | string | Article URL or route, e.g. /123/456 or http://host/web/#/123/456 |
base_url | string | Base URL used when link is relative |
showdoc_read_doc
Read a CliveDoc page by page_id/unique_key/link.
| Parameter | Type | Description |
|---|---|---|
article_link | string | Optional link; parser will auto extract IDs |
base_url | string | Optional CliveDoc base URL override |
item_id | integer | Optional project id for page/info |
page_id | integer | Document page id |
unique_key | string | Document unique key for /api/page/infoByKey |
showdoc_list_page_move_targets
List editable document projects that can receive a page from the source project. Use showdoc_list_project_docs with include_raw_menu to find destination catalogs.
| Parameter | Type | Description |
|---|---|---|
item_id * | integer | Source project id |
base_url | string | Optional CliveDoc base URL override |
showdoc_move_doc
Move an existing document to another editable document project while keeping its page id, content, attachments and version history.
| Parameter | Type | Description |
|---|---|---|
target_item_id * | integer | Destination project id |
article_link | string | Source article link on the authorized CliveDoc instance |
base_url | string | Optional CliveDoc base URL override |
item_id | integer | Source project id |
page_id | integer | Source page id |
target_cat_id | integer | Destination catalog id, defaults to the project root |
showdoc_write_doc
Create or update a CliveDoc page via /api/page/save.
| Parameter | Type | Description |
|---|---|---|
page_content * | string | Markdown content to save |
article_link | string | Optional link to auto parse page/item ids |
base_url | string | Optional CliveDoc base URL override |
cat_id | integer | Catalog id, default 0 |
item_domain | string | Project domain (will resolve to item_id if needed) |
item_id | integer | Project id, required for create, optional for update |
page_comments | string | Optional page comments |
page_id | integer | If provided, update existing page |
page_title | string | Page title. For update and omitted title, original title is reused. |