Stuga

v0.2.1
dev.stuga/stuga Checked 14 hours ago Published 1 month ago

Your AI writes your self-hosted team wiki and answers from it.

Values you need

VariableWhat it is
STUGA_URLrequired The address you open Stuga at. Default: http://127.0.0.1:8787

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add stuga -e STUGA_URL=http://127.0.0.1:8787 -- npx -y --package=@stuga/mcp@0.2.1 stuga-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "stuga": {
      "args": [
        "-y",
        "--package=@stuga/mcp@0.2.1",
        "stuga-mcp"
      ],
      "command": "npx",
      "env": {
        "STUGA_URL": "http://127.0.0.1:8787"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "stuga": {
      "args": [
        "-y",
        "--package=@stuga/mcp@0.2.1",
        "stuga-mcp"
      ],
      "command": "npx",
      "env": {
        "STUGA_URL": "http://127.0.0.1:8787"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "STUGA_URL",
      "id": "stuga-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "stuga": {
      "args": [
        "-y",
        "--package=@stuga/mcp@0.2.1",
        "stuga-mcp"
      ],
      "command": "npx",
      "env": {
        "STUGA_URL": "${input:stuga-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.stuga]
command = "npx"
args = ["-y", "--package=@stuga/mcp@0.2.1", "stuga-mcp"]
env = { "STUGA_URL" = "http://127.0.0.1:8787" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http stuga https://{stuga_host}/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "stuga": {
      "args": [
        "-y",
        "mcp-remote",
        "https://{stuga_host}/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "stuga": {
      "url": "https://{stuga_host}/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "stuga": {
      "type": "http",
      "url": "https://{stuga_host}/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.stuga]
command = "npx"
args = ["-y", "mcp-remote", "https://{stuga_host}/mcp"]

For AI agents

  1. Ask the user for: STUGA_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: workspaces, docs, search, markdown, comments, folders, events, collections, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json