clive-doc-mcp

v0.1.9
clive-doc-mcp Checked 4 days ago Published 11 days ago

Local 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.

ParameterTypeDescription
auth_portintegerLocal helper port, 0 means random available port
base_urlstringCliveDoc base URL, default from SHOWDOC_BASE_URL or http://127.0.0.1:8080
open_browserbooleanTry to auto open system browser (default true)
timeout_secondsintegerWait timeout when wait_for_completion=true (default 180)
wait_for_completionbooleanWait for login result before returning (default true)

showdoc_auth_status

Get current authorization session and optional browser auth flow status.

ParameterTypeDescription
flow_idstringOptional flow id returned by showdoc_authorize_browser

showdoc_auth_logout

Clear saved CliveDoc authorization tokens from local file.

ParameterTypeDescription
base_urlstringIf provided, clear only this base_url session. Otherwise clear all sessions.

clivedoc_list_projects

List projects visible to current authorized user.

ParameterTypeDescription
base_urlstringOptional CliveDoc base URL override
item_group_idintegerOptional project group id filter
originalintegerPass through original=1 if needed

showdoc_list_projects

List projects visible to current authorized user.

ParameterTypeDescription
base_urlstringOptional CliveDoc base URL override
item_group_idintegerOptional project group id filter
originalintegerPass 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.

ParameterTypeDescription
item_name *stringProject name
base_urlstringCliveDoc instance URL, defaults to the configured URL
item_descriptionstringProject description. Use an empty string to clear it.
item_domainstringProject URL alias. Use an empty string to clear it.
item_typeinteger1 = regular, 2 = single-page, 4 = spreadsheet
project_passwordstringProject 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.

ParameterTypeDescription
item_id *integerProject ID from clivedoc_list_projects
base_urlstringCliveDoc instance URL, defaults to the configured URL

clivedoc_update_project

Update only the supplied settings of a CliveDoc project you manage.

ParameterTypeDescription
item_id *integerProject ID from clivedoc_list_projects
base_urlstringCliveDoc instance URL, defaults to the configured URL
item_descriptionstringProject description. Use an empty string to clear it.
item_domainstringProject URL alias. Use an empty string to clear it.
item_namestringProject name
order_numintegerProject sort order
project_passwordstringProject 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.

ParameterTypeDescription
item_id *integerProject ID from clivedoc_list_projects
owner_password *stringLogin password of the project owner, required by CliveDoc
base_urlstringCliveDoc instance URL, defaults to the configured URL

showdoc_list_project_docs

List document pages of a project by item_id or item_domain.

ParameterTypeDescription
article_linkstringOptional article link to auto detect item_id/item_domain
base_urlstringOptional CliveDoc base URL override
include_raw_menubooleanInclude original menu tree from /api/item/info
item_domainstringProject domain identifier
item_idintegerProject id

showdoc_parse_article_link

Parse CliveDoc article URL and extract item_id/item_domain/page_id/unique_key.

ParameterTypeDescription
link *stringArticle URL or route, e.g. /123/456 or http://host/web/#/123/456
base_urlstringBase URL used when link is relative

showdoc_read_doc

Read a CliveDoc page by page_id/unique_key/link.

ParameterTypeDescription
article_linkstringOptional link; parser will auto extract IDs
base_urlstringOptional CliveDoc base URL override
item_idintegerOptional project id for page/info
page_idintegerDocument page id
unique_keystringDocument 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.

ParameterTypeDescription
item_id *integerSource project id
base_urlstringOptional 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.

ParameterTypeDescription
target_item_id *integerDestination project id
article_linkstringSource article link on the authorized CliveDoc instance
base_urlstringOptional CliveDoc base URL override
item_idintegerSource project id
page_idintegerSource page id
target_cat_idintegerDestination catalog id, defaults to the project root

showdoc_write_doc

Create or update a CliveDoc page via /api/page/save.

ParameterTypeDescription
page_content *stringMarkdown content to save
article_linkstringOptional link to auto parse page/item ids
base_urlstringOptional CliveDoc base URL override
cat_idintegerCatalog id, default 0
item_domainstringProject domain (will resolve to item_id if needed)
item_idintegerProject id, required for create, optional for update
page_commentsstringOptional page comments
page_idintegerIf provided, update existing page
page_titlestringPage title. For update and omitted title, original title is reused.