Skip to content
HopperLabsGuides
Menu

Part 3 of Make a guide

Give your product a connector

Put your product at one public address that Claude, ChatGPT, Codex and Gemini can all add, with tools that do your product's jobs.

Pick the jobs

Pick the jobs

The few things people already ask your product for. Write each one as a request in their words, such as "find my note about the launch". Each request you keep becomes one tool.

  1. A connector is not a copy of your API.
  2. Should the first tools change anything? No.

Write the server

One file. The protocol's official TypeScript package, @modelcontextprotocol/server, gives you createMcpHandler. You hand it a function that makes a server and adds your tools. It runs on Node.js, Bun and Deno. This guide used version 2.4.0.

  1. Does the server remember each client? No.

Add a tool

A name, a description, the inputs it takes and a function that does the work. You give them to registerTool. The description is all an agent knows about the tool, so write it for someone who has never seen your product.

  1. How does a client know a tool only reads? You say so, with readOnlyHint: true.

Return fixable errors

Return an ordinary result that says what was wrong and what to try next, and mark it with isError: true. The agent reads the words, corrects the call and tries again. The specification keeps this apart from a protocol error, which is for a request that is broken.

  1. What makes an error fixable? It names what was wrong and the next call to make.

Put it at an address

Anywhere that gives it a public address starting with https://, such as https://example.com/mcp. Claude's apps connect from Anthropic's servers, not from the person's computer, so an address on your own machine does not work for them.

  1. On Bun, Deno and Cloudflare Workers, export default handler is enough.
  2. Does it need sign-in? Not for a public server that only reads.
  3. What does the package not check? Where a request comes from.

Ask it for its tools

Send it one request that asks for its list of tools. If the reply names your tools, the server works.

  1. What should come back? Each tool, with its name, its description and its inputSchema.
  2. Why not open the address in a browser? A browser asks in a different way, so it is not a test.

Add it to each client

The same address, given in that client's own way. Choose a short name in lowercase letters, digits and hyphens. Gemini CLI says not to use underscores.

  1. How is it added in the apps? In Claude, select Add, then Add custom connector, and paste the address, or run claude mcp add --web notes https://example.com/mcp.
  2. What goes in a settings file? For clients that read .mcp.json, such as Claude Code and VS Code, an entry with "type": "http" and url.

Help agents find it

On a page of your own site, with the line each client needs beside it. A person copies one line and the connector is added. Say on that page what the tools do and whether there is sign-in.

  1. How does an agent find it on your site? Through llms.txt, a Markdown file on your site that lists links for agents to read.
  2. Is there a public list of servers? Yes, the MCP Registry.

Sources

Use this guide

Read the whole guide · Connect your agent to this guide

Connected guides

Explore the journey Make a guide.

View this guide on the map
Use your agent

Choose where you want to work. Once you connect, try the question below before sharing documents. See all agents and setup methods

Claude.ai

In Plugins, select Add, then Add custom connector. Paste this Server URL, select Continue, choose No sign-in, then select Add and Try in chat.

https://app.guides.hopperlabs.ai/api/mcp/add-a-connector
Open Claude plugins
ChatGPT

In Plugins, select Add, then Add custom MCP server. Paste this Server URL, choose No authentication, select Create as a plugin, then Connect and Try in chat. Your workspace must allow custom connectors.

https://app.guides.hopperlabs.ai/api/mcp/add-a-connector
Open ChatGPT plugins
Codex or Claude Code in my terminal

Run the command for your client and start a new chat. If Codex prints an OAuth registration notice for hopper-guides, ignore it—the public server is still saved and works without sign-in.

Codex
codex mcp add hopper-guide-add-a-connector --url https://app.guides.hopperlabs.ai/api/mcp/add-a-connector
Claude Code
claude mcp add --transport http hopper-guide-add-a-connector https://app.guides.hopperlabs.ai/api/mcp/add-a-connector
Use my agent in the browser

Choose a guide with browser tools, or use a connector above to work from your own chat.

Try the connection

Use the Hopper Guides connector to open the Give your product a connector guide (ID add-a-connector). What should I have ready before the first step?

Look for a HopperLabs tool call in your chat, followed by the guide or source it returned. View connector information

Markdown versionllms.txtConnectors JSONBrowser tools (WebMCP)