Claude Code
Claude Code connects to Sajto with an API key. The setup is a single command.
Requirements
- Claude Code installed,
- a Sajto account and an API key (see Account and API key).
Setup
-
In the Sajto panel open API keys, create a key (for example
laptop) and copy it. You will see it only once. -
In a terminal run the command, putting your key in place of
sjt_…:claude mcp add --transport http --scope user sajto https://app.sajto.pl/mcp \ --header "Authorization: Bearer sjt_…" -
Start Claude Code and check the connection (below).
Scope (--scope)
The scope decides where Claude Code stores the configuration and who uses it:
- Name
local- Type
- default
- Description
Only you, and only in the current project. Stored in
~/.claude.json.
- Name
user- Type
- recommended
- Description
Only you, but in all projects. The most convenient for Sajto, because sites are not tied to a project directory.
- Name
project- Description
Writes to a
.mcp.jsonfile in the repository and shares the configuration with the whole team.
Do not use the project scope with the key written directly in the command,
because the key would end up in the .mcp.json file and from there in the
repository. If you must share the configuration, store the key in an
environment variable and refer to it in .mcp.json: "Authorization": "Bearer ${SAJTO_API_KEY}".
Checking the connection
In a terminal:
claude mcp list
The sajto server should have the status Connected. claude mcp get sajto shows the details. Inside Claude Code type /mcp to see the state of servers and the tools.
The claude mcp add command does not check the key. A wrong key is accepted,
and you see the problem only as Failed to connect in the list.
First use
Tell Claude Code what you need:
You
Build a business-card site for the “Pod Lipą” bakery in Bobowa, slug podlipa. Publish when it is ready.
On first use of each tool, Claude Code asks for permission. You can allow the sajto server’s tools once or permanently.
The new_site and review_site commands
Sajto’s prompts are available as commands. Type / and you will see them in the list as /sajto:new_site (MCP) and /sajto:review_site (MCP). You can also type the full name:
/mcp__sajto__new_site
The middle part is the server name given in claude mcp add. Without arguments the assistant asks for details itself. Arguments given on the command line are split on spaces, so multi-word descriptions are better entered in the conversation.
Removal
claude mcp remove sajto
This removes the configuration from Claude Code but does not invalidate the key. Revoke it in the panel (API keys → Delete) if it will no longer be used.
Common problems
- Name
Failed to connect- Description
Check the address (
https://app.sajto.pl/mcp) and the key. Start by creating a new key and adding the server again.
- Name
No sajto tools in the conversation- Description
Run
/mcpand make sure the server is connected. After changing the configuration, restart the session.
- Name
The server is there, but not in another project- Description
You added it with the
localscope. Add it again with--scope user.
More in the chapter Troubleshooting.

