npm marigold-draftstreamable-httpMITupdated 1mo ago
Local drafts — a review loop for agent-authored HTML. Your coding agent writes a rich HTML/SVG draft to a file; marigold-draft open serves it in a comment shell in your browser; you highlight, comment, and edit in place; Send feedback to agent returns your review to the agent's blocked CLI call as JSON, and its next save live-reloads the tab with your comments re-anchored.
What can you do with Marigold?
marigold
Local drafts — a review loop for agent-authored HTML. Your coding agent writes a
rich HTML/SVG draft to a file; marigold-draft open serves it in a comment
shell in your browser; you highlight, comment, and edit in place; Send
feedback to agent returns your review to the agent's blocked CLI call as
JSON, and its next save live-reloads the tab with your comments re-anchored.
No database, no accounts, no network. One warm background daemon; comments persist in a sidecar file next to the draft.
npm i -g marigold-draft
marigold-draft agent-setup # wires up Claude Code (skill) + Claude Desktop (MCP)
Or hand this prompt to your coding agent:
Install Marigold for me using
npm i -g marigold-draft, then read https://marigold.page/draft/setup.md and set yourself up to use it.
Full docs: packages/local/README.md — the
agent loop, in-place edits, .svg drafts, sharing, and graduating a draft to
hosted Marigold when you want a
link you can send to someone.
What's in this repo
| Package | What it is |
|---|---|
packages/local |
marigold-draft (npm) — the CLI, daemon, review shell, and MCP server |
packages/core |
The shared anchoring engine: deterministic element instrumentation, composite comment anchors (marigoldId → css → textQuote), and the Marigold Way methodology packs. Bundled into the CLI at build time. |
The anchoring engine is the same one hosted Marigold runs, so comments re-anchor identically across draft revisions locally and doc versions in the cloud, and a draft promoted to the cloud instruments byte-for-byte the same.
pnpm install
pnpm test # vitest across both packages
pnpm build # bundles packages/local/dist/cli.cjs
Relationship to hosted Marigold
Hosted Marigold ("Google Docs for AI-generated webpages" — share by email, comment on the rendered page, agents read feedback over MCP) is a separate, closed-source service. This repo is the open-source local tool, MIT-licensed, and is where its issues and pull requests live.
Development happens in a private monorepo that also contains the hosted service; the OSS subset is auto-synced here on every change, so this mirror is always current. PRs are welcome — they're reviewed here and ported onto the internal tree with your authorship preserved.
License
MIT.
Install
Add Marigold to your client. Pick the one you use.
{
"servers": {
"marigold-draft": {
"type": "http",
"url": "https://marigold.page/api/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add marigold-draft -- npx -y marigold-draftcodex mcp add marigold-draft -- npx -y marigold-draftamp mcp add marigold-draft -- npx -y marigold-draft{
"mcpServers": {
"marigold-draft": {
"command": "npx",
"args": [
"-y",
"marigold-draft"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"marigold-draft": {
"command": "npx",
"args": [
"-y",
"marigold-draft"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"marigold-draft": {
"command": "npx",
"args": [
"-y",
"marigold-draft"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"marigold-draft": {
"command": "npx",
"args": [
"-y",
"marigold-draft"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"marigold-draft": {
"command": "npx",
"args": [
"-y",
"marigold-draft"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"marigold-draft": {
"type": "local",
"command": "npx",
"args": [
"-y",
"marigold-draft"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"marigold-draft": {
"command": {
"path": "npx",
"args": [
"-y",
"marigold-draft"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y marigold-draftRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation17/25
- Maintenance16/25
- Trust13/20
- Capability0/15
- Install experience15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 36 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.9.1Latest | Jul 25, 2026 |