Back to Browse

Sapiom Js MCP Server

by Sapiom
Developer ToolsLow Risk9.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Sapiom MCP server — authentication, verification, and API tools

About

Sapiom MCP server — authentication, verification, and API tools

Security Report

9.2
Low Risk9.2Low Risk

Valid MCP server (1 strong, 1 medium validity signals). 1 known CVE in dependencies ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

15 files analyzed · 2 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

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

Documentation

View on GitHub

From the project's GitHub README.

Sapiom SDK

License: MIT TypeScript

⚠️ Beta Status: Currently in v0.x (beta). API may change before v1.0.0. Production-ready and actively maintained.

TypeScript SDK for building, running, and operating AI agents on Sapiom. Author agents as typed step graphs, call Sapiom paid tools (sandboxes, git repos, coding models, search, file storage, …) directly from your code, and ship them to the Sapiom engine from the CLI or your coding agent's MCP.

📦 Packages

This is a monorepo of focused packages. Install only what you need.

Build & run agents

PackageVersionDescription
@sapiom/agentnpmThe authoring contract: defineAgent, defineStep, directives (goto/terminate), and types
@sapiom/toolsnpmTyped client for Sapiom capabilities — the same tools your agents call, callable from your code
@sapiom/clinpmCommand line: scaffold, validate, deploy, and schedule agents
@sapiom/mcpnpmLocal developer MCP server (sapiom-dev) — build & operate agents from your coding agent

Runtime internals

Lower-level packages that power the stack above. Most users never import these directly, but they're published for advanced/host integrations.

PackageVersionDescription
@sapiom/agent-corenpmPure, stateless functions for scaffolding, validating, and operating agents — shared by the CLI and MCP
@sapiom/agent-runtimenpmHost-agnostic graph-walker runtime — one runtime, two hosts (server engine + local runner)

🚀 Quick Start

New to Sapiom? The fastest path is the CLI or the developer MCP — both scaffold a working agent for you. See the examples folder for complete, runnable projects.

Scaffold an agent with the CLI

npx @sapiom/cli agents init my-app   # scaffold a project
cd my-app
npx @sapiom/cli agents check         # validate locally (bundle, manifest, graph)
npx @sapiom/cli agents deploy        # build and ship

Author an agent

An agent is a typed graph of steps. Each step does work and returns a directive telling the runtime where to go next.

import { defineAgent, defineStep, goto, terminate } from "@sapiom/agent";

const start = defineStep({
  name: "start",
  next: ["finish"],
  async run(input, ctx) {
    return goto("finish", { greeting: `hello ${input.name}` });
  },
});

const finish = defineStep({
  name: "finish",
  next: [],
  terminal: true,
  async run(input) {
    return terminate({ done: true, ...input });
  },
});

export const hello = defineAgent({
  name: "hello",
  entry: "start",
  steps: { start, finish },
});

Call Sapiom capabilities from your code

@sapiom/tools exposes the same capabilities your agents call as tools, typed and authenticated to your tenant.

import { createClient } from "@sapiom/tools";

const sapiom = createClient({ apiKey: process.env.SAPIOM_API_KEY });

// Create a repo, have a coding model build into it, then publish.
const repo = await sapiom.repositories.create("landing-page");
const run = await sapiom.models.coding.run({
  task: "Build a one-page marketing site in index.html.",
  gitRepository: repo,
});

if (run.result?.success) {
  const { sha } = await repo.pushFromSandbox(run.sandbox, {
    message: "build: landing",
  });
  console.log("published", sha);
}

Build agents from your coding agent (MCP)

Add the local developer MCP so your coding agent can scaffold, test, deploy, and inspect Sapiom agents. In Claude Code:

claude mcp add sapiom-dev -- npx -y @sapiom/mcp

@sapiom/mcp is the local developer surface (sapiom_dev_*). It is distinct from the remote Sapiom capability MCP that services paid tool calls — see docs/mcp-servers.md for which to use when.

📚 Documentation

🏗️ Package Architecture

@sapiom/agent            Authoring contract (defineAgent, directives, types)
    ↑
    ├── @sapiom/agent-runtime   Host-agnostic graph-walker runtime
    └── @sapiom/agent-core      Scaffold / validate / operate (pure functions)
            ↑
            ├── @sapiom/cli     Command line
            └── @sapiom/mcp     Local developer MCP (sapiom-dev)

@sapiom/tools            Typed capability client (sandboxes, repos, models, …)

🛠️ Development

This is a pnpm workspace monorepo.

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

# Lint and format
pnpm lint
pnpm format

Package Scripts

# Build / test a specific package
pnpm --filter @sapiom/agent build
pnpm --filter @sapiom/tools test

# Watch mode
pnpm --filter @sapiom/agent dev

Publishing

We use Changesets for version management:

pnpm changeset          # create a changeset
pnpm version-packages   # apply version bumps
pnpm release            # build and publish to npm

🤝 Contributing

Contributions welcome! Please read our Contributing Guide first.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT © Sapiom

🔗 Links

Reviews

No reviews yet

Be the first to review this server!