npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sawala/mcp

v0.4.0

Published

Drive the Sawala API (Kontena, Formulir, Berkasna, Kodena) from any MCP-capable AI agent.

Downloads

1,007

Readme

@sawala/mcp

Drive the Sawala API — Kontena, Formulir, Berkasna — from any MCP-capable AI agent (Claude Desktop, Claude Code, Cursor, Continue.dev, Zed, …).

Sibling to @sawala/kodena-mcp, which covers the Kodena deployment product. The two servers coexist under separate MCP entries with separate credentials stores.

┌─────────────────────┐          stdio JSON-RPC          ┌──────────────────┐
│ Claude Desktop /    │ ───────────────────────────────▶ │ sawala-mcp       │
│ Claude Code /       │ ◀─────────────────────────────── │ (node process    │
│ Cursor / …          │                                   │  on your laptop) │
└─────────────────────┘                                   └─────────┬────────┘
                                                                    │ HTTPS
                                                                    ▼
                                                          ┌──────────────────┐
                                                          │ api.sawala.cloud │
                                                          └──────────────────┘

Quick start

  1. Log in once via the @sawala/cli companion (writes ~/.sawala/credentials):

    npm i -g @sawala/cli
    sawala login
    sawala org use <org-slug>
    sawala project use <project-slug>
  2. Wire the MCP server into your host. Pick the snippet below.

  3. Ask the agent in plain English. "List my Kontena content schemas." "Show the latest 10 submissions of the contact form." "What images are in this project's media library?"

Host configuration

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "sawala": {
      "command": "npx",
      "args": ["-y", "@sawala/mcp"]
    }
  }
}

Restart Claude Desktop. The "sawala" server appears with 11 tools available.

Claude Code

claude mcp add sawala -- npx -y @sawala/mcp

Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "sawala": {
      "command": "npx",
      "args": ["-y", "@sawala/mcp"]
    }
  }
}

Local-build testing

To point a host at a locally built binary:

{
  "mcpServers": {
    "sawala": {
      "command": "node",
      "args": ["/absolute/path/to/cli/packages/sawala-mcp/dist/server.js"]
    }
  }
}

Tools

All tools are flagged readOnlyHint: true; MCP hosts may auto-allow them without per-call confirmation.

Identity

| Tool | API | Description | | --- | --- | --- | | sawala_whoami | GET /cli/organization/me | Identity + active org/project context. |

Kontena (content)

| Tool | API | Description | | --- | --- | --- | | sawala_kontena_list_schemas | GET /cli/kontena/projects/:projId/schemas | List content schemas in the active project. | | sawala_kontena_get_schema | GET /cli/kontena/projects/:projId/schemas/:id | Show one schema. Accepts ULID or slug (slug falls back to a list lookup). | | sawala_kontena_list_entries | GET /cli/kontena/projects/:projId/content/collection/:schemaSlug | List entries for a collection schema. Filters: locale, state (preview or live). | | sawala_kontena_get_entry | GET /cli/kontena/projects/:projId/content/collection/:schemaSlug/:idOrSlug | Show one entry. Same filters as list. |

Formulir (forms + submissions)

| Tool | API | Description | | --- | --- | --- | | sawala_formulir_list_forms | GET /cli/formulir/projects/:projId/forms | List forms in the active project. | | sawala_formulir_get_form | GET /cli/formulir/projects/:projId/forms/:id | Show one form (full definition). ULID-or-slug. | | sawala_formulir_list_submissions | GET /cli/formulir/projects/:projId/forms/:id/submissions | List submissions for a form. Filters: status, source, limit, cursor. The per-submission data field is intentionally omitted from list output — fetch with get_submission for the full payload. | | sawala_formulir_get_submission | GET /cli/formulir/projects/:projId/forms/:id/submissions/:subId | Show one submission, including its data payload. |

Berkasna (asset metadata)

Berkasna routes are org-scoped (no :projId segment). The active project is sent in the x-project-id header for the audit trail; pass an explicit projectId to filter the list.

| Tool | API | Description | | --- | --- | --- | | sawala_berkasna_list_assets | GET /cli/berkasna/assets | List assets in the org. Filters: kind (image / pdf / video / audio / all), projectId, limit, cursor. Returns metadata; for bytes, follow each asset's publicUrl. | | sawala_berkasna_get_asset | GET /cli/berkasna/assets/:id | Show one asset's full metadata. |

Authentication

The server reads ~/.sawala/credentials (written by sawala login) on every tool call — so sawala project use <slug> in a separate terminal takes effect on the very next tool invocation without restarting the host.

For non-interactive environments (CI runners, sandboxed agents), pass the token via the MCP server's env:

{
  "mcpServers": {
    "sawala": {
      "command": "npx",
      "args": ["-y", "@sawala/mcp"],
      "env": {
        "SAWALA_API_TOKEN": "koda_…",
        "SAWALA_ORG": "acme",
        "SAWALA_PROJECT": "my-project"
      }
    }
  }
}

Links

License

MIT — see LICENSE.