mcp-ai-music 1.0.0 → 1.0.1

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.
package/README.md CHANGED
@@ -17,7 +17,9 @@
17
17
 
18
18
  ## 环境配置
19
19
 
20
- > **重要**:您需要拥有 Suno API 的密钥才能使用此服务。请将密钥配置为环境变量 `SUNO_API_KEY`。
20
+ > **重要**:请配置以下必填环境变量:
21
+ > - `SUNO_API_KEY`:Suno API 密钥
22
+ > - `SUNO_SERVICE_BASE`:服务网关地址,默认 `https://www.mcpcn.cc`
21
23
 
22
24
  ### 费用说明
23
25
  - 生成音乐:¥0.438/次
@@ -36,7 +38,8 @@
36
38
  "dist/index.js"
37
39
  ],
38
40
  "env": {
39
- "SUNO_API_KEY": "您的Suno API密钥"
41
+ "SUNO_API_KEY": "您的Suno API密钥",
42
+ "SUNO_SERVICE_BASE": "https://www.mcpcn.cc"
40
43
  },
41
44
  "autoApprove": [
42
45
  "generate_music",
@@ -208,6 +211,8 @@
208
211
 
209
212
  ## 注意事项
210
213
 
214
+ > 也需要设置 `SUNO_SERVICE_BASE`(默认 `https://www.mcpcn.cc`),否则将无法正常访问服务。
215
+
211
216
  1. **API密钥安全**:请确保 `SUNO_API_KEY` 环境变量已正确设置,不要在代码中硬编码API密钥。
212
217
 
213
218
  2. **文件大小限制**:上传的音频文件长度不得超过2分钟。
package/dist/index.js CHANGED
@@ -85,7 +85,7 @@ const PROGRESS_QUERY_OUTPUT_SCHEMA = {
85
85
  // 工具定义
86
86
  const GENERATE_MUSIC_TOOL = {
87
87
  name: "generate_music",
88
- description: "生成音乐。根据提示词和风格生成原创音乐,支持自定义模式和纯音乐模式。\n\n注意:生成需要时间,请使用query_progress工具查询进度。\n\n返回字段说明:\n- taskId: 任务ID,用于查询进度\n- status: 任务状态 (pending)\n- message: 状态描述",
88
+ description: "生成音乐。根据提示词和风格生成原创音乐,支持自定义模式和纯音乐模式。\n\n注意:生成需要时间,请每10-30秒轮询调用query_progress工具,直到状态为'complete'或'failed'。\n\n返回字段说明:\n- taskId: 任务ID,用于查询进度\n- status: 任务状态 (pending)\n- message: 状态描述",
89
89
  inputSchema: {
90
90
  type: "object",
91
91
  properties: {
@@ -126,7 +126,7 @@ const GENERATE_MUSIC_TOOL = {
126
126
  };
127
127
  const COVER_MUSIC_TOOL = {
128
128
  name: "cover_music",
129
- description: "翻唱音乐。上传音频文件并转换为新的风格,保留核心旋律。\n\n注意:生成需要时间,请使用query_progress工具查询进度。\n\n返回字段说明:\n- taskId: 任务ID,用于查询进度\n- status: 任务状态 (pending)\n- message: 状态描述",
129
+ description: "翻唱音乐。上传音频文件并转换为新的风格,保留核心旋律。\n\n注意:生成需要时间,请每10-30秒轮询调用query_progress工具,直到状态为'complete'或'failed'。\n\n返回字段说明:\n- taskId: 任务ID,用于查询进度\n- status: 任务状态 (pending)\n- message: 状态描述",
130
130
  inputSchema: {
131
131
  type: "object",
132
132
  properties: {
@@ -171,7 +171,7 @@ const COVER_MUSIC_TOOL = {
171
171
  };
172
172
  const EXTEND_MUSIC_TOOL = {
173
173
  name: "extend_music",
174
- description: "扩展音乐。在保留原始音频风格的同时扩展音轨长度。\n\n注意:生成需要时间,请使用query_progress工具查询进度。\n\n返回字段说明:\n- taskId: 任务ID,用于查询进度\n- status: 任务状态 (pending)\n- message: 状态描述",
174
+ description: "扩展音乐。在保留原始音频风格的同时扩展音轨长度。\n\n注意:生成需要时间,请每10-30秒轮询调用query_progress工具,直到状态为'complete'或'failed'。\n\n返回字段说明:\n- taskId: 任务ID,用于查询进度\n- status: 任务状态 (pending)\n- message: 状态描述",
175
175
  inputSchema: {
176
176
  type: "object",
177
177
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-ai-music",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "AI作曲MCP服务 - 基于Suno4.5 API的音乐生成、翻唱、扩展和进度查询工具",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {