Documentation
¶
Overview ¶
Package mcp provides an MCP proxy that forwards requests to the Nylas MCP server.
Index ¶
Constants ¶
View Source
const ( // NylasMCPEndpointUS is the US regional MCP endpoint. NylasMCPEndpointUS = "https://mcp.us.nylas.com" // NylasMCPEndpointEU is the EU regional MCP endpoint. NylasMCPEndpointEU = "https://mcp.eu.nylas.com" )
Variables ¶
View Source
var DefaultTimeout = domain.TimeoutMCP
DefaultTimeout for HTTP requests - uses centralized domain constant.
Functions ¶
func GetMCPEndpoint ¶
GetMCPEndpoint returns the appropriate MCP endpoint for the given region.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy forwards MCP requests from STDIO to the Nylas MCP server.
func (*Proxy) SetDefaultGrant ¶
SetDefaultGrant sets the default grant ID to use for requests. This helps the MCP server know which account to use by default.
func (*Proxy) SetGrantStore ¶
func (p *Proxy) SetGrantStore(store ports.GrantStore)
SetGrantStore sets the grant store for local grant operations. This allows the proxy to respond to grant queries locally without requiring the AI to provide an email address.
Click to show internal directories.
Click to hide internal directories.