Module json_config

Module json_config 

Source
Expand description

JSON configuration file management utilities

Structs§

McpConfig
MCP configuration file structure
McpServerConfig
MCP server configuration entry

Functions§

add_server_to_config
Add or update a server in the MCP configuration
create_cursor_server_config
Create a new MCP server configuration entry for Cursor using PATH-based command
create_server_config
Create a new MCP server configuration entry
format_config_for_display
Format configuration for display
get_server_config
Get server configuration if it exists
has_server_config
Check if a server is already configured
read_config_file
Read MCP configuration from a JSON file
remove_server_from_config
Remove a server from the MCP configuration
validate_config
Validate MCP configuration
write_config_file
Write MCP configuration to a JSON file