Skip to main content
Glama

miyo-satori

miyo-satori is an MCP gateway server that routes tool calls to downstream MCP servers while capturing session context. It sits between Claude Code and your MCP servers, recording activity into a local SQLite database and providing tools for context retrieval, tool discovery, and schema inspection.

Quick start

No install needed — add the entry below to your MCP config and npx will fetch and run satori on demand.

Related MCP server: MCP Tool-Calling Agent

MCP config

Add the following to your Claude Code settings (.claude/settings.json or ~/.claude/settings.json):

{
  "mcpServers": {
    "satori": {
      "command": "npx",
      "args": ["-y", "miyo-satori"]
    }
  }
}

The first launch downloads and caches the package; subsequent launches start instantly.

Local development

If you are working on satori itself, clone the repo and point the MCP config at the built file:

git clone https://github.com/MMoMM-org/miyo-satori.git
cd miyo-satori
npm install && npm run build
{
  "mcpServers": {
    "satori": {
      "command": "node",
      "args": ["/absolute/path/to/miyo-satori/dist/src/index.js"]
    }
  }
}

Configuration: satori.toml

Satori merges configuration from three levels (global → project → repo). Create a satori.toml at the repo root (or ~/.satori/config.toml for global defaults). See satori.toml.example for all available fields with comments.

Every row Satori writes is tagged with a client (defaults to basename(repoRoot)) so that two repos sharing one storage location stay isolated. Override with --client <name> in the MCP args, or with [context] client = "..." in satori.toml. See docs/configuration.md and docs/concepts.md for the full tenant model.

Tools

Tool

Description

satori_context

Retrieve the current session snapshot — active files, task state, decisions, and recent MCP tool calls

satori_manage

Start, stop, or inspect downstream server status; register servers at runtime

satori_find

Search the tool catalog across all registered servers by keyword

satori_schema

Get the full input schema for a specific tool on a specific server

satori_exec

Route a tool call to a downstream server; starts the server if not running

satori_kb

Knowledge base search (index/search/fetch_and_index)

Note: bash is a built-in code execution tool (not listed as a separate MCP tool — use directly as satori_exec("bash", ...))

Documentation

Hooks setup

Satori ships Claude Code hooks that capture file activity, git operations, and other session events. The miyo-satori install-hooks subcommand registers them in your Claude Code settings.json for you.

For stable hook paths across satori updates, install satori globally so the install path does not move:

npm install -g miyo-satori
miyo-satori install-hooks

This registers hook entries in <cwd>/.claude/settings.json if it exists, otherwise ~/.claude/settings.json. Override the destination with --settings <path> or the SATORI_HOOKS_SETTINGS environment variable. Re-run the same command after npm install -g miyo-satori@latest to refresh the paths if the global location ever moves.

npx -y miyo-satori install-hooks also works but writes paths into the npx cache directory, which gets invalidated on version bumps. You'll see a warning when the install detects this.

Usage example

satori_find("read file")
  → returns: filesystem:read_file

satori_schema("filesystem", "read_file")
  → returns input schema with required "path" parameter

satori_exec("filesystem", "read_file", { "path": "/path/to/file" })
  → routes call to the filesystem server, captures output to context DB

Releasing a new version

Releases are automated via GitHub Actions. Pushing a v* tag triggers a workflow that runs typecheck, tests, build, and npm publish with provenance.

git checkout main && git pull
npm version patch        # or: minor / major
git push --follow-tags

That is the whole release flow. The workflow at .github/workflows/release.yml enforces that the tag matches package.json so the two cannot drift.

For pre-release tags (e.g. v0.2.0-beta.0) the workflow still publishes; consumers opt in via npx -y miyo-satori@beta.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Acts as a proxy/router for multiple downstream MCP servers, exposing only meta-tools to the host to reduce token usage, enabling efficient search and invocation of tools from a fleet of servers.
      7 npm
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables an LLM to dynamically discover and call tools across multiple MCP servers (file, GitHub, SQL, Python execution) with authentication, rate limiting, and observability, supporting parallel execution and secure deployment.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides a single MCP endpoint that dynamically discovers, routes, policy-checks, and executes hundreds of MCP tools from any agent, with optional LLM-based routing.
      1
      Apache 2.0