<!-- The Markdown version of https://hyviral.com/docs/mcp/connect: the same content as the page. -->

Guide

# Connect your agent

Every client that speaks Streamable HTTP connects the same way. The differences are all in where the setting lives.

MCP server endpoint

`https://api.hyviral.com/mcp`

Streamable HTTP · MCP protocol 2025-06-18 · OAuth 2.1 with PKCE, or a personal access token

## Claude.ai and Claude Desktop

Customize → Connectors, add a custom connector, and paste the endpoint as its URL. Claude discovers the authorization server on its own: you will be sent to HYVIRAL to sign in and approve the scopes, then straight back. In a chat, open the + menu, then Connectors, and switch HYVIRAL on. Added once on claude.ai or in Claude Desktop, it is in the Claude app on your phone too.

If you land on a page saying the connection request is no longer valid, the request simply expired: they last ten minutes. Start again from the connector dialog.

In a chat app such as Claude or ChatGPT, an assistant cannot add a connector to itself from inside the conversation. If you are an agent reading this for someone, give them the steps above: they add the connector, and you can use it from then on. A coding agent such as Claude Code or Codex can add it itself with the commands below.

## Claude Code

```
claude mcp add --transport http hyviral https://api.hyviral.com/mcp
```

Then `/mcp` in a session to run the OAuth flow. Claude Code keeps the credential per project.

## Codex

```
codex mcp add hyviral --url https://api.hyviral.com/mcp
codex mcp login hyviral
```

The first command adds HYVIRAL to Codex's MCP servers. The second opens your browser to sign in to HYVIRAL and approve the scopes, then hands the credential back to Codex, which keeps it. The Codex CLI, the IDE extension and the ChatGPT desktop app share this setup, so adding it once covers all three.

## ChatGPT

Add it as a connector with the same endpoint. ChatGPT's MCP support is narrower than Claude's: if your workspace only offers search-style connectors, the intel tools are the ones that will show up. The generation and rendering tools need a client that supports arbitrary tool calls.

## Your own client, or a script

For anything that is not going through an interactive OAuth flow (a cron job, a script, your own agent framework), create a personal access token instead: in HYVIRAL, Profile → Settings → AI agent access. Pick only the permissions the script needs; the token is shown once.

```
curl -X POST https://api.hyviral.com/mcp \
  -H "Authorization: Bearer hyv_pat_…" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

A token is not an OAuth grant: it belongs to you rather than to an application, and revoking it takes effect immediately.

## If discovery fails

A spec-compliant client only needs the endpoint. It gets a `401` with a `WWW-Authenticate` header pointing at our protected-resource metadata, reads the authorization server from there, and registers itself. If your client cannot do that, the two documents are:

```
https://api.hyviral.com/.well-known/oauth-protected-resource
https://api.hyviral.com/.well-known/oauth-authorization-server
```
