# Zap Coding Agent MCP server

> A terminal-first, local AI coding agent built in Rust that uses AST-powered indexing and skill injection to minimize context token costs.

- Repository: https://github.com/zap-coding-agent/zap-coding-agent
- Page: https://hostedmcp.org/servers/zap-coding-agent/zap-coding-agent
- Transport: —
- Stars: 38
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `AGENT_API_KEY` | no | no |  |
| `AGENT_MODEL` | no | no |  |
| `AGENT_PERMISSION_MODE` | no | no |  |
| `AGENT_PROVIDER` | no | no |  |
| `ANTHROPIC_API_KEY` | no | no |  |

## Tools (26)

- `read_file`
- `edit_file`
- `batch_edit`
- `write_file`
- `undo_edit`
- `shell`
- `git_status`
- `search_code`
- `list_directory`
- `glob_read`
- `code_map`
- `find_definition`
- `find_references`
- `who_calls`
- `file_imports`
- `where_imported`
- `find_subtypes`
- `find_supertypes`
- `pack_context`
- `ripple_analysis`
- `get_diagnostics`
- `lsp_definition`
- `lsp_type_at`
- `web_fetch`
- `web_search`
- `spawn_agent`

## FAQ

### How does Zap reduce token usage?

It uses a skill-based system where only language- and task-specific guidance is injected into the prompt when triggered, rather than sending a massive static system prompt every turn.

### What is the purpose of the /init command?

The /init command analyzes your repository and bootstraps all project knowledge into specific context files within about 30 seconds.
