publish.my

السجل الرسمي أخرى

Publish a folder as a live website at https://<id>.publish.my. Free, no account needed.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http publish-my 'https://api.publish.my/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "publish-my": {
            "type": "http",
            "url": "https://api.publish.my/mcp"
        }
    }
}
NPM package publish-my
Claude Code
claude mcp add publish-my -e 'PUBLISHMY_API_KEY=<your publishmy_api_key>' -- npx -y publish-my@0.1.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "publish-my": {
            "command": "npx",
            "args": [
                "-y",
                "publish-my@0.1.0"
            ],
            "env": {
                "PUBLISHMY_API_KEY": "<your publishmy_api_key>"
            }
        }
    }
}

متغيرات البيئة

  • PUBLISHMY_API_KEY سري Optional. A publish.my API key; without it the first publish gives a preview link and the key is saved to ~/.publishmy when the user activates.

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. publish-my
  2. Install
  3. Tools
  4. What it stores
  5. Limits (free)
  6. Development

publish-my

MCP server for publish.my: your AI agent publishes a folder as a live website at https://<id>.publish.my. Free, and no account needed to start.

Ask your agent to "put this online" and it calls publish_site. The first publish gives a preview link; the user enters their email on that page once and the site goes live at the same address. After that, every publish goes live immediately.

Install

Claude Code

claude mcp add publish-my -- npx -y publish-my

Cursor: add this to ~/.cursor/mcp.json

{ "mcpServers": { "publish-my": { "command": "npx", "args": ["-y", "publish-my"] } } }

VS Code

code --add-mcp '{"name":"publish-my","command":"npx","args":["-y","publish-my"]}'

Codex

codex mcp add publish-my -- npx -y publish-my

Claude Desktop, Windsurf and other MCP clients: a stdio server running npx -y publish-my (Node 20 or newer).

claude.ai and ChatGPT have no filesystem, so they use the remote connector instead: add a custom connector with the URL https://api.publish.my/mcp and sign in to publish.my once.

Tools

ToolWhat it does
publish_sitePacks a folder (with index.html at its top) and publishes it. Updating a live site needs confirm_update: true, which the agent sets after asking the user.
check_activationChecks whether the user has confirmed their email for a new site.
list_sitesLists the user's sites with status and 30-day views.
reconnect_siteRecovers access to a live site after the key on this machine was lost.

There is no delete tool. Sites are deleted in the console.

What it stores

The same files the curl flow uses, so the two stay interchangeable:

  • ~/.publishmy: your publish.my API key (mode 600), saved when you activate your first site. A working key here is never replaced by a key for a different account.
  • ~/.config/publish-my/keys/<site id> (mode 600): if a site gets activated on a different account than the key in ~/.publishmy, its key is kept here and used only for that site.
  • <project>/.publish-my.json: which publish.my site this folder is, so "publish again" updates the same address.
  • ~/.config/publish-my/pending.json (mode 600): secrets for sites waiting for activation. It is kept out of the project folder so it never ends up in git.

Hidden files (.env and similar), node_modules and file types publish.my does not host are left out of the upload. The tool reports what it left out.

Environment overrides: PUBLISHMY_API_KEY, and PUBLISHMY_API_URL for testing.

Limits (free)

500 MB per account, unlimited sites, 50 MB per upload, 2,000 files per site, static files only. Framework apps (Next.js, Vite, Astro, SvelteKit, Nuxt) must be built first; publish the output folder. Full details: https://publish.my/agents/

Development

npm test                    # unit tests
./scripts/e2e-dev.sh        # full flow against a local publish.my DEV server (needs the app repo)
node scripts/client.mjs list

الأسئلة الشائعة

ما هو publish.my؟

Publish a folder as a live website at https://<id>.publish.my. Free, no account needed.

كيف أثبّت publish.my؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http publish-my 'https://api.publish.my/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج publish.my إلى مفتاح API؟

نعم. يتطلب PUBLISHMY_API_KEY، وتضبطها في إعداداته.

هل publish.my مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون publish.my؟

ينشره aizuikmal. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.