vscode

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package vscode provides CLI commands for managing VSCode MCP servers.

This package implements the 'mcp vscode' subcommands:

  • enable: Add MCP server to VSCode configuration
  • disable: Remove MCP server from VSCode configuration
  • list: Show all configured MCP servers

Supports both workspace (.vscode/mcp.json) and user-level configurations.

This is an internal package and should not be imported directly by users of the cobrax library. These commands are automatically available when using cobrax.Command() in your application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(commandName string, defaultEnv map[string]string) *cobra.Command

Command creates a new Cobra command for managing VSCode MCP servers. commandName is the name of the cobrax command in the Cobra tree (e.g. "mcp" or "agent"), used by enable to build the correct command path for editor config files. defaultEnv is merged into the server env on enable; user --env values take precedence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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