skully-mcp

v0.3.1
skully-mcp Checked 15 hours ago Published 1 month ago

MCP server for Skully: signed SKILL.md security methodology and executable playbooks for AI agents.

MCP server for Skully: signed SKILL.md security methodology and executable playbooks for AI agents. Skully serves the text; your agent keeps its own tools. Every skill body is hashed and Ed25519-signed at publish time, scoped to the API key that fetched it, and withdrawn skills return 410 Gone with a replacement pointer. The server speaks JSON-RPC over stdio. Diagnostics go to stderr, so stdout stays clean for the client.

Summary extracted from the README.

skully-mcp

MCP server for Skully: signed SKILL.md security methodology and executable playbooks for AI agents.

Skully serves the text; your agent keeps its own tools. Every skill body is hashed and Ed25519-signed at publish time, scoped to the API key that fetched it, and withdrawn skills return 410 Gone with a replacement pointer.

Quick start

# Free key: create an account, then Console -> API keys
export SKULLY_API_KEY=skv_your_key_here

npx skully-mcp

Or with explicit flags:

npx skully-mcp --api-key skv_your_key_here --api-url https://skully.skelersecurity.space

The server speaks JSON-RPC over stdio. Diagnostics go to stderr, so stdout stays clean for the client.

Editor / agent configuration

Claude Code

claude mcp add skully -- npx -y skully-mcp

Then set SKULLY_API_KEY in the environment Claude Code runs in, or pass it:

claude mcp add skully -- npx -y skully-mcp --api-key skv_your_key_here

Cursor / Claude Desktop (mcp.json)

{
  "mcpServers": {
    "skully": {
      "command": "npx",
      "args": ["-y", "skully-mcp"],
      "env": {
        "SKULLY_API_KEY": "skv_your_key_here",
        "SKULLY_API_URL": "https://skully.skelersecurity.space"
      }
    }
  }
}

Tools

Tool What it returns
list_skills Signed skills the key can see, with tier locks and revocation flags. Call this first.
sync_skills Delta sync since a previous server_time, including withdrawals.
get_skill One SKILL.md body, its signature and verification result.
list_playbooks Ordered skill sequences with branching, parallel groups and stop conditions.
get_playbook One playbook (schema v2) with per-step inputs, conditions, control edges and outputs.

All tools are read-only. Skully never executes the methodology for you.

A typical agent loop:

  1. list_skills to discover slugs.
  2. get_skill and read the body before acting.
  3. get_playbook when the task has more than one stage.
  4. sync_skills after a long session so corrected guidance is not ignored.

Configuration

Variable Required Description
SKULLY_API_KEY Yes API key from the Skully dashboard. Starts with skv_.
SKULLY_API_URL No Base URL of a Skully deployment. Defaults to https://skully.skelersecurity.space.
SKULLY_API_BASE No Alias for SKULLY_API_URL.

--api-key and --api-url take precedence over environment variables. A .env file in the current directory is loaded automatically.

Library use

The tool table is exported, so a custom MCP host can register it directly:

import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { createRemoteHandlers, registerSkullyTools } from 'skully-mcp';

const server = new McpServer({ name: 'my-agent', version: '1.0.0' });
registerSkullyTools(
  server,
  createRemoteHandlers({ baseUrl: 'https://skully.skelersecurity.space', apiKey: process.env.SKULLY_API_KEY }),
);

createRemoteHandlers also accepts fetchImpl for testing.

Security

  • The API key is sent only to SKULLY_API_URL as a bearer token.
  • Scope, expiry, IP allow-lists and revocation live in the dashboard, not in the agent config.
  • Skill bodies are plain Markdown; the package adds no install hooks or binaries.

License

MIT