Added
- Added
mcpHeadersparameter toprompts.run()andprompts.chat()methods for passing custom headers to MCP servers at runtime. Headers are keyed by integration name to support multiple MCP integrations per prompt.
Example usage:
latitude.prompts.run('my-prompt', {
parameters: { name: 'John' },
mcpHeaders: {
myMcpIntegration: { 'customer-id': 'abc123' },
anotherMcp: { 'x-tenant-id': 'tenant-456' },
},
})