AgentSkillsCN

rulebook-mcp

MCP 服务器概述与集成指南。用于设置、配置以及发现可用于任务与技能管理的 MCP 工具。

SKILL.md
--- frontmatter
name: rulebook-mcp
description: MCP server overview and integration guide. Use this for setup, configuration, and discovering available MCP tools for task and skill management.
version: "2.0.0"
category: core
author: "HiveLLM"
tags: ["mcp", "model-context-protocol", "server", "integration", "overview"]
dependencies: []
conflicts: []

Rulebook MCP Server

The Rulebook MCP server exposes 13 tools for programmatic task and skill management via the Model Context Protocol (stdio transport, JSON-RPC 2.0).

Setup

bash
rulebook mcp init

Starting the Server

bash
rulebook-mcp

Available Tools

Task Management (7 tools)

ToolDescriptionSkill Reference
rulebook_task_createCreate a new task with directory structureSee rulebook-task-create skill
rulebook_task_listList tasks with status filteringSee rulebook-task-list skill
rulebook_task_showShow complete task detailsSee rulebook-task-show skill
rulebook_task_updateUpdate task statusSee rulebook-task-update skill
rulebook_task_validateValidate task formatSee rulebook-task-validate skill
rulebook_task_archiveArchive completed taskSee rulebook-task-archive skill
rulebook_task_deletePermanently delete taskSee rulebook-task-delete skill

Skill Management (6 tools)

ToolDescriptionSkill Reference
rulebook_skill_listList available skills by categorySee rulebook-skill-list skill
rulebook_skill_showShow skill details and contentSee rulebook-skill-show skill
rulebook_skill_enableEnable a skill in project configSee rulebook-skill-enable skill
rulebook_skill_disableDisable a skillSee rulebook-skill-disable skill
rulebook_skill_searchSearch skills by querySee rulebook-skill-search skill
rulebook_skill_validateValidate skills configurationSee rulebook-skill-validate skill

Quick Examples

typescript
// Task workflow
await mcp.rulebook_task_create({ taskId: "add-auth-system" });
await mcp.rulebook_task_update({ taskId: "add-auth-system", status: "in-progress" });
await mcp.rulebook_task_show({ taskId: "add-auth-system" });
await mcp.rulebook_task_validate({ taskId: "add-auth-system" });
await mcp.rulebook_task_archive({ taskId: "add-auth-system" });

// Skill workflow
await mcp.rulebook_skill_list({ category: "languages" });
await mcp.rulebook_skill_search({ query: "typescript" });
await mcp.rulebook_skill_enable({ skillId: "languages/typescript" });
await mcp.rulebook_skill_validate({});

MCP Configuration

For Cursor (.cursor/mcp.json):

json
{
  "mcpServers": {
    "rulebook": {
      "command": "rulebook-mcp",
      "args": [],
      "env": {}
    }
  }
}

For Claude Code (.claude/mcp.json):

json
{
  "mcpServers": {
    "rulebook": {
      "command": "rulebook-mcp",
      "args": [],
      "env": {}
    }
  }
}

Notes

  • The server uses stdio transport — stdout is reserved for JSON-RPC messages only
  • All logs go to stderr (use RULEBOOK_MCP_DEBUG=1 for debug output)
  • The server auto-discovers the .rulebook config by walking up directories
  • For detailed input schemas, error handling, and usage of each tool, refer to the individual tool skills listed above