Skip to content

Commit 2910d66

Browse files
Merge pull request #77 from hell0gunawan/fix/version-and-file-handle-v2
fix: sync version and use context manager for file handle
2 parents 7b4d707 + 2851eaf commit 2910d66

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

minimax_mcp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Minimax MCP Server package."""
22

3-
__version__ = "0.0.17"
3+
__version__ = "0.0.18"

minimax_mcp/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ def play_audio(input_file_path: str, is_url: bool = False) -> TextContent:
287287
return TextContent(type="text", text=f"Successfully played audio file: {input_file_path}")
288288
else:
289289
file_path = process_input_file(input_file_path)
290-
play(open(file_path, "rb").read())
290+
with open(file_path, "rb") as f:
291+
play(f.read())
291292
return TextContent(type="text", text=f"Successfully played audio file: {file_path}")
292293

293294

0 commit comments

Comments
 (0)