agentdocs-mcp

v0.11.0
io.github.hoornet/agentdocs-mcp Checked 7 hours ago Published 21 days ago

AgentDocs (agentdocs.eu) MCP: read, search, write, comment, share & attach images to Markdown docs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

whoami Who am I

Identify the authenticated AgentDocs user and credential scope. Call this first: a space-scoped credential is locked to a single space, which becomes the default for page tools.

list_workspaces List workspaces

List all AgentDocs workspaces the user can access. Workspaces contain spaces; spaces contain pages.

list_spaces List spaces

List the spaces in a workspace.

ParameterTypeDescription
workspace *stringWorkspace UUID or workspace slug (e.g. "my-team-docs")

search_docs Search docs

Full-text (keyword) search across the pages in a workspace, or in one of its spaces. Matches in the returned content_preview are delimited with << >> markers. For natural-language questions, prefer semantic_search.

ParameterTypeDescription
query *stringSearch terms
workspace *stringWorkspace UUID or workspace slug
spacestringOnly search this space of the workspace: space UUID or "workspaceSlug/spaceSlug" path. Leave out to search every space you can read.

list_pages List pages

List the pages in a space as a tree (content omitted — use get_page to read a page). Pages with a discussion carry comment_count / unresolved_comment_count / last_comment_at — comments do NOT bump a page's updated_at, so check last_comment_at to spot new replies. With a space-scoped token, omit "space" to use the token's space.

ParameterTypeDescription
spacestringSpace UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens.

get_page Get page

Read a page including its full Markdown content and current version number. The page carries comment_count / unresolved_comment_count / last_comment_at — if comment_count > 0 there is a discussion; set include_comments to read it. include_children returns the page's child pages (titles + slugs, no content) — useful for 'folder' pages whose own content is empty but which organise sub-pages. include_images returns any images embedded in the page as viewable image blocks, so you can actually SEE a screenshot the page references instead of only its URL.

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
include_childrenbooleanWhen true, also return the page's immediate child pages (id, title, slug — no content).
include_commentsbooleanWhen true, also return the page's comments (threaded) alongside the page.
include_imagesbooleanWhen true, also return images embedded in the page as image blocks you can view (max 5). Off by default — images are large, so ordinary reads stay cheap.

create_page Create page

Create a Markdown page in a space. The slug is derived from the title unless given. With a space-scoped token, omit "space" to use the token's space.

ParameterTypeDescription
content *stringMarkdown content
title *stringPage title
parent_page_idstringParent page UUID, to nest this page under another
slugstringExplicit URL slug (auto-generated and deduped when omitted)
spacestringSpace UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens.

update_page Update page

Update a page's title and/or content. Earlier text stays in the page history (list_page_versions) and can be brought back with restore_page_version. Pass expected_version to fail instead of overwriting concurrent edits.

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
contentstringNew full Markdown content (replaces existing content)
expected_versionintegerIf set and the page has moved past this version, the update is rejected
titlestringNew title

append_to_page Append to page

Append Markdown to the end of an existing page (read-modify-write; creates a new version). Ideal for logs, reports, and running notes.

ParameterTypeDescription
content *stringMarkdown to append
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
separatorstringSeparator inserted before the appended text (default: blank line "\n\n")

delete_page Delete page

Delete a page and all its child pages by moving them to the trash. They can be brought back with restore_page (find the id with list_trash) until the trash retention period ends, after which they are deleted for good.

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path

move_page Move page

Move a page, with its child pages, under another page or to the top level of its space. Give parent_page to nest it, or top_level: true to put it at the top. To move it into another space of the same workspace, also give space; the new parent must then be in that space (or use top_level). Space-scoped tokens can only move pages within their own space.

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path of the page to move
parent_pagestringNew parent page: UUID or "workspaceSlug/spaceSlug/pageSlug" path. Leave out with top_level: true.
spacestringDestination space, only when moving to another space: UUID or "workspaceSlug/spaceSlug" path. Same workspace only.
top_levelbooleanWhen true, move the page to the top level of its space (no parent). Don't combine with parent_page.

import_markdown Import a markdown folder

Import a folder of Markdown files and let the folder structure become the page hierarchy. Each file is { path, content } where path is a relative file path like "guides/setup.md". Folders become parent pages; an index.md or README.md inside a folder supplies that folder page's content; titles come from the first # H1, falling back to the file name. Ideal for an Obsidian vault, a Notion markdown export, or a repo's docs/ folder. Up to 500 files per call. IDEMPOTENT: pages are matched by source path, so re-running an import — or chunking a large vault across several calls — reuses existing p…

ParameterTypeDescription
files *arrayThe markdown files to import
overwrite_existingbooleanWhen true, re-importing updates the content of pages that already exist (re-sync). Default false: existing pages are left untouched.
parent_pagestringOptional existing page to nest the import under (UUID or "workspaceSlug/spaceSlug/pageSlug" path). Defaults to the space root.
spacestringSpace UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens.

bulk_create_pages Bulk create pages

Create up to 500 pages in one atomic call (all succeed or all fail) with an explicitly specified structure (titles, slugs, parent_page_id). To import a folder of Markdown files and derive the hierarchy from file paths, use import_markdown instead. With a space-scoped token, omit "space" to use the token's space.

ParameterTypeDescription
pages *arrayPages to create
spacestringSpace UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens.

share_page Share page

Create a public magic link for a page — anyone with the link can read it without logging in. Returns a web URL and a raw-Markdown URL (the raw one is ideal for other agents).

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
expires_in_daysintegerDays until the link expires. Omit for a non-expiring link.

list_comments List comments

List the threaded comments on a page, returning each comment's id, content, author and parent. Use this to find a comment's id before update_comment / delete_comment. (get_page with include_comments returns the same thread alongside the page content.)

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path

add_comment Add comment

Post a comment on a page. Set parent_comment_id to reply within an existing thread. The returned 'mentions' array echoes @name tokens parsed from the body — it is informational only; posting a comment does NOT currently notify the mentioned user.

ParameterTypeDescription
content *stringComment body (Markdown)
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
parent_comment_idstringUUID of the comment being replied to, to thread under it (omit for a top-level comment)

update_comment Update comment

Edit a comment's body and/or mark its thread resolved. Only the comment's author (or an admin) may update it. Provide at least one of content / resolved.

ParameterTypeDescription
comment *stringComment UUID (from get_page include_comments or list_comments)
contentstringNew comment body (replaces the existing text)
resolvedbooleanMark the comment thread resolved (true) or reopen it (false)

delete_comment Delete comment

Permanently delete a comment. Only the comment's author (or an admin) may delete it. There is no undo via the API.

ParameterTypeDescription
comment *stringComment UUID (from get_page include_comments or list_comments)

upload_image Upload image

Attach an image to a space and get back the Markdown to embed it in a page. Use this to put screenshots and diagrams into the pages you write, so whoever reads the page later — human or agent — can see what you saw. ACCEPTS: PNG, JPEG, GIF, WebP. Max 5 MB. SVG is rejected (script-injection vector). The format is detected from the file's own bytes, not its name. HOW TO SUPPLY THE IMAGE — give exactly one of: • path — absolute path to an image file on this machine. Prefer this: the bytes never pass through the conversation. • data — base64 of the file's bytes (a "data:image/png…

ParameterTypeDescription
alt_textstringAlt text for the returned Markdown snippet.
datastringBase64 of the image FILE'S BYTES (a "data:image/png;base64,..." URI is accepted too). Not a description of the image, and not something you can produce from an image you only viewed.
filenamestringOriginal filename to record (cosmetic; defaults to image.<ext>).
pathstringAbsolute path to an image file on this machine. Best option — the bytes never enter the conversation.
source_urlstringPublic http(s) URL the server fetches the image from. Must be publicly reachable — private/loopback addresses are refused.
spacestringSpace UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens.

list_page_versions List page versions

List a page's saved versions, newest first: version number, date, author, which app made the edit (edited_via: web, api_token, space_token or oauth; token_name: the token or app name) and the text length. The text itself is left out; read one version with get_page_version. Several saves by the same author through the same app within 10 minutes share one entry, so version numbers can skip.

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
limitintegerHow many of the newest versions to return (default 50, max 200).

get_page_version Get page version

Read the full Markdown text of one earlier version of a page, with its author and which app made it. Find version numbers with list_page_versions. Page titles are not versioned, so only the text is returned.

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
version *integerVersion number, from list_page_versions

restore_page_version Restore page version

Replace a page's text with the text of an earlier version. The restore is saved as a new version, and the text it replaces stays in the history as its own version, so nothing is lost and a restore can itself be undone. Only the text is restored; the title stays as it is.

ParameterTypeDescription
page *stringPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
version *integerVersion number to restore, from list_page_versions

list_trash List trash

List the deleted pages in a space that can still be restored, most recently deleted first. Each entry is a page that was deleted directly; descendant_count says how many of its child pages went with it and come back with it. Pages stay in the trash for retention_days, then they are deleted for good. Restore one with restore_page and its id. With a space-scoped token, omit "space" to use the token's space.

ParameterTypeDescription
spacestringSpace UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens.

restore_page Restore page

Bring a deleted page back from the trash, with the child pages that were deleted with it. Takes the page's UUID from list_trash: deleted pages can't be found by their path. If the slug was taken meanwhile the page gets a new one (slug_changed), and if its parent page is still deleted it comes back at the top level of its space (reparented_to_root).

ParameterTypeDescription
page_id *stringUUID of the deleted page, from list_trash