Documentation

Everything you need to integrate DayBy into your workflow.

MCP Server

New

Post your dev progress directly from Claude Code, Claude Desktop, or Cursor. Content is sanitized locally before anything leaves your machine. API keys, tokens, IPs, and SSH keys are stripped automatically.

1. Install

npm install -g @dayby/mcp-server

2. Get your API key

Go to Settings → API, enable API access, and create a key.

export DAYBY_API_KEY=dyb_your_token_here

3a. Claude Code (terminal)

Run this once to register the server globally:

claude mcp add dayby -- dayby-mcp

Or pass the key inline if not in your environment:

DAYBY_API_KEY=dyb_your_key claude mcp add dayby -- dayby-mcp

3b. Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{ "mcpServers": { "dayby": { "command": "dayby-mcp", "env": { "DAYBY_API_KEY": "dyb_your_key" } } } }

3c. Cursor

Edit ~/.cursor/mcp.json:

{ "mcpServers": { "dayby": { "command": "dayby-mcp", "env": { "DAYBY_API_KEY": "dyb_your_key" } } } }

Available Tools

draft_post

title, content

Create a draft. Content is sanitized locally before upload.

publish_post

slug

Publish an existing draft by slug.

edit_draft

slug, title?, content?

Update title or content of an existing draft.

check_content

content

Scan content for secrets without posting anything.

list_posts

-

List your recent posts and drafts.

Local sanitization

Strips API keys, tokens, IPs, SSH keys, JWTs, AWS ARNs, and database URLs from content before it leaves your machine. No LLM involved. Pure regex, offline, deterministic.

View source on GitHub →

REST API Reference

Full interactive docs with request/response schemas, try-it-out, and examples.

Open API Reference (Swagger UI)

Authentication

Pass your API key as a Bearer token on every request:

curl https://javier.dayby.dev/api/v2/posts \
  -H "Authorization: Bearer dyb_your_token_here"

Rate limit: 60 requests/minute per key.