Skip to main content

servers.yaml

What it does: Declares a collection of shared tool server definitions in a single manifest file. This is typically used for marketplace or internal platform servers.

Filename convention: servers.yaml (usually in project root)

Annotated Example

servers:
- name: sentiment-scorer # logical name — used in agent server path references
description: "Scores text sentiment"
url: "https://mcp.internal/sentiment"
auth: # structured auth config
header: X-Api-Key
scheme: raw
secret: "your-token-literal" # Must be a literal in this manifest

- name: crm
url: "https://mcp.internal/crm"
auth:
secret: "your-crm-token"

Fields

FieldTypeRequiredDescription
serversarrayyesList of shared tool server definitions.
servers[].namestringyesIdentity used in agent servers[].path.
servers[].urlstringyesBase URL of the MCP server.
servers[].authobjectnoOptional authentication configuration.

Notes

  • Variable Syntax: servers.yaml does not support {{ env.NAME }} or env:NAME syntax. All values must be provided as literals.
  • Local Files: Servers defined in servers/*.server.yaml are not listed here. They are used for project-specific tools.