daypress
admin route/d-admin/getting-started · POST /mcp
doc versionv1.0.4
reading time7 min read
section group24 · AI, Wasm & Headless API
Docs/AI, Wasm & Headless API
/d-admin/getting-started · POST /mcp7 min readv1.0.4

Connecting AI Assistants & Complete 47-Tool MCP Reference

Daypress compiles a full JSON-RPC 2.0 Model Context Protocol (MCP) server directly into the binary—exposing 47 strongly-typed tools so AI coding assistants can inspect, design, audit, and deploy websites without brittle screen-scraping.

Connecting via Local Stdio (--mcp-stdio) or HTTP (POST /mcp)

bash / json
# Transport A: Local Stdio MCP (same machine — zero network port or password needed)
claude mcp add daypress -- /path/to/daypress --mcp-stdio --db /path/to/data/daypress.sqlite

# Cursor / Claude Desktop / Antigravity JSON config:
{
  "mcpServers": {
    "daypress": {
      "command": "/absolute/path/to/daypress",
      "args": ["--mcp-stdio", "--db", "/absolute/path/to/data/daypress.sqlite"]
    }
  }
}

# Transport B: Remote HTTPS MCP (POST /mcp with a revocable Application Password)
curl -X POST https://example.com/mcp \
  -u "admin:abcd efgh ijkl mnop" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Security Isolation on POST /mcp: HTTP POST /mcp intentionally rejects primary login passwords with 403 Forbidden. Click ⚡ Generate AI Agent Key & Config in /d-admin/getting-started to mint a scoped, revocable Application Password.
http://localhost:8090/d-admin/getting-started — 1-Click AI Agent Key & MCP Config
Daypress Get Started AI Launchpad showing 1-click Generate AI Agent Key button and ready-to-copy MCP client configs
Dashboard -> Get Started (/d-admin/getting-started) generates an Application Password and client snippets in one click.

Recommended 6-step AI website-building recipe

  1. Inspect current state: Call daypress_get_settings and daypress_list_posts (post_type: "any").
  2. Set brand identity & tokens: Update blogname / blogdescription via daypress_update_option and dual-palette colors/fonts via daypress_update_global_styles.
  3. Build site chrome: Pass semantic <header> and <footer> HTML to daypress_import_html_design (extract_header_footer: true) or save templates with daypress_save_template.
  4. Design pages in native AST: Import responsive HTML5 pages via daypress_import_html_design (set_as_front_page: true on Home) and refine widgets via daypress_update_post_layout.
  5. Provision structured CPTs & forms: Add directories with daypress_provision_cpt_preset and lead forms with daypress_create_form.
  6. Register Media Library assets, audit & publish: Upload all images to /uploads/... via daypress_import_wp_bundle, verify 100/100 Light + Dark scores with daypress_audit_post, and deploy via daypress_publish_site.

Complete catalog of all 47 built-in MCP tools

CategoryCountTool Names
Posts & Taxonomies6daypress_list_posts, daypress_get_post, daypress_create_post, daypress_update_post, daypress_duplicate_post, daypress_list_terms
DayStudio & Themes6daypress_import_html_design, daypress_get_post_layout, daypress_update_post_layout, daypress_update_global_styles, daypress_list_templates, daypress_save_template
Site Settings2daypress_get_settings, daypress_update_option
CPTs & ACF Fields5daypress_provision_cpt_preset, daypress_list_post_types, daypress_save_post_type, daypress_list_field_groups, daypress_save_field_group
Forms & Analytics7daypress_list_forms, daypress_get_form, daypress_create_form, daypress_update_form, daypress_list_form_submissions, daypress_get_analytics, daypress_get_web_vitals
Growth & Wasm6daypress_list_subscribers, daypress_create_newsletter_campaign, daypress_manage_shortlinks, daypress_manage_webhooks, daypress_manage_ab_tests, daypress_manage_wasm_extensions
Search & WCAG Audit2daypress_search, daypress_audit_post
i18n & Editorial5daypress_list_languages, daypress_link_translations, daypress_create_preview_link, daypress_schedule_revision, daypress_diff_revisions
1.0 Audit & Perf2daypress_security_audit, daypress_run_benchmark
Media, WP & Deploy6daypress_list_media_folders, daypress_scan_unused_media, daypress_get_storage_s3_status, daypress_import_wp_bundle, daypress_get_publish_status, daypress_publish_site