Sekimori
Mediates access to Notion as a remote MCP upstream: reads can run freely, while changes require human approval under the example policy.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Sekimori 関守
The checkpoint between AI agents and the tools they use.
Sekimori is an MCP gateway for code-mode agents such as Claude Code. The agent doesn't call tools one by one: it writes a short TypeScript program against a typed API generated from your MCP servers. Before that program runs, Sekimori:
reads it and extracts a plan;
checks every planned call against Cedar policies;
asks a human once for the whole program whenever untrusted data could reach a sensitive action.
Standing grants (a tegata, the pass a traveller showed at an Edo-period checkpoint) let routine programs through without asking.
Status: pre-release.
What works: the standalone gateway, dogfooded by its author with Claude Code.
Not published: no npm package, no container image, no stable configuration format.
Not built yet: Sekimori Cloud (policy distribution, approvals in the web and Slack, audit history), which is the next milestone.
Site: https://sekimori-dev.github.io
Goal
Agents should be able to act on real systems (mail, chat, issue trackers, files) without a human approving every call. And a prompt injection in something the agent read should still be unable to reach a sensitive action unnoticed. "Approve programs, not calls" keeps the human in the loop without approval fatigue.
Related MCP server: code2mcp
How it works
Code mode. The gateway is an MCP server with two tools:
describe_apireturns TypeScript declarations for every upstream tool;executeruns the agent's program in a QuickJS sandbox. Credentials never enter the sandbox.
Plans. Before running a program, the gateway parses it and lists every tool call with its static arguments. Code it cannot read statically (aliases, computed access) marks the plan as open, and an open plan always needs approval.
Classification. Every tool is a source (trusted or untrusted output), a sink (a sensitive action), both or neither. A tool nobody classified counts as both an untrusted source and a sink, so the default fails closed.
Data flow. Once an untrusted source has been read in an agent session, a sink needs a grant or a human approval. The tracking is coarse in v1: it works per program and session, not per value.
Policies. Every call is checked by Cedar, at plan time and again at runtime with the real arguments.
An approval never overrides a deny.
@approval("required")on a policy forces a human look.Action::"flow"policies are the standing grants.
Approvals. The gateway serves a local dashboard on
127.0.0.1:4747and opens it in your browser when a program needs you. An approval is bound to the exact code (by hash), single-use and expires.Remote MCP servers. The gateway connects to them as you, with OAuth 2.1. Tokens are stored encrypted on your machine, with the key in the macOS Keychain, and are refreshed by the gateway. They never reach the agent.
Dashboard. Requests from every running session appear live, together with your connections and a 30-day history of decisions.
Technologies
Area | Used |
Language | TypeScript, run directly on Node 26 (type stripping, no build step) |
MCP |
|
Sandbox | QuickJS via |
Policies | Cedar via |
Validation | zod |
Tests | vitest |
Package manager | pnpm (workspace) |
Setup
You need Node 26 and pnpm 11.
git clone https://github.com/sekimori-dev/sekimori.git
cd sekimori
pnpm installRunning it with Claude Code
The dogfood/ folder is a locked-down Claude Code profile. Started there, Claude Code can only act through Sekimori:
cd dogfood
claudeApprove the sekimori MCP server when asked, then give the agent a task. The gateway uses packages/gateway/example/sekimori.config.json and policies.cedar next to it:
the filesystem server runs on the
dogfood/folder;Notion is configured as a remote server; reads run freely, and every change asks first.
The gateway loads its configuration and policies at startup, so run /mcp in Claude Code to reconnect after changing them.
To use Sekimori in your own project, add it to that project's .mcp.json:
{
"mcpServers": {
"sekimori": {
"command": "node",
"args": ["/path/to/sekimori/packages/gateway/src/cli.ts", "--config", "/path/to/sekimori.config.json"]
}
}
}Configuration
Field | Meaning |
| The Cedar principal, |
| Whose tokens and activity this gateway uses. Defaults to your OS user name. |
| Path to the Cedar policy file, relative to the config file. |
| MCP servers. Either |
|
|
|
|
If no browser tab opens when a program needs you, run pnpm approvals. It asks every running gateway to open its dashboard.
What the gateway stores
Everything lives under ~/.sekimori/ on your machine:
credentials/<user>/: OAuth tokens, encrypted with AES-256-GCM;activity/<user>/: one log file per day for the dashboard. It holds plans, statuses and decisions, but never code, tool results or tokens, and is kept for 30 days;approver-<port>.json: the port, pid and user of each running gateway.
On macOS the encryption key is a Keychain item (service sekimori); elsewhere it is ~/.sekimori/credentials.key.
No environment variables are needed.
Development
pnpm -C packages/gateway typecheck
pnpm -C packages/gateway testThe tests fake only system boundaries: upstream MCP servers, the OAuth authorization server and process signals.
New dependencies need the maintainer's approval.
Commits follow Conventional Commits.
Known limits
Same-user agents. An agent with unrestricted shell access as the same OS user can still read the browser's cookie store or edit the policy file. Real separation needs an approval channel off the agent's machine; that is planned for Sekimori Cloud.
Coarse data-flow tracking. It works per program and session; per-value tracking comes later.
Linked account. The dashboard cannot show which upstream account an OAuth connection belongs to.
Windows.
pnpm approvalsand "Open in its session" rely onSIGUSR2and do not work on Windows yet.
Security
Please report vulnerabilities privately. See SECURITY.md.
License
MIT for the gateway in this repository.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed app access for AI agents: 1,000+ apps & 12,000+ tools via Code Mode MCP.
Permission checks, human approval cards, and signed audit trails for AI agent tool calls.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with MCP servers by writing TypeScript/JavaScript code instead of direct tool calls. Provides a code execution sandbox that accesses MCP servers through HTTP proxy endpoints.134MIT
- FlicenseAqualityNot gradedmaintenanceEnables execution of TypeScript code to call MCP tools instead of direct tool calls, reducing token usage by up to 98% while orchestrating complex multi-tool workflows through secure sandboxed code execution.1-
- AlicenseNot gradedqualityCmaintenanceEnables building safe, programmable Code Mode MCP servers from upstream tool sources, with model-authored TypeScript running in a sandbox and tool calls routed to trusted host-side providers.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides a governed execution boundary for AI agents, enforcing deterministic policy, one-shot human approvals, and signed receipts for MCP tool effects.MIT