A tool to help you write better documentation
Project description
Doc81 🚀
Doc81 is a developer document template platform that helps you create, manage, and use document templates proven by many experts. It provides both a local mode for working with templates on your filesystem and a server mode for accessing templates out there.
Features
- Your Document -> Scalable Document Template in 2s
- Find appropriate document templates on demand
- MCP (Model Control Protocol) integration for AI assistant compatibility
- API server for general usage
Installation
Prerequisites
- Python 3.10+
- pip or pipenv
Quick Start
MCP (recommended)
Cursor (default)
- setup MCP
> uvx --with doc81 doc81-mcp-cli setup
This command add .cursor/rules/doc81.mdc. This prompt will guide cursor how to ask and do the work for you.
- add MCP
// mcp.json`
{
"mcpServers": {
"doc81": {
"command": "uvx",
"args": [
"--from",
"doc81",
"doc81-mcp"
],
"env": {
"DOC81_PROMPT_DIR": "<your local prompt directory>"
}
},
}
}
See Configuration for details.
- Use the cursorrule to generate document based on the template.
// cursor ask/agent
> Help me write a runbook in @your-new-doc.md
cursor: List template (function call)
cursor: Get template (function call)
Let me copy the runbook template to your-new-doc.md. ...
Usage
Creating Templates
Templates are markdown files with frontmatter metadata. Create a template file with the following structure:
---
name: Template Name
description: Template description
tags: [tag1, tag2]
---
# Your Template Content
Content goes here...
MCP API
Doc81 integrates with MCP for AI assistant compatibility:
list_templates- Lists all available templatesget_template(path_or_ref)- Gets a specific template by path or reference
Configuration
Doc81 can be configured using environment variables:
DOC81_ENV- Environment (dev/prod, default: dev)DOC81_MODE- Mode (local/server, default: local)DOC81_PROMPT_DIR- Directory containing templates (default: project's prompts directory)
Development
Testing
uv run python -m pytest tests/
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file doc81-0.1.6.tar.gz.
File metadata
- Download URL: doc81-0.1.6.tar.gz
- Upload date:
- Size: 438.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc5c7b93b58510db64a17ef5474fa841b6d0f67b4d8433082b67da5353c9c9ec
|
|
| MD5 |
85b95003b83f4c4c3d55dded36dd6140
|
|
| BLAKE2b-256 |
ff78a55f2ae353c029ae87b5bc535db37423732e0b764c9b4b2599c345e196ba
|
File details
Details for the file doc81-0.1.6-py3-none-any.whl.
File metadata
- Download URL: doc81-0.1.6-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dddad88c5d62b10c65b6f4a1c0e4806eb655ca071ec3c3fa56ec6d4fe48cdd36
|
|
| MD5 |
ed519f692b24c9efaa552d8a6b11f131
|
|
| BLAKE2b-256 |
995a02ef5924edaab5497527aa8ba9d235f1b613b151c49ae4ead0c15be02ca5
|