> Index of Phersa pages for AI agents: https://phersa.com/llms.txt # Add Phersa to OpenCode Find viral videos, make your own with your AI persona and run comment-to-DM, without leaving OpenCode. OpenCode connects to Phersa as a remote MCP server. Add it to opencode.json and OpenCode handles the OAuth sign-in. Add this to opencode.json: `{ "mcp": { "phersa": { "type": "remote", "url": "https://mcp.phersa.com/mcp" } } }` ## Connect OpenCode to Phersa OpenCode MCP Setup: Add Phersa. 1. ### Step 1: Add the server Add Phersa under mcp in your opencode.json. `{ "mcp": { "phersa": { "type": "remote", "url": "https://mcp.phersa.com/mcp" } } }` 2. ### Step 2: Sign in OpenCode detects that Phersa needs a sign-in and prompts you to authenticate. Run this to sign in in the browser, approving the access: `opencode mcp auth phersa` 3. ### Step 3: Check the connection List your servers, or run opencode mcp debug phersa if the connection fails. `opencode mcp list` ### MCP server details - Endpoint: https://mcp.phersa.com/mcp · Streamable HTTP · OAuth 2.1 with PKCE. Metadata: https://mcp.phersa.com/.well-known/oauth-protected-resource/mcp. Dynamic client registration and client ID metadata documents are supported. - Permissions, safety and all 40 tools: [phersa.com/mcp](https://phersa.com/mcp) ## What you can ask OpenCode Sign in once and your agent can read and create. Nothing is generated until you confirm the price. 1. Read Find AI UGC [cooking tip](https://phersa.com/industries/home-and-garden) videos, sort them by most viewed and show me the top five with their stats. Tools used: `discover-search`, `video-get` 2. Read Break down the best one: the transcript, the hook and why it worked. Tools used: `video-get` 3. Write Remake it with my AI character as a project of short clips, each with an image prompt and a video prompt, and dry-run the whole project. Tools used: `personas-list`, `create-project`, `create-clip`, `jobs-create type=project (dry run)` ## What is different about Phersa in OpenCode - OpenCode registers itself with Phersa through dynamic client registration and stores the tokens for you. - opencode mcp logout phersa signs out, and opencode mcp debug phersa shows connection details. - OpenCode is open source and free; Zen and Go are optional paid tiers. ## OpenCode questions ### What is OpenCode? OpenCode is an open-source AI coding agent for the terminal, made by Anomaly. It works with many model providers, including free built-in models, and connects to local and remote MCP servers. [Visit opencode.ai ↗](https://opencode.ai) ### Can OpenCode make AI persona videos? Yes, with Phersa connected. OpenCode finds viral videos, plans the clips with your AI persona, shows you the price, and generates on your own API keys only after you agree. It edits and exports the video; you post it yourself, and it can set up comment-to-DM on that post. ### Does OpenCode support remote MCP servers with OAuth? Yes. Add "type": "remote" and the URL in opencode.json. OpenCode detects that OAuth is needed, prompts you to authenticate, uses dynamic client registration and stores the tokens. [Check OpenCode MCP docs ↗](https://opencode.ai/docs/mcp-servers/) ### Is OpenCode free? Yes. OpenCode is open source and free to use; Zen and Go are optional paid tiers. [Visit opencode.ai ↗](https://opencode.ai) ### How do I find viral short-form videos in Phersa from OpenCode? Ask for a topic, hook or phrase: OpenCode searches the library with discover-search and opens a video's stats, transcript and breakdown with video-get. Source: https://phersa.com/opencode