astrbotmcp 0.4.0__py3-none-any.whl → 0.4.1__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.
@@ -7,7 +7,6 @@ from typing import Any, Dict, List, Optional
7
7
 
8
8
  from ...astrbot_client import AstrBotClient
9
9
  from ..helpers import _httpx_error_detail, _resolve_local_file_path
10
- from ..types import MessagePart
11
10
  from .cache import (
12
11
  _LAST_SAVED_MESSAGE_ID_BY_SESSION,
13
12
  _LAST_SAVED_MESSAGE_ID_LOCK,
@@ -88,7 +87,7 @@ def _normalize_media_sources(
88
87
 
89
88
 
90
89
  async def send_platform_message(
91
- message_chain: Optional[List[MessagePart]] = None,
90
+ message_chain: Optional[List[Dict[str, Any]]] = None,
92
91
  message: Optional[str] = None,
93
92
  images: Optional[List[str] | str] = None,
94
93
  files: Optional[List[str] | str] = None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: astrbotmcp
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Add your description here
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -18,7 +18,6 @@ Dynamic: license-file
18
18
 
19
19
  > **AstrBot 无法通过 MCP 控制自身。本项目填补了这一空白,为Astrbot开发者提供AI AGENT时代调试插件的自动化工具**
20
20
 
21
-
22
21
  ⚠️ **本项目提供的是运维级控制能力,使用时请注意:**
23
22
 
24
23
  1. **重启风险** - `restart_astrbot` 会中断所有正在进行的对话
@@ -32,9 +31,6 @@ Dynamic: license-file
32
31
 
33
32
  #### 安装
34
33
 
35
- <details>
36
- <summary>通过 PyPI 或 uv 安装</summary>
37
-
38
34
  ```bash
39
35
  # 通过 PyPI 安装(推荐)
40
36
  pip install astrbotmcp
@@ -43,7 +39,8 @@ pip install astrbotmcp
43
39
  uv add astrbotmcp
44
40
  ```
45
41
 
46
- 安装完成后,您可以通过以下方式在 MCP 客户端中配置:
42
+ <details>
43
+ <summary>通过 PyPI 或 uv 安装</summary>
47
44
 
48
45
  ```json
49
46
  {
@@ -66,6 +63,8 @@ uv add astrbotmcp
66
63
  }
67
64
  ```
68
65
 
66
+ 安装完成后,您可以通过以下方式在 MCP 客户端中配置:
67
+
69
68
  </details>
70
69
 
71
70
  <details>
@@ -86,7 +85,8 @@ npm install -g astrbotmcp
86
85
  "astrbot-mcp": {
87
86
  "command": "npx",
88
87
  "args": [
89
- "astrbotmcp"
88
+ "-y",
89
+ "@xunxiing/astrbot-mcp@latest"
90
90
  ],
91
91
  "env": {
92
92
  "ASTRBOT_BASE_URL": "http://127.0.0.1:6185",
@@ -101,18 +101,17 @@ npm install -g astrbotmcp
101
101
 
102
102
  </details>
103
103
 
104
-
105
104
  #### 环境变量说明
106
105
 
107
- | 变量 | 说明 | 默认值 |
108
- |------|------|--------|
109
- | `ASTRBOT_BASE_URL` | AstrBot Dashboard 地址 | `http://127.0.0.1:6185` |
110
- | `ASTRBOT_TIMEOUT` | HTTP 请求超时时间 | `30` |
111
- | `ASTRBOT_USERNAME` | Dashboard 用户名 | - |
112
- | `ASTRBOT_PASSWORD` | Dashboard 密码 | - |
113
- | `ASTRBOT_LOG_LEVEL` | 日志级别 | `INFO` |
114
- | `ASTRBOTMCP_DISABLE_PROXY` | 是否禁用代理(防止本地请求被代理拦截) | `true` |
115
- | `ASTRBOTMCP_PLUGIN_PROXY` | 插件 URL 安装默认代理前缀(`install_astrbot_plugin`) | `https://gh-proxy.com` |
106
+ | 变量 | 说明 | 默认值 |
107
+ | ---------------------------- | -------------------------------------------------------| ------------------------- |
108
+ | `ASTRBOT_BASE_URL` | AstrBot Dashboard 地址 | `http://127.0.0.1:6185` |
109
+ | `ASTRBOT_TIMEOUT` | HTTP 请求超时时间 | `30` |
110
+ | `ASTRBOT_USERNAME` | Dashboard 用户名 | - |
111
+ | `ASTRBOT_PASSWORD` | Dashboard 密码 | - |
112
+ | `ASTRBOT_LOG_LEVEL` | 日志级别 | `INFO` |
113
+ | `ASTRBOTMCP_DISABLE_PROXY` | 是否禁用代理(防止本地请求被代理拦截) | `true` |
114
+ | `ASTRBOTMCP_PLUGIN_PROXY` | 插件 URL 安装默认代理前缀(`install_astrbot_plugin`) | `https://gh-proxy.com` |
116
115
 
117
116
  #### 代理配置说明
118
117
 
@@ -249,4 +248,3 @@ uv run --project . astrbot-mcp
249
248
  ### 许可证
250
249
 
251
250
  MIT License - 详见 [LICENSE](LICENSE.txt) 文件。
252
-
@@ -20,10 +20,10 @@ astrbot_mcp/tools/message/cache.py,sha256=IbqQ_efKqHzaArbyVgGwmfct_9Vknn_y6pKk17
20
20
  astrbot_mcp/tools/message/direct.py,sha256=fEHW3GhI358o5AxQNek8hsEHsSMkTVVzMe_c-RdkZb8,9779
21
21
  astrbot_mcp/tools/message/quote.py,sha256=dua9jo0d3dwTzASTpIVm64STZw_lXrpo8KOqWd-oT0Y,2335
22
22
  astrbot_mcp/tools/message/utils.py,sha256=2xjq_uq09EucNpIQ_nyEmTGCWBMhYIvKEbZeToWsQMw,1902
23
- astrbot_mcp/tools/message/webchat.py,sha256=Wp2saCWyfPGXn3Xxvin2fdnbsyJIjaWDWrqzGrc-Nog,30051
24
- astrbotmcp-0.4.0.dist-info/licenses/LICENSE.txt,sha256=5AYBumh99nqD7WWRY18ySSOIUKrj3bkAhVAiY-k8ZRo,1061
25
- astrbotmcp-0.4.0.dist-info/METADATA,sha256=Q0kVFB69TEWmtHytDqFWFancAl31gWnh0N2VvBmbTUk,6947
26
- astrbotmcp-0.4.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
27
- astrbotmcp-0.4.0.dist-info/entry_points.txt,sha256=XmfseRwldB3CJKlViESKuZNmw37qV2B57to8EQqvd5Q,56
28
- astrbotmcp-0.4.0.dist-info/top_level.txt,sha256=yi4CO_u3RImIkeQ562K9EbEc0nnKVgHQupSZ_X1GEO0,12
29
- astrbotmcp-0.4.0.dist-info/RECORD,,
23
+ astrbot_mcp/tools/message/webchat.py,sha256=3n_j32CvLQg4wuTh4m6YIRdGLmfyecK0U2rNbgq6zDU,30022
24
+ astrbotmcp-0.4.1.dist-info/licenses/LICENSE.txt,sha256=5AYBumh99nqD7WWRY18ySSOIUKrj3bkAhVAiY-k8ZRo,1061
25
+ astrbotmcp-0.4.1.dist-info/METADATA,sha256=UZWeiBiACuDqNKBIkGZJi5ZbkY7YR2x6VHvpCZRKl1E,7528
26
+ astrbotmcp-0.4.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
27
+ astrbotmcp-0.4.1.dist-info/entry_points.txt,sha256=XmfseRwldB3CJKlViESKuZNmw37qV2B57to8EQqvd5Q,56
28
+ astrbotmcp-0.4.1.dist-info/top_level.txt,sha256=yi4CO_u3RImIkeQ562K9EbEc0nnKVgHQupSZ_X1GEO0,12
29
+ astrbotmcp-0.4.1.dist-info/RECORD,,