🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@marchward/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marchward/mcp-server

Marchward MCP Server: governance layer for AI coding agents via Model Context Protocol

latest
npmnpm
Version
0.2.4
Version published
Weekly downloads
63
-24.1%
Maintainers
1
Weekly downloads
 
Created
Source

Marchward MCP Server

Govern what an AI coding agent is allowed to do, from inside the agent. This is an MCP server that exposes Marchward governance operations as tools, so an agent (Claude, Cursor, Copilot, Windsurf, etc.) can check authorization before it acts, run actions through a credential-mediated gateway, and read its own tamper-evident audit trail.

Apache-2.0. The agent holds only a Marchward API key; the real downstream credentials are injected server-side, never by the agent.

Tools

ToolPurpose
marchward_authorizeCheck whether an action is allowed before the agent takes it (ALLOW / BLOCK / ESCALATE / ALLOW_WITH_CONDITIONS).
marchward_executeRun an action through Marchward's credential-mediated gateway.
marchward_register_agentRegister a new agent so it is governed from its first action.
marchward_list_agentsList registered agents and their bound policies.
marchward_get_decisionsRead the governance decision audit trail.
marchward_check_coverageFind governance gaps between declared and actually-called tools.
marchward_bind_policyAttach a governance policy to an agent.

Quick start

You need a Marchward API key (mw_...), free at marchward.ai.

stdio (Claude Code, Cursor, local)

{
  "mcpServers": {
    "marchward": {
      "command": "npx",
      "args": ["-y", "@marchward/mcp-server"],
      "env": {
        "MARCHWARD_API_URL": "https://api.marchward.ai",
        "MARCHWARD_API_KEY": "mw_your_key_here"
      }
    }
  }
}

Streamable HTTP (remote)

{
  "mcpServers": {
    "marchward": {
      "type": "url",
      "url": "https://mcp.marchward.ai/mcp",
      "headers": { "Authorization": "Bearer mw_your_key_here" }
    }
  }
}

Environment variables

VariableRequiredDefaultDescription
MARCHWARD_API_URLyesMarchward API base URL (https://api.marchward.ai)
MARCHWARD_API_KEYyes (stdio)Your Marchward API key (mw_...)
TRANSPORTnostdiostdio or http
PORTno3100HTTP server port (http transport only)

Run from source

npm install
npm run build
MARCHWARD_API_URL=https://api.marchward.ai MARCHWARD_API_KEY=mw_... npm start

How it fits

This server is the agent-facing surface of the Marchward runtime authority. The open governance engine and proxy live at github.com/marchward/marchward; the hosted control plane (credential vault, audit-as-a-service, approval workflow) is at marchward.ai.

FAQs

Package last updated on 24 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts