Two ways to use AI
Tesseract offers two distinct AI interfaces, each suited to different tasks:
- Claude Console — a chat panel embedded in the editor. Best for quick brainstorming and architecture exploration. It can read and modify your diagram directly but has no access to your source code.
- Claude Code — the standalone CLI tool by Anthropic. Connects to Tesseract via MCP and has access to both your architecture and your codebase. Best for generating diagrams from code, analyzing dependencies, and keeping architecture in sync with implementation.
Claude Console
The Claude Console is a collapsible chat panel in the bottom-left corner of the editor. It gives Claude direct access to your architecture graph through MCP tools, so it can add components, create connections, navigate subgraphs, and manage flows — all from a conversation.
Connecting
If the Console shows a Sign in button, you need to authenticate with your Anthropic account:
Open a terminal and run claude to start Claude Code. If you don't have it yet, install it from claude.ai/code.
Follow the prompts in Claude Code to authenticate. This stores credentials locally that Tesseract can use.
Back in Tesseract, click Sign in. The Console detects your Claude Code credentials and connects automatically.
What the Console can do
- Add, update, and remove components and connections
- Navigate into and out of subgraphs
- Create and manage flows (Pro)
- Manage layers: add, rename, reorder, and remove (Pro)
- Query the architecture (list components, inspect connections, get an overview)
- Export the diagram as a Mermaid flowchart or take a screenshot
- Brainstorm system designs through natural conversation
What the Console cannot do
Claude Code & MCP
Claude Code is Anthropic's CLI agent. When connected to Tesseract via MCP (Model Context Protocol), it can read your source code and modify your architecture diagram at the same time — bridging the gap between code and design.
Setting up the connection
Tesseract runs a local MCP server automatically when the application starts. You can find its address in the MCP → Config menu item (e.g. localhost:7440/mcp). Clicking this item copies the address to your clipboard.
The quickest way to register the server in Claude Code:
claude mcp add --transport http tesseract http://localhost:7440/mcp
Alternatively, you can create or edit a .mcp.json file at the root of your project:
{
"mcpServers": {
"tesseract": {
"type": "http",
"url": "http://localhost:7440/mcp"
}
}
}
Then launch Claude Code with claude in your terminal. It discovers the MCP config and connects to Tesseract. You can now ask Claude to build your architecture from code.
Auto-approving MCP tools
By default, Claude Code asks for confirmation the first time it calls each MCP tool. To approve all Tesseract tools at once, add mcp__tesseract to your project's permission allow list:
// .claude/settings.json { "permissions": { "allow": [ "mcp__tesseract" ] } }
This approves every tool exposed by the Tesseract MCP server. You only need to do this once per project. Without this, Claude Code will prompt for each tool on first use (you can approve them individually at that point).
Pre-built skills
Tesseract ships with five Claude Code skills that automate common architecture tasks. To install them, go to MCP → Install Skills and choose:
- Globally — installs the skills for all your Claude Code projects
- For Project… — opens a file picker so you can select a specific project folder
Once installed, each skill can scan your codebase and populate the diagram accordingly.
| Skill | What it does |
|---|---|
arch-overview |
Scans your project structure (Docker, package managers, entry points, configs) and creates a high-level architecture diagram. |
arch-services |
Finds services and APIs (routes, controllers, gRPC, GraphQL, OpenAPI) and adds them to the diagram. |
arch-data |
Discovers the data layer (ORM models, migrations, database connections, caches, storage) and maps it out. |
arch-infra |
Reads infrastructure configs (Kubernetes, Terraform, CI/CD pipelines, reverse proxies) and adds them. |
arch-detail |
Zooms into a single component and creates a detailed subgraph of its internals (modules, routes, business logic). |
To use a skill, ask Claude Code in the terminal. For example:
# Generate the high-level architecture > Scan my project and create an architecture overview # Detail a specific component > Create a detailed subgraph for the API Gateway component
Claude Code reads your files, identifies the relevant pieces, and uses the MCP tools to populate Tesseract. You see the diagram update in real time.
MCP tools
The MCP server exposes a set of tools that Claude (Console or Code) uses to interact with the diagram. You don't call these directly — Claude uses them behind the scenes — but understanding them helps you craft better prompts.
Architecture tools
| Tool | Description |
|---|---|
get_graph |
Read the architecture at the current level or a specific subgraph path. |
list_types |
List all available component types from the library. |
list_components |
List all components in the diagram. |
add_component |
Add a new component with name, type, layer, tech, and description. |
update_component |
Modify an existing component's properties. |
remove_component |
Delete a component and its connections. |
add_connection |
Create a connection between two components. |
update_connection |
Modify a connection's protocol, description, curvature, or direction. |
remove_connection |
Delete a connection. |
annotate |
Add a note or annotation to a component. |
screenshot |
Capture the current 3D view as a PNG image. |
export_mermaid |
Export the architecture as a Mermaid flowchart (text). |
import_mermaid |
Import a Mermaid flowchart and replace the current architecture. |
update_project |
Set the project title and/or description. |
Navigation tools
| Tool | Description |
|---|---|
look_at |
Select a component or enter its subgraph to bring it to the user's attention. |
get_user_context |
Get the current view path and selection state. |
Flow tools
| Tool | Description |
|---|---|
highlight_path |
Temporarily highlight a sequence of connections on the canvas. |
clear_highlights |
Remove temporary highlights. |
save_flow |
Save the current highlights as a persistent flow. |
list_flows |
List all saved flows. |
show_flow |
Display a saved flow on the canvas. |
update_flow |
Modify a flow's label, paths, or segments. |
delete_flow |
Remove a saved flow. |
Layer tools
| Tool | Description |
|---|---|
list_layers |
List all layers with their names and colors. |
add_layer |
Add one or more layers (batch). |
update_layer |
Rename or recolor layers, with automatic component reassignment. |
remove_layer |
Remove layers (orphaned components move to the first remaining layer). |
reorder_layers |
Reorder layers from top to bottom. |
MCP resources
In addition to tools, the MCP server exposes read-only resources that Claude can query for context:
| Resource URI | Description |
|---|---|
architecture://overview |
High-level summary: component count, connection count, layers. |
architecture://component/{id} |
Full details of a single component. |
architecture://connections |
All connections with resolved component names. |
architecture://layer/{name} |
All components belonging to a specific layer. |
library://components |
Full component type catalog grouped by collection and category. |
library://collection/{id} |
Components in a specific library collection. |
Real-time sync
When Claude modifies the architecture (through either the Console or Claude Code), changes appear on your canvas in real time.
- Component locking — while Claude is editing a component, it is locked in the UI to prevent conflicts. You can continue editing other parts of the diagram.
- Navigation — Claude can select a component or navigate into a subgraph to show you what it's working on.
- Live highlights — when Claude highlights a path, the connections light up immediately on your canvas.
Tips for effective prompts
- Be specific about components — mention names, types, and layers when asking Claude to add or modify things.
- Describe connections clearly — specify the protocol (REST, gRPC, WebSocket) and direction.
- Use skills for large tasks — instead of asking Claude to manually scan your code, use the pre-built skills that know what to look for.
- Start high-level, then detail — use
arch-overviewfirst to create the big picture, thenarch-detailon individual components. - Review before saving — Claude's additions appear in real time. Review the diagram and ask for adjustments before saving to disk.