Every option of the Hive Gateway MCP plugin, its type and default.
useMCP(ctx, config) takes the gateway plugin context and an MCPConfig object. The MCPConfig
type is exported by @graphql-hive/plugin-mcp so a configuration can be authored and type-checked
separately, or loaded from YAML or JSON.
Server options
Option
Type
Default
Description
name
string
(required)
Server name reported in initialize responses
version
string
"1.0.0"
Server version reported in initialize responses
title
string
Human-readable server title
description
string
Human-readable server description
instructions
string
Free-text instructions included in initialize responses, for the model’s context
icons
MCPIcon[]
Server icons for client UIs (src, mimeType, sizes, theme)
websiteUrl
string
Server website URL
protocolVersion
string
"2025-11-25"
MCP protocol version to advertise
path
string
"/mcp"
HTTP path of the MCP endpoint
log
Logger
Logger instance; defaults to the gateway’s logger
Operation sources
Option
Type
Default
Description
operationsPath
string
A .graphql file, or a directory of them, containing named operations and @mcpTool directives
operationsStr
string
The operations as a raw GraphQL string, as an alternative to a file
loader
MCPOperationsLoader
Load operations for each MCP request with access to its request and serverContext