mcp

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const KernelMCPURL = "https://mcp.onkernel.com/mcp"

KernelMCPURL is the URL for the Kernel MCP server

Variables

View Source
var MCPCmd = &cobra.Command{
	Use:   "mcp",
	Short: "Configure Kernel MCP server for AI tools",
	Long:  "Commands for configuring the Kernel MCP server in AI development tools like Cursor, Claude, VS Code, and more.",
	Run: func(cmd *cobra.Command, args []string) {

		_ = cmd.Help()
	},
}

MCPCmd is the parent command for MCP operations

Functions

func GetConfigPath

func GetConfigPath(target Target) (string, error)

GetConfigPath returns the config path for a target (exported for display)

func Install

func Install(target Target) error

Install configures the MCP server for the specified target

Types

type MCPServerConfig

type MCPServerConfig struct {
	URL     string   `json:"url,omitempty"`
	Command string   `json:"command,omitempty"`
	Args    []string `json:"args,omitempty"`
	Type    string   `json:"type,omitempty"`
}

MCPServerConfig represents the configuration for an MCP server

type Target

type Target string

Target represents a supported MCP client target

const (
	TargetCursor     Target = "cursor"
	TargetClaude     Target = "claude"
	TargetClaudeCode Target = "claude-code"
	TargetWindsurf   Target = "windsurf"
	TargetVSCode     Target = "vscode"
	TargetGoose      Target = "goose"
	TargetZed        Target = "zed"
)

func AllTargets

func AllTargets() []Target

AllTargets returns all supported targets

Jump to

Keyboard shortcuts

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