Skip to main content
An mcp declaration defines a named MCP server connection used by imports.
Imported tools, prompts, and resources reference that server through the mcp namespace.

Authenticated MCP servers

Use headers {} when the MCP server requires authentication or request-scoped metadata.
Headers can reference runtime values from secrets and input.

Practical guidance

  • Keep one mcp declaration per backend capability domain (tasks, knowledge, crm).
  • Pass credentials through secrets, never hardcode long-lived tokens.
  • Add request-scoped headers (workspace, tenant, user context) when your MCP backend needs routing context.
  • Keep endpoint URLs stable and move environment-specific values to deployment configuration.
Do not hardcode long-lived tokens in .wire files. Pass them through secrets.

See also