Claude Code

Claude Code connects to Sajto with an API key. The setup is a single command.

Requirements

Setup

  1. In the Sajto panel open API keys, create a key (for example laptop) and copy it. You will see it only once.

  2. 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_…"
    
  3. 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.json file in the repository and shares the configuration with the whole team.

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.

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 /mcp and 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 local scope. Add it again with --scope user.

More in the chapter Troubleshooting.

Was this page helpful?