mcpservers

package
v0.0.0-...-287a3c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateMcpServerForm = Type("CreateMcpServerForm", func() {
	Description("Form for creating a new MCP server. Exactly one of remote_mcp_server_id or toolset_id must be provided. At most one of external_oauth_server_id or oauth_proxy_server_id may be provided.")

	Attribute("environment_id", String, "The ID of the environment to associate with the server", func() {
		Format(FormatUUID)
	})
	Attribute("external_oauth_server_id", String, "The ID of the external OAuth server to associate with the server", func() {
		Format(FormatUUID)
	})
	Attribute("oauth_proxy_server_id", String, "The ID of the OAuth proxy server to associate with the server", func() {
		Format(FormatUUID)
	})
	Attribute("remote_mcp_server_id", String, "The ID of the remote MCP server to use as the backend", func() {
		Format(FormatUUID)
	})
	Attribute("toolset_id", String, "The ID of the toolset to use as the backend", func() {
		Format(FormatUUID)
	})
	Attribute("visibility", McpServerVisibility, "The visibility of the server")

	Required("visibility")
})
View Source
var ListMcpServersResult = Type("ListMcpServersResult", func() {
	Description("Result type for listing MCP servers")

	Attribute("mcp_servers", ArrayOf(McpServer))
	Required("mcp_servers")
})
View Source
var McpServer = Type("McpServer", func() {
	Meta("struct:pkg:path", "types")

	Description("An MCP server configuration: authentication, environment, and backend selection for an MCP server.")

	Attribute("id", String, "The ID of the MCP server", func() {
		Format(FormatUUID)
	})
	Attribute("project_id", String, "The project ID this MCP server belongs to", func() {
		Format(FormatUUID)
	})
	Attribute("environment_id", String, "The ID of the environment associated with the server", func() {
		Format(FormatUUID)
	})
	Attribute("external_oauth_server_id", String, "The ID of the external OAuth server associated with the server", func() {
		Format(FormatUUID)
	})
	Attribute("oauth_proxy_server_id", String, "The ID of the OAuth proxy server associated with the server", func() {
		Format(FormatUUID)
	})
	Attribute("remote_mcp_server_id", String, "The ID of the remote MCP server used as the backend", func() {
		Format(FormatUUID)
	})
	Attribute("toolset_id", String, "The ID of the toolset used as the backend", func() {
		Format(FormatUUID)
	})
	Attribute("visibility", McpServerVisibility, "The visibility of the server")
	Attribute("created_at", String, func() {
		Description("When the MCP server was created")
		Format(FormatDateTime)
	})
	Attribute("updated_at", String, func() {
		Description("When the MCP server was last updated")
		Format(FormatDateTime)
	})

	Required("id", "project_id", "visibility", "created_at", "updated_at")
})
View Source
var McpServerVisibility = Type("McpServerVisibility", String, func() {
	Description("The visibility of an MCP server")
	Enum("disabled", "private", "public")
	Meta("struct:pkg:path", "types")
})
View Source
var UpdateMcpServerForm = Type("UpdateMcpServerForm", func() {
	Description("Form for updating an MCP server. This is a full-record replace: fields omitted from the request become null on the stored record. Exactly one of remote_mcp_server_id or toolset_id must be provided; at most one of external_oauth_server_id or oauth_proxy_server_id may be provided.")

	Attribute("id", String, "The ID of the MCP server to update", func() {
		Format(FormatUUID)
	})
	Attribute("environment_id", String, "The ID of the environment to associate with the server", func() {
		Format(FormatUUID)
	})
	Attribute("external_oauth_server_id", String, "The ID of the external OAuth server to associate with the server", func() {
		Format(FormatUUID)
	})
	Attribute("oauth_proxy_server_id", String, "The ID of the OAuth proxy server to associate with the server", func() {
		Format(FormatUUID)
	})
	Attribute("remote_mcp_server_id", String, "The ID of the remote MCP server to use as the backend", func() {
		Format(FormatUUID)
	})
	Attribute("toolset_id", String, "The ID of the toolset to use as the backend", func() {
		Format(FormatUUID)
	})
	Attribute("visibility", McpServerVisibility, "The visibility of the server")

	Required("id", "visibility")
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL