Dear maintainers,
we found the play_audio tool will automatically find similar files in the folder and parent folders. I think this should be disclosed in README or description for mutual trust.
|
def play_audio(input_file_path: str, is_url: bool = False) -> TextContent: |
|
if is_url: |
|
play(requests.get(input_file_path).content) |
|
return TextContent(type="text", text=f"Successfully played audio file: {input_file_path}") |
|
else: |
|
file_path = process_input_file(input_file_path) |
|
def process_input_file(file_path: str, audio_content_check: bool = True) -> Path: |
|
if not os.path.isabs(file_path) and not os.environ.get(ENV_MINIMAX_MCP_BASE_PATH): |
|
raise MinimaxMcpError( |
|
"File path must be an absolute path if MINIMAX_MCP_BASE_PATH is not set" |
|
) |
|
path = Path(file_path) |
|
if not path.exists() and path.parent.exists(): |
|
parent_directory = path.parent |
|
similar_files = try_find_similar_files(path.name, parent_directory) |
|
similar_files_formatted = ",".join([str(file) for file in similar_files]) |
|
if similar_files: |
Dear maintainers,
we found the
play_audiotool will automatically find similar files in the folder and parent folders. I think this should be disclosed in README or description for mutual trust.MiniMax-MCP/minimax_mcp/server.py
Lines 284 to 289 in 7b4d707
MiniMax-MCP/minimax_mcp/utils.py
Lines 118 to 128 in 7b4d707