mcp

v1.1.11
com.mdtidy/mcp Checked 1 day ago Published 6 months ago

Clean, repair, and convert AI-generated Markdown to HTML/PDF/DOCX/PNG; save and share documents.

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

tidy_markdown Tidy & convert Markdown

Clean and repair messy AI-generated Markdown and render it to HTML, plain text, PDF, DOCX, or PNG. Choose a design system (minimal-clean, executive-report, developer-docs) and optional page geometry. Costs 1 credit per successful render (auto-refunded on failure); returns the cleanup fixes applied and the remaining balance.

ParameterTypeDescription
markdown *stringThe Markdown to clean and convert.
designSystemstringVisual theme. Defaults to minimal-clean.
formatstringOutput format. Defaults to "text" (cleaned Markdown, inline). html/text return inline; pdf/docx/png return a file or resource.
pageobjectOptional page geometry + font scale (render-only; no credit cost).
savePathstring(stdio only) write binary output (pdf/docx/png) to this local path and return it.
tidyobjectTidy pipeline toggles. Both default to true.

check_usage Check credit usage

Return the caller's credit balance and recent API calls. Free — call it before a batch of conversions.

get_entitlement Get plan entitlement

Return the caller's plan and workspace gates (can_save / can_share). Free.

list_projects List projects

List the caller's projects. scope: mine | shared | archived (default mine). Free.

ParameterTypeDescription
scopestringWhich projects to list. Defaults to mine.

get_project Get a project

Return a project together with its folders and files. Free.

ParameterTypeDescription
id *stringProject id.
includeArchivedbooleanInclude archived files. Default false.

get_file Read a file

Return a saved file's Markdown content plus its version/ETag. Free.

ParameterTypeDescription
id *stringFile id.

create_project Create a project

Create a workspace project (a container for files). Free.

ParameterTypeDescription
name *stringProject name.
descriptionstring

create_folder Create a folder

Find-or-create a folder inside a project (idempotent — re-calling with the same name returns the existing folder, never a duplicate). Optionally nest it under a parent folder. Returns the folder id — pass it as folder_id to save_file / update_file. Free.

ParameterTypeDescription
name *stringFolder name.
project_id *stringProject the folder belongs to.
parent_folder_idstringOptional parent folder for nesting; omit for the project root.

update_folder Rename a folder

Rename an existing folder. Free.

ParameterTypeDescription
id *stringFolder id.
name *stringNew folder name.

delete_folder Delete a folder

Delete a folder. Returns 409 if it still holds active files (move or archive them first); archived files fall back to the project root. Free.

ParameterTypeDescription
id *stringFolder id.

save_document Save a document (upsert)

Fast path — save Markdown in one step. Finds or creates the target project (default "Drafts") and creates the file, or updates it if a same-named document already exists. 1 credit on create, 0 on update. Returns the file id, project, and a link. Use this to start fast; use the granular tools for structured workspaces.

ParameterTypeDescription
content *stringMarkdown body to save.
idempotencyKeystring
namestringDocument name. Defaults to the first H1, else "Untitled".
projectstringProject id, or a name to find-or-create. Defaults to "Drafts".

save_file Create a file

First-save a Markdown file into a known project (idempotent via an idempotency key). 1 credit.

ParameterTypeDescription
content *stringMarkdown body.
name *string
project_id *stringTarget project id.
folder_idstring
idempotencyKeystring

update_file Update a file

Autosave, rename, or move a file. Content writes use If-Match for safe concurrent edits. Free.

ParameterTypeDescription
id *string
archivedboolean
contentstring
folder_id
ifMatchstringETag/version for safe content writes (required when changing content).
namestring

get_project_share Get share state

Return a project's current share state and public URL. Free.

ParameterTypeDescription
id *stringProject id.

share_project_public Share a project publicly

Turn on a project's public link and return https://mdtidy.com/p/{slug}. 1 credit (free within the 30-day slug grace).

ParameterTypeDescription
id *stringProject id.
idempotencyKeystring