Overview
gizzi mcp manages Model Context Protocol (MCP) servers that extend the Allternit runtime with external tools and context sources. You can register local command-based servers, connect to remote HTTP servers, and handle OAuth authentication from the terminal.
MCP servers declared through the CLI are written to your gizzi.json or gizzi.jsonc configuration, either in the current project or globally.
Command reference
Listing servers
Show every configured server and its current status:- Server name and type (
localorremote) - Connection status:
connected,disabled,needs authentication,failed, ornot initialized - For remote servers, the target URL and whether OAuth credentials are stored
- Error hints when a server failed to connect
Adding a server
Run the interactive wizard to register a server:- Location — current project (
gizzi.jsonor.gizzi/gizzi.json) or global config. - Name — a short identifier used in commands and runtime tool routing.
- Type —
localorremote.
Local server
For a local server, provide the shell command to start it:Remote server
For a remote server, provide the HTTPS URL. You can then opt into OAuth and supply a pre-registered client ID and optional client secret, or leave OAuth empty to use dynamic client registration."oauth": false.
Removing a server
Remove a server interactively:Authenticating with OAuth
Remote MCP servers that require OAuth can be authenticated through the browser:authenticated, expired, or not authenticated.
Logging out
Delete stored OAuth tokens and client registration for a server:logout without a name presents a picker for all servers that have stored credentials.
Debugging OAuth
Usedebug to inspect the OAuth handshake and basic HTTP connectivity:
- Stored auth status and token expiry
- Whether a refresh token is present
- Client registration details
- HTTP response status from the server
WWW-Authenticateheader analysis- Whether the OAuth flow can be triggered successfully
needs authentication or failed in gizzi mcp list.
Server status reference
Common positional arguments
Most
mcp commands are interactive by default when name is omitted, except for debug where the name is required.
Configuration file locations
The CLI searches for a config file in this order inside the project:gizzi.jsoncgizzi.json.gizzi/gizzi.jsonc.gizzi/gizzi.json
gizzi.json. For global scope it writes to the equivalent path under ~/.config/gizzi-code/.
Disabling MCP support
MCP support is enabled by default. To disable it for a session:Related docs
- Gizzi Code Overview — what the CLI is and how it fits into the Allternit platform
- Configuration — config files, profiles, and environment variables
- Headless Execution — running agents non-interactively with
gizzi exec - Permission Profiles — controlling tool approval rules