sop-mcp-configuration

Configure SOP-MCP server for step-by-step SOP execution in any MCP client

SOP-MCP Configuration Skill

When to Use This Skill

Use this skill when you need to:

  • Configure SOP-MCP server in any MCP client
  • Set up custom SOP storage locations
  • Configure automation hooks for SOP execution
  • Troubleshoot MCP server configuration

Quick Start

Basic Configuration

Add this to your MCP client's configuration file:

{
  "mcpServers": {
    "sop-mcp": {
      "command": "uvx",
      "args": ["sop-mcp"]
    }
  }
}

With Custom Storage

{
  "mcpServers": {
    "sop-mcp": {
      "command": "uvx",
      "args": ["sop-mcp"],
      "env": {
        "SOP_STORAGE_DIR": "/path/to/your/sops"
      }
    }
  }
}

With Hooks Enabled

{
  "mcpServers": {
    "sop-mcp": {
      "command": "uvx",
      "args": ["sop-mcp"],
      "env": {
        "SOP_STORAGE_DIR": "/path/to/your/sops",
        "SOP_HOOK_CONFIG": "/path/to/your/hooks.yaml"
      }
    }
  }
}

Environment Variables

VariablePurposeDefault
SOP_STORAGE_DIRDirectory for SOP storageBundled directory (ephemeral)
SOP_HOOK_CONFIGPath to a .json, .yaml, or .yml file containing hook definitionsnull (hooks disabled)
SOP_HOOKS_SECUREEnforce HTTPS webhooks and command validation"true"

Hook Examples

Pre-built hook configurations for common workflows:

FilePurpose
examples/shell.hook.jsonLog SOP execution to terminal
examples/webhook.hook.jsonSend HTTP notifications on completion
examples/llm.hook.jsonSurface AI suggestions during execution (JSON)
examples/llm.hook.yamlSurface AI suggestions during execution (YAML)
examples/mixed.hook.jsonCombine shell + webhook + llm hooks

For full hook system documentation, see documentation/hooks.md.


Verification

After configuring, test with:

run_sop(sop_name="sop_creation_guide")

Expected output:

Step 1 of 8: [instructions...]

Troubleshooting

Server won't start

  • Check uvx is installed: which uvx
  • Verify Python 3.10+: python --version

Tools not appearing

  • Verify JSON syntax in your configuration
  • Restart your MCP client after config changes

Hooks not firing

  • Verify SOP_HOOK_CONFIG points to a valid .json, .yaml, or .yml file path
  • Ensure the file exists and is readable
  • Check server logs for hook errors

References