Simplify resource URIs (remove /devices/ prefix)

This commit is contained in:
Ryan Malloy 2026-02-02 02:12:37 -07:00
parent e9e5b0b4e6
commit 61e424ab40
3 changed files with 12 additions and 12 deletions

View File

@ -72,10 +72,10 @@ The server exposes dynamic resources for live state queries:
| Resource URI | Description | | Resource URI | Description |
|--------------|-------------| |--------------|-------------|
| `bluetooth://adapters` | All Bluetooth adapters | | `bluetooth://adapters` | All Bluetooth adapters |
| `bluetooth://devices/paired` | Paired devices | | `bluetooth://paired` | Paired devices |
| `bluetooth://devices/connected` | Connected devices | | `bluetooth://connected` | Connected devices |
| `bluetooth://devices/visible` | All known devices | | `bluetooth://visible` | All known devices |
| `bluetooth://devices/trusted` | Trusted devices | | `bluetooth://trusted` | Trusted devices |
| `bluetooth://adapter/{name}` | Specific adapter details | | `bluetooth://adapter/{name}` | Specific adapter details |
| `bluetooth://device/{address}` | Specific device details | | `bluetooth://device/{address}` | Specific device details |

View File

@ -50,7 +50,7 @@ def register_resources(mcp: FastMCP) -> None:
) )
@mcp.resource( @mcp.resource(
"bluetooth://devices/paired", "bluetooth://paired",
name="Paired Devices", name="Paired Devices",
description="Bluetooth devices that have been paired with this system", description="Bluetooth devices that have been paired with this system",
mime_type="application/json", mime_type="application/json",
@ -79,7 +79,7 @@ def register_resources(mcp: FastMCP) -> None:
) )
@mcp.resource( @mcp.resource(
"bluetooth://devices/connected", "bluetooth://connected",
name="Connected Devices", name="Connected Devices",
description="Bluetooth devices currently connected to this system", description="Bluetooth devices currently connected to this system",
mime_type="application/json", mime_type="application/json",
@ -108,7 +108,7 @@ def register_resources(mcp: FastMCP) -> None:
) )
@mcp.resource( @mcp.resource(
"bluetooth://devices/visible", "bluetooth://visible",
name="Visible Devices", name="Visible Devices",
description="All Bluetooth devices visible to this system (discovered or known)", description="All Bluetooth devices visible to this system (discovered or known)",
mime_type="application/json", mime_type="application/json",
@ -137,7 +137,7 @@ def register_resources(mcp: FastMCP) -> None:
) )
@mcp.resource( @mcp.resource(
"bluetooth://devices/trusted", "bluetooth://trusted",
name="Trusted Devices", name="Trusted Devices",
description="Bluetooth devices marked as trusted (auto-connect enabled)", description="Bluetooth devices marked as trusted (auto-connect enabled)",
mime_type="application/json", mime_type="application/json",

View File

@ -17,10 +17,10 @@ This server provides comprehensive control over the Linux Bluetooth stack:
## Resources (live state queries) ## Resources (live state queries)
- bluetooth://adapters - All Bluetooth adapters - bluetooth://adapters - All Bluetooth adapters
- bluetooth://devices/paired - Paired devices - bluetooth://paired - Paired devices
- bluetooth://devices/connected - Connected devices - bluetooth://connected - Connected devices
- bluetooth://devices/visible - All known devices - bluetooth://visible - All known devices
- bluetooth://devices/trusted - Trusted devices - bluetooth://trusted - Trusted devices
- bluetooth://adapter/{name} - Specific adapter details - bluetooth://adapter/{name} - Specific adapter details
- bluetooth://device/{address} - Specific device details - bluetooth://device/{address} - Specific device details