New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@dudko.dev/baton-mcp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dudko.dev/baton-mcp

Baton MCP server (stdio): structured tools for AI agents to edit and run workspace requests.

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

baton-mcp

A local stdio MCP server that gives AI agents structured access to a Baton workspace: list, read, edit, and run requests.

Baton is a git-native API client — collections, environments, and schedules are plain YAML files in a git repository you own. This server operates on a local checkout, so agent changes show up in the app instantly and go through git review like any other change.

Use it

// Claude Code: .mcp.json
{
  "mcpServers": {
    "baton": {
      "command": "npx",
      "args": ["-y", "@dudko.dev/baton-mcp", "--workspace", "/path/to/my-apis"]
    }
  }
}
FlagMeaning
--workspace <dir>The workspace root — the folder holding baton.yaml. Defaults to the working directory.
--allow-runLets the agent execute requests. Off by default.

Requires Node.js 24 or newer.

Tools

ToolWhat it does
workspace_infoCollections, environments, schedules, load issues.
list_requestsRequests with method, url, tags — optionally under one collection.
get_requestFull parsed request, raw YAML, and where its auth comes from.
upsert_requestCreate or replace a request; writes deterministic YAML.
move_requestMove or rename a request, keeping its id.
delete_requestDelete a request.
upsert_collectionCreate or replace a collection, its variables, and its auth.
list_environmentsVariables and secret names.
upsert_environmentCreate or replace an environment.
get_script / upsert_scriptRead and write pre-request, test, and shared library scripts.
run_requestExecute one request (needs --allow-run).
run_collectionExecute every request under a collection (needs --allow-run).

Secrets

Secret values never cross the MCP boundary. Environment files hold secret names; the values live in the OS secure store. A tool call carrying a literal credential is rejected with a message telling the agent to use a {{secret:name}} reference instead. Responses returned to agents truncate bodies and mask Authorization, Cookie, Set-Cookie, and X-API-Key.

Runs are capability-gated because an agent editing files should not silently fire live traffic; with runs disabled the tools still exist and return a clear error, so the agent can tell you how to turn them on.

The server never touches git — commits stay a deliberate action.

License

Proprietary — see LICENSE.

Free for personal, non-commercial use. Commercial use is free for small entities: your group must have raised less than USD 250,000 in total, be valued at less than USD 250,000, and have annual gross revenue under USD 1,000,000. Above any of the three, commercial use needs a license — write to siarhei@dudko.dev.

Redistribution is not permitted. Installing from npm, caching in your own registry proxy, and building your own deployment images are (see Section 4 of the license); republishing, forking, or bundling these packages into something you ship are not.

Keywords

baton

FAQs

Package last updated on 25 Sep 2026

Related posts