# Muse — OpenGen Setup

> Add a Streamable HTTP MCP server in Muse Code with native OAuth.

- **Client kind:** Local agent
- **Integration approach:** Streamable HTTP MCP (OAuth DCR)
- **Verification status:** LIVE OAUTH LOGIN VERIFIED
- **Reviewed:** 2026-11-30
- **Canonical HTML:** https://opengen.dev/docs/clients/muse
- **Source reference:** [Meta AI developer documentation](https://dev.meta.ai/docs)

## Agent Prompt

```text
Walk the user through connecting Muse to OpenGen (https://opengen.dev/mcp for authenticated read+generate OAuth, https://opengen.dev/mcp/readonly for zero-auth catalog discovery, or @opengen-dev/cli for shell workflows) following https://opengen.dev/docs/clients/muse.md. Review configuration commands before running them, keep credentials out of prompts and version control, and verify read-only access (balance / find_models / opengen doctor) before proposing any paid generation.
```

## Setup Steps

1. In Muse Code, run the add and login commands below (or merge the mcpServers entry with "schema_version": 1 into ~/.config/muse/settings.json). Use --headless on remote or SSH sessions.
2. Complete OpenGen browser sign-in and workspace consent, then run muse mcp list or /mcp inside Muse Code to confirm tools load.
3. Hosted Meta Muse web (muse.ai) currently lists only curated prebuilt apps in Settings → Connectors (no custom MCP URL option as of 2026-11-29); use Muse Code CLI or a scoped workspace API key from /app/keys instead.

## Configuration & Commands

### Muse Code CLI commands · review before running

```bash
muse mcp add opengen --url https://opengen.dev/mcp --user
muse mcp login opengen
```

### Equivalent ~/.config/muse/settings.json entry

```json
{
  "schema_version": 1,
  "mcpServers": {
    "opengen": {
      "type": "streamable-http",
      "url": "https://opengen.dev/mcp"
    }
  }
}
```

## Verification Evidence & Cautions

**Recorded evidence (2026-11-30):** Muse Code 1.4.25 (2026-11-30, 484d99f; local logout and muse.ai inspection 2026-11-29): verified live OAuth DCR + RFC 8252 ephemeral-port browser login, workspace consent, and token exchange (transport=streamable-http, auth=logged-in, enabled=true) against https://opengen.dev/mcp. Hosted Meta Muse web (muse.ai, inspected 2026-11-29) lists only curated prebuilt connectors with no custom MCP UI. Local LLM turns were blocked by Muse’s own Meta auth (not OpenGen); MCP tool invocation, token refresh, and billable generation remain pending.

**Important boundaries:** Muse Code settings.json requires top-level "schema_version": 1 alongside mcpServers. Muse Code 1.4.25 completed live OAuth DCR + RFC 8252 ephemeral-port browser login (muse mcp login), workspace consent, and token exchange (transport=streamable-http, auth=logged-in, enabled=true) against https://opengen.dev/mcp (484d99f) on 2026-11-30 (local logout also verified 2026-11-29; note muse mcp logout clears local credentials without revoking the server grant — revoke in /app/apps when disconnecting). Hosted Meta Muse web (muse.ai, inspected 2026-11-29) lists only curated prebuilt connectors with no custom MCP connector UI. Local LLM turns were blocked by Muse’s own Meta auth (muse login required, not OpenGen); MCP tool invocation in Muse Code, token refresh, and billable generation remain pending.

## Related Links

- [All Agent Clients & Support Matrix](https://opengen.dev/docs/clients.md)
- [MCP Integration Guide](https://opengen.dev/docs/mcp.md)
- [Quickstart Guide](https://opengen.dev/docs/quickstart.md)
- [Installable Skill (skill.md)](https://opengen.dev/skill.md)
- [AI Index (llms.txt)](https://opengen.dev/llms.txt)
