Commands

January 25, 2026 ยท View on GitHub

generate-skill

Generate a new skill package from an MCP server.

mcp2skill generate-skill [flags]

Flags

FlagShortDescription
--server-sMCP server name from config (required)
--output-oParent directory for the skill (default: current directory)
--no-embedDo not embed the binary in the skill package
--force-fOverwrite existing files without warning
--configPath to config file

Example

mcp2skill generate-skill --server my-server --output ./skills --force

This creates ./skills/my-server/ with the skill files inside.

Output:

Skill generated successfully at: ./skills/my-server
  SKILL.md: ./skills/my-server/SKILL.md
  TOOLS.md: ./skills/my-server/references/TOOLS.md
  RESOURCES.md: ./skills/my-server/references/RESOURCES.md
  Binary: ./skills/my-server/bin/mcp2skill

Default Behavior

If --output is omitted, the skill is created in a subdirectory named after the server in the current directory:

mcp2skill generate-skill --server my-server
# Creates ./my-server/

update-skill

Update an existing skill package with fresh MCP server information.

Uses a two-phase workflow: first generates updates in a temporary directory, then applies them on confirmation.

mcp2skill update-skill [flags]

Flags

FlagShortDescription
--skill-sPath to the skill directory (required)
--confirm-cApply the pending updates
--discard-dDiscard pending updates
--update-binaryUpdate the embedded binary when applying updates (only applicable if skill already has embedded binary)
--configPath to config file

Example Workflow For Agents

The agent could initiates an update if a tool-call fails (indicating the tool definition has been changed on the server).

1. Generate updates:

./bin/mcp2skill update-skill

Output:

Updates available at: ./update/
Run with --confirm to apply changes or --discard to cancel

2. Review changes in ./update/

3. Apply or discard:

# Apply the updates
./bin/mcp2skill update-skill --confirm

# OR discard them
./bin/mcp2skill update-skill --discard

Example Workflow for Users

# 1. generate updates
mcp2skill update-skill --skill ~/.claude/skills/my-server

# 2. review changes

# 3. apply changes
mcp2skill update-skill --skill ~/.claude/skills/my-server --confirm

list-tools

List available tools from an MCP server.

mcp2skill list-tools [flags]

Flags

FlagShortDescription
--server-sMCP server name from config (required)
--configPath to config file

Example

mcp2skill list-tools --server my-server

Output:

Found 3 tool(s):

**fetch**: Fetch content from a URL
**search**: Search the web

call-tool

Call a tool from an MCP server directly.

mcp2skill call-tool [flags]

Flags

FlagShortDescription
--server-sMCP server name from config (required)
--tool-tTool name to call (required)
--args-aTool arguments as JSON string
--dry-runShow what would be called without executing
--configPath to config file

Example

mcp2skill call-tool --server my-server --tool fetch --args '{"url": "https://example.com"}'

# Dry run to preview
mcp2skill call-tool --server my-server --tool fetch --dry-run

Global Flags

FlagDescription
--configPath to config file (overrides default lookup)
--verboseEnable verbose output
--help, -hShow help
--version, -vPrint the version