Skip to content

MCP Servers

MCP Servers (/mcp-servers) manages the registry of Model Context Protocol servers whose tools can be used by agents.

What is an MCP server?

An MCP server exposes a set of named tools over HTTP. Each tool has a name, description, and JSON Schema input definition. When an agent runs, the portal discovers available tools from all linked MCP servers and passes them to Claude as function definitions.

The built-in MCP server

The portal ships with apps/mcp-server running on port 4000. It’s pre-registered and exposes 16 tools. See Available Tools for the full list.

Registering an external server

Click + Add MCP Server and provide:

Field Description
name Display name
url Base URL of the MCP server (e.g. http://my-server:4000)
description What this server provides

Discovering tools

After registering a server, click Discover Tools. This calls POST /mcp on the server with a tools/list request and caches the result. The discovery result shows:

  • Tool count
  • Each tool’s name and description
  • JSON Schema for each tool’s inputs

Testing a tool

From the MCP server detail view, select a tool from the dropdown, fill in the input form (auto-generated from the tool’s JSON Schema), and click Call Tool. The raw JSON response is shown immediately.

Authentication

MCP servers registered here are called server-side (from the Hono API), so there’s no CORS restriction. If your MCP server requires authentication, add the token to the URL as a query param or modify the MCP client to include headers.

API

Method Path Description
GET /api/mcp-servers List all registered servers
GET /api/mcp-servers/:id Get server details + cached tools
POST /api/mcp-servers Register a new server
PUT /api/mcp-servers/:id Update server config
DELETE /api/mcp-servers/:id Unregister server
POST /api/mcp-servers/:id/discover Discover and cache tools
POST /api/mcp-servers/:id/call-tool Execute a tool directly