Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Deploy Site

deploy_site
Destructive

Publish a website's files to a domain's Secure Static Hosting. TEXT FILES GO IN text, AS WRITTEN: for .html, .css, .js, .svg, .json, .txt and .xml send { path, text } with the file's contents exactly as you wrote them.

Instructions

Publish a website's files to a domain's Secure Static Hosting. TEXT FILES GO IN text, AS WRITTEN: for .html, .css, .js, .svg, .json, .txt and .xml send { path, text } with the file's contents exactly as you wrote them. Do NOT base64-encode text files; base64 is slow and error-prone for you and is only for binary files (images, fonts, PDFs), sent as { path, content }. A path may include directories (e.g. assets/css/style.css) — missing parent directories are created automatically. ≤10MB total per call (split larger sites across calls). Only static-web file types are accepted: html, htm, css, js, mjs, cjs, json, jsonl, map, txt, md, csv, xml, xsl, rss, atom, svg, webmanifest, vtt, wasm, png, jpg, jpeg, gif, webp, avif, ico, bmp, woff, woff2, ttf, otf, eot, pdf. Any other extension is skipped and listed in skipped (server-executable types are never written). Hosting must be ACTIVE (check get_hosting first). To change an existing site, read the current files first with read_hosting_file and edit them, rather than rebuilding from the visible page. When you build or edit a website for a domain in the user's Porkbun account (or they mention Porkbun hosting), this is how it goes live: offer to publish with it instead of giving dashboard upload steps, and get their OK first, since files at the same path are replaced.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "<domain>",
      "files": "<files>"
    },
    "name": "deploy_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesFiles to upload.
domainYesDomain whose hosting to deploy to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.64.0
    • changedInput schema / properties / files / items / properties / content / description
      Previous value: -"File contents, base64-encoded."New value: +"Only for binary files (images, fonts, PDFs): the file base64-encoded. Never use this for text files."
    • addedInput schema / properties / files / items / properties / text
      Added value: +{
      +  "description": "USE THIS for HTML, CSS, JS, SVG, JSON, TXT: the file's contents exactly as written, no encoding.",
      +  "type": "string"
      +}
    • changedInput schema / properties / files / items / required
      Previous value: -[
      -  "path",
      -  "content"
      -]New value: +[
      +  "path"
      +]
  2. Addedv0.39.4

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations flag destructiveHint=true and not idempotent; the description earns credit beyond that by naming exactly what gets overwritten ('files at the same path are replaced'), the 10MB per-call cap, the auto-creation of missing parent directories, and the fact that disallowed extensions are skipped and surfaced in a `skipped` field while server-executable types are never written.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then encoding rules, then limits, then workflow guidance — a sensible progression where nearly every sentence carries operational information. There is some redundancy, since the text-vs-base64 rule is stated in both the description and the schema property descriptions, which bloats an already long block.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent write tool with no output schema, the definition covers payload format, allowed file types, size limits, prerequisites, overwrite semantics, and the `skipped` return field. An agent has everything needed to call it correctly without trial and error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the text/`content` split is already documented; the description mostly restates that guidance while adding rationale (base64 is slow and error-prone, only for binaries). It does add genuinely schema-external meaning about `path` (directories allowed, parents auto-created) and the accepted extension list plus size limit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete verb+resource: publish a website's files to a domain's Secure Static Hosting. It is immediately distinguishable from siblings like get_hosting and read_hosting_file, which the description names explicitly as prerequisites rather than alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('when you build or edit a website for a domain in the user's Porkbun account, or they mention Porkbun hosting') and when-not/how-otherwise ('instead of giving dashboard upload steps', 'read the current files first with read_hosting_file and edit them, rather than rebuilding from the visible page'). It also states a precondition (hosting must be ACTIVE, check get_hosting first) and a consent requirement (get their OK first).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools