Commit bbe6414
authored
Feat/mcp public mode (#82)
* feat(aimdb-mcp): add --public and --socket CLI flags
Add clap for CLI argument parsing with two new flags:
- --public: restricts the MCP server to 3 read-only tools
(discover_instances, list_records, get_record) for use on
untrusted/internet-facing endpoints. Non-public tools are
excluded from tools/list and rejected in tools/call.
- --socket <PATH>: sets a default Unix socket path for all
tool connections (equivalent to AIMDB_SOCKET env var).
Also provides --help and --version for free via clap.
Ref: design doc 007 (public MCP endpoint)
* chore: update rand dependency to version 0.10.1 across multiple Cargo.toml files
* fix: update ignore list for rustls-webpki CRL issue
* feat: replace rng.gen with rng.random for consistent random number generation
* feat(mcp): implement public mode restrictions and tests for tool access
* feat(mcp): refactor socket handling to use set_default_socket function
* feat(mcp): update MCP server configuration and enhance README for public mode
* feat(mcp): update changelogs to document public mode features and dependency upgrades
* feat(mcp): enhance public mode restrictions and update changelog for clarity1 parent b44abab commit bbe6414
26 files changed
Lines changed: 588 additions & 126 deletions
File tree
- .vscode
- _external
- aimdb-data-contracts
- aimdb-embassy-adapter
- examples
- embassy-knx-connector-demo
- src
- embassy-mqtt-connector-demo
- src
- weather-mesh-demo
- weather-mesh-common
- src/contracts
- weather-station-beta
- src
- weather-station-gamma
- src
- tools/aimdb-mcp
- src
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
0 commit comments