upload_markdown
Upload markdown files to generate shareable links with customizable permissions for viewing, commenting, or editing content.
Instructions
Upload markdown to mdshare and receive a shareable link. The response contains a read/comment/edit share link (default permission: comment) that the user can share with others. The admin credential (full control) is stored locally in ~/.mdshare-mcp/documents.json and is NOT returned in this response — if the user explicitly asks to see or save the admin URL, call get_admin_url. PREFER file_path over content for files already on disk — reads directly from disk without transmitting content through this conversation, which is dramatically faster for files larger than ~1KB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Absolute path to a local markdown file. PREFERRED for any file already on disk — bypasses inline content transmission entirely. | |
| content | No | Inline markdown content. Only use this for short snippets composed in the conversation. For files on disk, use file_path instead. | |
| share_permission | No | Permission level for the share link returned to the user. Default 'comment' — recipients can read and comment. Use 'view' for read-only, 'edit' for full write access. |