Hawa Code supports MCP and can be used with simple configuration.
User-Level Configuration
Configure the mcpServers property in ~/.hcode/hcode.json. User-level MCP configuration is available to all projects. Since it’s configured locally, it won’t be committed to the code repository via git and can be used as personal private configuration.
Local Project Configuration
Configure the mcpServers property in the specified project configuration in ~/.hcode/hcode.json. Local project configuration only takes effect for specific projects. Since it’s configured locally, it won’t be committed to the code repository via git and can be used as personal private configuration.
Project Configuration
Configure in {project_path}/.mcp.json. Project configuration only takes effect in the current project and can be committed to the code repository for shared team configuration.
Configuration Example
Below is a project configuration example. Other configuration formats are the same and can be referenced accordingly.
{ |
MCP Management
In the terminal, you can manage MCP using the /mcp slash command.
MCP enable and disable states are uniformly saved in the approvedMcprcServers and rejectedMcprcServers properties of the specified project in ~/.hcode/hcode.json. It is recommended to manage these through the /mcp slash command rather than manual modification.