Skip to main content

MCP server for AI-first development design document templates

Project description

byebye-docs MCP Server

PyPI version Python 3.10+ License: MIT

byebye-docs用のMCPサーバーです。 Claude CodeやClaude Desktopと連携して、.agent/ ドキュメントの作成・更新・検証、およびコードとドキュメントの双方向同期をサポートします。

インストール

PyPIからインストール(推奨)

pip install byebye-docs-mcp

または uv を使用:

uv tool install byebye-docs-mcp

プロジェクトへの適用

初期化スクリプトを使用して、既存プロジェクトにbyebye-docsを適用:

curl -sL https://raw.githubusercontent.com/pon-tanuki/byebye-docs/main/scripts/init-project.sh | bash -s /path/to/your-project

または手動で:

# 1. MCPサーバーをインストール
pip install byebye-docs-mcp

# 2. テンプレートをコピー(GitHubから)
git clone --depth 1 https://github.com/pon-tanuki/byebye-docs.git /tmp/byebye-docs
cp -r /tmp/byebye-docs/.agent /path/to/your-project/
cp /tmp/byebye-docs/CLAUDE.md /path/to/your-project/

# 3. .mcp.json を作成(下記参照)

Claude Codeでの設定

プロジェクトルートに .mcp.json を作成:

{
  "mcpServers": {
    "byebye-docs": {
      "command": "byebye-docs",
      "env": {
        "BYEBYE_DOCS_PROJECT_PATH": "."
      }
    }
  }
}

機能

Resources(リソース)

URI 説明
template://structure テンプレートの構造情報
template://schema 各ドキュメントの検証スキーマ
project://current 現在のプロジェクト情報
docs://list プロジェクト内の既存ドキュメント一覧

Tools(ツール)

ドキュメント管理

ツール名 説明
list_templates 利用可能なテンプレート一覧を取得
create_document テンプレートから新規ドキュメントを作成
get_section ドキュメントの特定セクションの内容を取得
update_section ドキュメントの特定セクションを更新(マーカーベース)
validate_document ドキュメントが規定の構造に従っているか検証
fill_metadata プロジェクト情報からメタデータを自動入力

コード↔ドキュメント同期

ツール名 説明
diff_code_docs コードとドキュメント間の差分を検出
extract_from_code コードからAPI/エンティティ情報を抽出しYAML出力
auto_sync コード変更をドキュメントに自動反映(preview/apply)

Prompts(プロンプト)

プロンプト名 説明
design-review 設計レビュー用のワークフロー
update-architecture アーキテクチャ図更新のガイド

使用例

コードとドキュメントの差分検出

diff_code_docs(
    code_path="src/",
    doc_type="all",  # "api", "entities", "all"
    language="auto"
)

コードからドキュメント情報を抽出

extract_from_code(
    code_path="src/",
    extract_type="all",  # "api", "entities", "all"
    output_format="yaml",
    merge_with_existing=True
)

ドキュメントの自動同期

# プレビュー(変更内容を確認)
auto_sync(mode="preview", code_path="src/")

# 適用(実際にドキュメントを更新)
auto_sync(mode="apply", code_path="src/", target_docs=["api.yaml", "entities.yaml"])

テンプレートからドキュメント作成

create_document(
    template_type="context.yaml",
    output_path=".agent/context.yaml",
    metadata={
        "project_name": "My Project",
        "author": "Claude Agent"
    }
)

更新方法

pip install --upgrade byebye-docs-mcp
# または
uv tool install byebye-docs-mcp --force

環境変数

変数名 説明 デフォルト
BYEBYE_DOCS_PROJECT_PATH 対象プロジェクトのルートパス カレントディレクトリ

開発

ソースからインストール

git clone https://github.com/pon-tanuki/byebye-docs.git
cd byebye-docs/mcp-server
uv sync

テストの実行

uv run pytest

Lintの実行

uv run ruff check .
uv run ruff format .

対応言語(コード解析)

  • Python - FastAPI, Flask, SQLAlchemy, Pydantic, dataclass

ライセンス

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

byebye_docs_mcp-0.1.0.tar.gz (83.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

byebye_docs_mcp-0.1.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file byebye_docs_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: byebye_docs_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 83.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for byebye_docs_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 80ebd13c4d5fd5fc0f1a4519175a1c167744c29b886d7ea967f14560e96c1e6f
MD5 cb2f45bd3b07d63015e436668ae07a24
BLAKE2b-256 665723edb6e3effba6f6b3e6ac8fbb8a072235b68f8380baed8b0495d70cb172

See more details on using hashes here.

Provenance

The following attestation bundles were made for byebye_docs_mcp-0.1.0.tar.gz:

Publisher: publish-pypi.yml on pon-tanuki/byebye-docs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file byebye_docs_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for byebye_docs_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a210b73b6dd658789fc122c18783de1418c92666f606313a9e9d28236766efb
MD5 15a559f54c04d6e1ddbea7d94bd49233
BLAKE2b-256 4cd790a8a016540315708fc8c097836786f807be531eae18514c324d1bee2ef6

See more details on using hashes here.

Provenance

The following attestation bundles were made for byebye_docs_mcp-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on pon-tanuki/byebye-docs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page