ha-mcp-dev 6.3.1.dev137__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ha_mcp/__init__.py +51 -0
- ha_mcp/__main__.py +753 -0
- ha_mcp/_pypi_marker +0 -0
- ha_mcp/auth/__init__.py +10 -0
- ha_mcp/auth/consent_form.py +501 -0
- ha_mcp/auth/provider.py +786 -0
- ha_mcp/client/__init__.py +10 -0
- ha_mcp/client/rest_client.py +924 -0
- ha_mcp/client/websocket_client.py +656 -0
- ha_mcp/client/websocket_listener.py +340 -0
- ha_mcp/config.py +175 -0
- ha_mcp/errors.py +399 -0
- ha_mcp/py.typed +0 -0
- ha_mcp/resources/card_types.json +48 -0
- ha_mcp/resources/dashboard_guide.md +573 -0
- ha_mcp/server.py +189 -0
- ha_mcp/smoke_test.py +108 -0
- ha_mcp/tools/__init__.py +11 -0
- ha_mcp/tools/backup.py +457 -0
- ha_mcp/tools/device_control.py +687 -0
- ha_mcp/tools/enhanced.py +191 -0
- ha_mcp/tools/helpers.py +184 -0
- ha_mcp/tools/registry.py +199 -0
- ha_mcp/tools/smart_search.py +797 -0
- ha_mcp/tools/tools_addons.py +343 -0
- ha_mcp/tools/tools_areas.py +478 -0
- ha_mcp/tools/tools_blueprints.py +279 -0
- ha_mcp/tools/tools_bug_report.py +570 -0
- ha_mcp/tools/tools_calendar.py +391 -0
- ha_mcp/tools/tools_camera.py +149 -0
- ha_mcp/tools/tools_config_automations.py +508 -0
- ha_mcp/tools/tools_config_dashboards.py +1502 -0
- ha_mcp/tools/tools_config_entry_flow.py +223 -0
- ha_mcp/tools/tools_config_helpers.py +925 -0
- ha_mcp/tools/tools_config_info.py +258 -0
- ha_mcp/tools/tools_config_scripts.py +267 -0
- ha_mcp/tools/tools_entities.py +76 -0
- ha_mcp/tools/tools_filesystem.py +589 -0
- ha_mcp/tools/tools_groups.py +306 -0
- ha_mcp/tools/tools_hacs.py +787 -0
- ha_mcp/tools/tools_history.py +714 -0
- ha_mcp/tools/tools_integrations.py +297 -0
- ha_mcp/tools/tools_labels.py +713 -0
- ha_mcp/tools/tools_mcp_component.py +305 -0
- ha_mcp/tools/tools_registry.py +1115 -0
- ha_mcp/tools/tools_resources.py +622 -0
- ha_mcp/tools/tools_search.py +573 -0
- ha_mcp/tools/tools_service.py +211 -0
- ha_mcp/tools/tools_services.py +352 -0
- ha_mcp/tools/tools_system.py +363 -0
- ha_mcp/tools/tools_todo.py +530 -0
- ha_mcp/tools/tools_traces.py +496 -0
- ha_mcp/tools/tools_updates.py +476 -0
- ha_mcp/tools/tools_utility.py +519 -0
- ha_mcp/tools/tools_voice_assistant.py +345 -0
- ha_mcp/tools/tools_zones.py +387 -0
- ha_mcp/tools/util_helpers.py +199 -0
- ha_mcp/utils/__init__.py +30 -0
- ha_mcp/utils/domain_handlers.py +380 -0
- ha_mcp/utils/fuzzy_search.py +339 -0
- ha_mcp/utils/operation_manager.py +442 -0
- ha_mcp/utils/usage_logger.py +290 -0
- ha_mcp_dev-6.3.1.dev137.dist-info/METADATA +229 -0
- ha_mcp_dev-6.3.1.dev137.dist-info/RECORD +71 -0
- ha_mcp_dev-6.3.1.dev137.dist-info/WHEEL +5 -0
- ha_mcp_dev-6.3.1.dev137.dist-info/entry_points.txt +7 -0
- ha_mcp_dev-6.3.1.dev137.dist-info/licenses/LICENSE +21 -0
- ha_mcp_dev-6.3.1.dev137.dist-info/top_level.txt +2 -0
- tests/__init__.py +1 -0
- tests/test_constants.py +15 -0
- tests/test_env_manager.py +336 -0
ha_mcp/__init__.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Home Assistant MCP Server
|
|
3
|
+
|
|
4
|
+
A Model Context Protocol server that provides complete control over Home Assistant
|
|
5
|
+
through REST API and WebSocket integration with 20+ enhanced tools.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
__version__ = "6.3.1"
|
|
9
|
+
__author__ = "Julien"
|
|
10
|
+
__license__ = "MIT"
|
|
11
|
+
|
|
12
|
+
from .auth import HomeAssistantOAuthProvider
|
|
13
|
+
from .client.rest_client import HomeAssistantClient
|
|
14
|
+
from .config import Settings
|
|
15
|
+
from .errors import (
|
|
16
|
+
ErrorCode,
|
|
17
|
+
create_auth_error,
|
|
18
|
+
create_config_error,
|
|
19
|
+
create_connection_error,
|
|
20
|
+
create_entity_not_found_error,
|
|
21
|
+
create_error_response,
|
|
22
|
+
create_resource_not_found_error,
|
|
23
|
+
create_service_error,
|
|
24
|
+
create_timeout_error,
|
|
25
|
+
create_validation_error,
|
|
26
|
+
get_error_code,
|
|
27
|
+
get_error_message,
|
|
28
|
+
is_error_response,
|
|
29
|
+
)
|
|
30
|
+
from .server import HomeAssistantSmartMCPServer
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"Settings",
|
|
34
|
+
"HomeAssistantClient",
|
|
35
|
+
"HomeAssistantSmartMCPServer",
|
|
36
|
+
"HomeAssistantOAuthProvider",
|
|
37
|
+
# Error handling exports
|
|
38
|
+
"ErrorCode",
|
|
39
|
+
"create_error_response",
|
|
40
|
+
"create_connection_error",
|
|
41
|
+
"create_auth_error",
|
|
42
|
+
"create_entity_not_found_error",
|
|
43
|
+
"create_service_error",
|
|
44
|
+
"create_validation_error",
|
|
45
|
+
"create_config_error",
|
|
46
|
+
"create_timeout_error",
|
|
47
|
+
"create_resource_not_found_error",
|
|
48
|
+
"is_error_response",
|
|
49
|
+
"get_error_code",
|
|
50
|
+
"get_error_message",
|
|
51
|
+
]
|