# Connect PubNio MCP to Muse & Muse Code

Human page: https://pubnio.com/muse
Hosted MCP URL: https://pubnio.com/mcp

## Summary

Add PubNio's Streamable HTTP endpoint (https://pubnio.com/mcp) under mcp_servers in ~/.config/muse/settings.json, run muse mcp login pubnio to finish browser OAuth, and verify with /mcp. Meta Muse and Muse Code can then use the search and execute tools to publish, schedule, and verify delivery across 7 platforms.

## Install (~/.config/muse/settings.json)

```json
{
  "schema_version": 1,
  "mcp_servers": {
    "pubnio": {
      "transport": "streamable_http",
      "url": "https://pubnio.com/mcp"
    }
  }
}
```

## Setup steps

1. **Add PubNio to ~/.config/muse/settings.json:** Merge the pubnio entry into mcp_servers in ~/.config/muse/settings.json (keeping schema_version: 1 at the top level) using the streamable_http transport.
2. **Authenticate with muse mcp login pubnio:** Run muse mcp login pubnio in your terminal and approve workspace access in your browser. Inside a Muse Code session, run /mcp to confirm PubNio is connected.
3. **Publish directly from Muse Code workflows:** Ask Muse or Muse Code to stage launch media, run preflight validation, publish or schedule across connected accounts, and wait for confirmed per-target outcomes.

## Example prompt

> Verify my PubNio accounts with /mcp, stage demo/release-clip.mp4, publish it as an Instagram Reel and YouTube Short, and confirm both targets settle.

## Expected Code Mode flow

```text
search   -> find account, media, and post operations
execute  -> list ready accounts => { accounts: [instagram: ready, youtube: ready] }
execute  -> import media { url: "https://..." } => { mediaId: "med_01j9...", status: "processing" }
execute  -> check media readiness => { status: "ready" }
execute  -> create post { text, media: [{ mediaId: "med_01j9..." }], platforms: ["instagram", "youtube"] } => { postId: "pst_01j9..." }
execute  -> read post until settled => { status: "published" }
```

## FAQs

### Does Muse Code require a local stdio wrapper for PubNio?

No. Muse Code supports native streamable_http MCP servers directly in ~/.config/muse/settings.json, so there is no local Node process to install or maintain.

### Can Muse Code subagents call PubNio safely without duplicate posts?

Yes. Every publish call accepts an idempotency key and expected draft revision, so retries or parallel subagent runs never create duplicate social posts.
