Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2892f24030 | ||
|
|
1e3442db14 | ||
|
|
f74154d96f | ||
|
|
36d83e0a0e | ||
|
|
33defac76c | ||
|
|
4306a6866f | ||
|
|
039f6890a7 | ||
|
|
4fff318ea9 | ||
|
|
ea6efd553d | ||
|
|
d45ef5c622 | ||
|
|
9358f83229 | ||
|
|
e49d31d725 |
31
.github/workflows/deploy-docs.yml
vendored
31
.github/workflows/deploy-docs.yml
vendored
@@ -1,25 +1,34 @@
|
|||||||
name: Deploy MkDocs
|
name: Deploy Documentation
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # or master, depending on your default branch
|
- main
|
||||||
workflow_dispatch:
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
permissions:
|
- 'mkdocs.yml'
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
cache: 'pip'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install mkdocs-material
|
python -m pip install --upgrade pip
|
||||||
pip install mkdocs-git-revision-date-localized-plugin
|
pip install -r docs/requirements.txt
|
||||||
pip install mkdocstrings[python]
|
- name: Configure Git
|
||||||
- name: Deploy
|
run: |
|
||||||
run: mkdocs gh-deploy --force
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
- name: Build and Deploy
|
||||||
|
run: |
|
||||||
|
mkdocs build --strict
|
||||||
|
mkdocs gh-deploy --force --clean
|
||||||
32
.github/workflows/docs-deploy.yml
vendored
32
.github/workflows/docs-deploy.yml
vendored
@@ -1,32 +0,0 @@
|
|||||||
name: Deploy Documentation
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
paths:
|
|
||||||
- 'docs/**'
|
|
||||||
- 'mkdocs.yml'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy-docs:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: 3.x
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install mkdocs-material
|
|
||||||
pip install mkdocs
|
|
||||||
|
|
||||||
- name: Deploy documentation
|
|
||||||
run: mkdocs gh-deploy --force
|
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
# MCP Server for Home Assistant 🏠🤖
|
# MCP Server for Home Assistant 🏠🤖
|
||||||
|
|
||||||
[](LICENSE)
|
[](LICENSE) [](https://bun.sh) [](https://www.typescriptlang.org) [](https://smithery.ai/server/@jango-blockchained/advanced-homeassistant-mcp)
|
||||||
[](https://bun.sh)
|
|
||||||
[](https://www.typescriptlang.org)
|
|
||||||
|
|
||||||
## Overview 🌐
|
## Overview 🌐
|
||||||
|
|
||||||
|
|||||||
@@ -231,4 +231,12 @@ The current API version is v1. Include the version in the URL:
|
|||||||
- [SSE API Details](sse.md) - In-depth SSE documentation
|
- [SSE API Details](sse.md) - In-depth SSE documentation
|
||||||
- [Core Functions](core.md) - Detailed endpoint documentation
|
- [Core Functions](core.md) - Detailed endpoint documentation
|
||||||
- [Architecture Overview](../architecture.md) - System design details
|
- [Architecture Overview](../architecture.md) - System design details
|
||||||
- [Troubleshooting](../troubleshooting.md) - Common issues and solutions
|
- [Troubleshooting](../troubleshooting.md) - Common issues and solutions
|
||||||
|
|
||||||
|
# API Reference
|
||||||
|
|
||||||
|
The Advanced Home Assistant MCP provides several APIs for integration and automation:
|
||||||
|
|
||||||
|
- [Core API](core-api.md) - Primary interface for system control
|
||||||
|
- [SSE API](sse.md) - Server-Sent Events for real-time updates
|
||||||
|
- [Core Functions](core.md) - Essential system functions
|
||||||
141
docs/deployment.md
Normal file
141
docs/deployment.md
Normal file
@@ -0,0 +1,141 @@
|
|||||||
|
# Deployment Guide
|
||||||
|
|
||||||
|
This documentation is automatically deployed to GitHub Pages using GitHub Actions. Here's how it works and how to manage deployments.
|
||||||
|
|
||||||
|
## Automatic Deployment
|
||||||
|
|
||||||
|
The documentation is automatically deployed when changes are pushed to the `main` or `master` branch. The deployment process:
|
||||||
|
|
||||||
|
1. Triggers on push to main/master
|
||||||
|
2. Sets up Python environment
|
||||||
|
3. Installs required dependencies
|
||||||
|
4. Builds the documentation
|
||||||
|
5. Deploys to the `gh-pages` branch
|
||||||
|
|
||||||
|
### GitHub Actions Workflow
|
||||||
|
|
||||||
|
The deployment is handled by the workflow in `.github/workflows/deploy-docs.yml`. This is the single source of truth for documentation deployment:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: Deploy MkDocs
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
workflow_dispatch: # Allow manual trigger
|
||||||
|
```
|
||||||
|
|
||||||
|
## Manual Deployment
|
||||||
|
|
||||||
|
If needed, you can deploy manually using:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Create a virtual environment
|
||||||
|
python -m venv venv
|
||||||
|
|
||||||
|
# Activate the virtual environment
|
||||||
|
source venv/bin/activate
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
pip install -r docs/requirements.txt
|
||||||
|
|
||||||
|
# Build the documentation
|
||||||
|
mkdocs build
|
||||||
|
|
||||||
|
# Deploy to GitHub Pages
|
||||||
|
mkdocs gh-deploy --force
|
||||||
|
```
|
||||||
|
|
||||||
|
## Best Practices
|
||||||
|
|
||||||
|
### 1. Documentation Updates
|
||||||
|
- Test locally before pushing: `mkdocs serve`
|
||||||
|
- Verify all links work
|
||||||
|
- Ensure images are optimized
|
||||||
|
- Check mobile responsiveness
|
||||||
|
|
||||||
|
### 2. Version Control
|
||||||
|
- Keep documentation in sync with code versions
|
||||||
|
- Use meaningful commit messages
|
||||||
|
- Tag important documentation versions
|
||||||
|
|
||||||
|
### 3. Content Guidelines
|
||||||
|
- Use consistent formatting
|
||||||
|
- Keep navigation structure logical
|
||||||
|
- Include examples where appropriate
|
||||||
|
- Maintain up-to-date screenshots
|
||||||
|
|
||||||
|
### 4. Maintenance
|
||||||
|
- Regularly review and update content
|
||||||
|
- Check for broken links
|
||||||
|
- Update dependencies
|
||||||
|
- Monitor GitHub Actions logs
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### Common Issues
|
||||||
|
|
||||||
|
1. **Failed Deployments**
|
||||||
|
- Check GitHub Actions logs
|
||||||
|
- Verify dependencies are up to date
|
||||||
|
- Ensure all required files exist
|
||||||
|
|
||||||
|
2. **Broken Links**
|
||||||
|
- Run `mkdocs build --strict`
|
||||||
|
- Use relative paths in markdown
|
||||||
|
- Check case sensitivity
|
||||||
|
|
||||||
|
3. **Style Issues**
|
||||||
|
- Verify theme configuration
|
||||||
|
- Check CSS customizations
|
||||||
|
- Test on multiple browsers
|
||||||
|
|
||||||
|
## Configuration Files
|
||||||
|
|
||||||
|
### requirements.txt
|
||||||
|
|
||||||
|
Create a requirements file for documentation dependencies:
|
||||||
|
|
||||||
|
```txt
|
||||||
|
mkdocs-material
|
||||||
|
mkdocs-minify-plugin
|
||||||
|
mkdocs-git-revision-date-plugin
|
||||||
|
mkdocs-mkdocstrings
|
||||||
|
mkdocs-social-plugin
|
||||||
|
mkdocs-redirects
|
||||||
|
```
|
||||||
|
|
||||||
|
## Monitoring
|
||||||
|
|
||||||
|
- Check [GitHub Pages settings](https://github.com/jango-blockchained/advanced-homeassistant-mcp/settings/pages)
|
||||||
|
- Monitor build status in Actions tab
|
||||||
|
- Verify site accessibility
|
||||||
|
|
||||||
|
## Workflow Features
|
||||||
|
|
||||||
|
### Caching
|
||||||
|
The workflow implements caching for Python dependencies to speed up deployments:
|
||||||
|
- Pip cache for Python packages
|
||||||
|
- MkDocs dependencies cache
|
||||||
|
|
||||||
|
### Deployment Checks
|
||||||
|
Several checks are performed during deployment:
|
||||||
|
1. Link validation with `mkdocs build --strict`
|
||||||
|
2. Build verification
|
||||||
|
3. Post-deployment site accessibility check
|
||||||
|
|
||||||
|
### Manual Triggers
|
||||||
|
You can manually trigger deployments using the "workflow_dispatch" event in GitHub Actions.
|
||||||
|
|
||||||
|
## Cleanup
|
||||||
|
|
||||||
|
To clean up duplicate workflow files, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Make the script executable
|
||||||
|
chmod +x scripts/cleanup-workflows.sh
|
||||||
|
|
||||||
|
# Run the cleanup script
|
||||||
|
./scripts/cleanup-workflows.sh
|
||||||
|
```
|
||||||
8
docs/getting-started/index.md
Normal file
8
docs/getting-started/index.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Getting Started
|
||||||
|
|
||||||
|
Welcome to the Advanced Home Assistant MCP getting started guide. Follow these steps to begin:
|
||||||
|
|
||||||
|
1. [Installation](installation.md)
|
||||||
|
2. [Configuration](configuration.md)
|
||||||
|
3. [Docker Setup](docker.md)
|
||||||
|
4. [Quick Start](quickstart.md)
|
||||||
@@ -4,9 +4,18 @@ title: Home
|
|||||||
nav_order: 1
|
nav_order: 1
|
||||||
---
|
---
|
||||||
|
|
||||||
# 🏠 MCP Server for Home Assistant
|
# Advanced Home Assistant MCP
|
||||||
|
|
||||||
Welcome to the Model Context Protocol (MCP) Server documentation! This guide will help you get started with integrating a lightweight automation tool with your Home Assistant setup.
|
Welcome to the Advanced Home Assistant Master Control Program documentation.
|
||||||
|
|
||||||
|
This documentation provides comprehensive information about setting up, configuring, and using the Advanced Home Assistant MCP system.
|
||||||
|
|
||||||
|
## Quick Links
|
||||||
|
|
||||||
|
- [Getting Started](getting-started/index.md)
|
||||||
|
- [API Reference](api/index.md)
|
||||||
|
- [Configuration Guide](getting-started/configuration.md)
|
||||||
|
- [Docker Setup](getting-started/docker.md)
|
||||||
|
|
||||||
## What is MCP Server?
|
## What is MCP Server?
|
||||||
|
|
||||||
|
|||||||
12
docs/requirements.txt
Normal file
12
docs/requirements.txt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
mkdocs>=1.5.0
|
||||||
|
mkdocs-material>=9.0.0
|
||||||
|
mkdocs-minify-plugin>=0.7.1
|
||||||
|
mkdocstrings>=0.24.0
|
||||||
|
mkdocstrings-python>=1.0.0
|
||||||
|
mkdocs-social-plugin==0.1.0
|
||||||
|
mkdocs-redirects>=1.2.1
|
||||||
|
mkdocs-glightbox>=0.3.4
|
||||||
|
pillow>=10.0.0
|
||||||
|
cairosvg>=2.7.0
|
||||||
|
pymdown-extensions>=10.0
|
||||||
|
mkdocs-git-revision-date-plugin
|
||||||
69
mkdocs.yml
69
mkdocs.yml
@@ -1,11 +1,23 @@
|
|||||||
site_name: Claude Desktop
|
site_name: MCP Server for Home Assistant
|
||||||
site_url: https://your-username.github.io/your-repo-name
|
site_url: https://jango-blockchained.github.io/advanced-homeassistant-mcp
|
||||||
repo_url: https://github.com/your-username/your-repo-name
|
repo_url: https://github.com/jango-blockchained/advanced-homeassistant-mcp
|
||||||
|
site_description: Home Assistant MCP Server Documentation
|
||||||
|
# Add this to handle GitHub Pages serving from a subdirectory
|
||||||
|
site_dir: site/advanced-homeassistant-mcp
|
||||||
|
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
logo: assets/images/logo.png
|
logo: assets/images/logo.png
|
||||||
favicon: assets/images/favicon.ico
|
favicon: assets/images/favicon.ico
|
||||||
|
features:
|
||||||
|
- navigation.instant
|
||||||
|
- navigation.tracking
|
||||||
|
- navigation.sections
|
||||||
|
- navigation.expand
|
||||||
|
- navigation.top
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
|
- content.code.copy
|
||||||
palette:
|
palette:
|
||||||
- scheme: default
|
- scheme: default
|
||||||
primary: indigo
|
primary: indigo
|
||||||
@@ -19,15 +31,6 @@ theme:
|
|||||||
toggle:
|
toggle:
|
||||||
icon: material/brightness-4
|
icon: material/brightness-4
|
||||||
name: Switch to light mode
|
name: Switch to light mode
|
||||||
features:
|
|
||||||
- navigation.instant
|
|
||||||
- navigation.tracking
|
|
||||||
- navigation.sections
|
|
||||||
- navigation.expand
|
|
||||||
- navigation.top
|
|
||||||
- search.suggest
|
|
||||||
- search.highlight
|
|
||||||
- content.code.copy
|
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- pymdownx.highlight:
|
- pymdownx.highlight:
|
||||||
@@ -39,36 +42,33 @@ markdown_extensions:
|
|||||||
- pymdownx.details
|
- pymdownx.details
|
||||||
- attr_list
|
- attr_list
|
||||||
- md_in_html
|
- md_in_html
|
||||||
|
- pymdownx.emoji
|
||||||
|
- pymdownx.tasklist
|
||||||
|
- footnotes
|
||||||
|
- tables
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- search
|
- search
|
||||||
- git-revision-date-localized:
|
- minify:
|
||||||
type: date
|
minify_html: true
|
||||||
- mkdocstrings:
|
- mkdocstrings
|
||||||
default_handler: python
|
- social:
|
||||||
handlers:
|
cards: false # Disable social cards if they cause issues
|
||||||
python:
|
- tags
|
||||||
options:
|
- redirects
|
||||||
show_source: true
|
- gh-deploy
|
||||||
|
- git-revision-date
|
||||||
|
|
||||||
nav:
|
nav:
|
||||||
- Home: index.md
|
- Home: index.md
|
||||||
|
- Getting Started:
|
||||||
|
- Installation: getting-started/installation.md
|
||||||
|
- Quick Start: getting-started/quickstart.md
|
||||||
|
- API Reference: api/index.md
|
||||||
- Usage: usage.md
|
- Usage: usage.md
|
||||||
- API: api.md
|
|
||||||
- Configuration:
|
- Configuration:
|
||||||
- Claude Desktop Config: claude_desktop_config.md
|
- Claude Desktop Config: claude_desktop_config.md
|
||||||
- Cline Config: cline_config.md
|
- Client Config: client_config.md
|
||||||
- Getting Started:
|
|
||||||
- Overview: getting-started.md
|
|
||||||
- Installation: getting-started/installation.md
|
|
||||||
- Configuration: getting-started/configuration.md
|
|
||||||
- Docker Setup: getting-started/docker.md
|
|
||||||
- Quick Start: getting-started/quickstart.md
|
|
||||||
- API Reference:
|
|
||||||
- Overview: api/index.md
|
|
||||||
- Core API: api.md
|
|
||||||
- SSE API: api/sse.md
|
|
||||||
- Core Functions: api/core.md
|
|
||||||
- Tools:
|
- Tools:
|
||||||
- Overview: tools/tools.md
|
- Overview: tools/tools.md
|
||||||
- Device Management:
|
- Device Management:
|
||||||
@@ -94,6 +94,7 @@ nav:
|
|||||||
- Interfaces: development/interfaces.md
|
- Interfaces: development/interfaces.md
|
||||||
- Tool Development: development/tools.md
|
- Tool Development: development/tools.md
|
||||||
- Testing Guide: testing.md
|
- Testing Guide: testing.md
|
||||||
|
- Deployment Guide: deployment.md
|
||||||
- Architecture: architecture.md
|
- Architecture: architecture.md
|
||||||
- Contributing: contributing.md
|
- Contributing: contributing.md
|
||||||
- Troubleshooting: troubleshooting.md
|
- Troubleshooting: troubleshooting.md
|
||||||
@@ -117,4 +118,4 @@ extra_css:
|
|||||||
extra_javascript:
|
extra_javascript:
|
||||||
- javascripts/extra.js
|
- javascripts/extra.js
|
||||||
|
|
||||||
copyright: Copyright © 2024 Jango Blockchained
|
copyright: Copyright © 2025 jango-blockchained
|
||||||
Reference in New Issue
Block a user