Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/hrm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
from pathlib import Path
import sys

from fastmcp.cli.run import run_command
from fastmcp.cli.cli import app

from . import server


def main() -> None:
"""Run the bundled MCP server."""
run_command(str(Path(server.__file__).resolve()), server_args=sys.argv[1:])
app(
args=["run", str(Path(server.__file__).resolve()), *sys.argv[1:]],
standalone_mode=False,
)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion src/hrm/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
FunctionResource(
uri="discover://hrm",
name="HRM Device",
text="Bluetooth Heart Rate Monitor Devices",
description="Bluetooth Heart Rate Monitor Devices",
fn=cli.list_bluetooth_devices,
)
)
Expand Down