MCP Server Types & Runtime Config (types/mcpserver.go)

mperkins0155/obot · integration, Integration / API, mcp, runtime, config, types, validation

Defines server user types, runtime configurations and conversion utilities for MCP server definitions.

// Source: https://github.com/mperkins0155/obot | License: MIT | Copyright 2026 Obot AI, Inc
// Provided via justclaw.it.com; keep this notice with the code.
package types

import (
	"encoding/json"
	"fmt"
	"net/url"
	"strings"
)

// Runtime represents the execution runtime type for MCP servers
type Runtime string

// Runtime constants for different MCP server execution environments
const (
	RuntimeUVX           Runtime = "uvx"
	RuntimeNPX           Runtime = "npx"
	RuntimeContainerized Runtime = "containerized"
	RuntimeRemote        Runtime = "remote"
	RuntimeComposite     Runtime = "composite"

	// defaultStartupTimeoutSeconds is the default value used when (UVX|NPX|Containerized)RuntimeConfig.StartupTimeout is not set
	defaultStartupTimeoutSeconds = 60
)

// ServerUserType specifies whe

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key