Skip to content

Commit b99bc79

Browse files
committed
feat: add record_key field to RecordInfo struct and update list_records function
1 parent d847b22 commit b99bc79

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

tools/aimdb-mcp/CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
No changes yet.
1111

12+
## [0.6.1] - 2026-03-21
13+
14+
### Fixed
15+
16+
- **list_records Tool**: Added missing `record_key` field to `RecordInfo` response, making it easier to identify which key to use when calling `get_record` or `set_record`
17+
1218
## [0.6.0] - 2026-03-11
1319

1420
### Added
@@ -108,8 +114,10 @@ No changes yet.
108114

109115
---
110116

111-
[Unreleased]: https://github.com/aimdb-dev/aimdb/compare/v0.5.0...HEAD
112-
[0.5.0]: https://github.com/aimdb-dev/aimdb/compare/v0.4.0...v0.5.0
117+
[Unreleased]: https://github.com/aimdb-dev/aimdb/compare/aimdb-mcp-v0.6.1...HEAD
118+
[0.6.1]: https://github.com/aimdb-dev/aimdb/compare/aimdb-mcp-v0.6.0...aimdb-mcp-v0.6.1
119+
[0.6.0]: https://github.com/aimdb-dev/aimdb/compare/aimdb-mcp-v0.5.0...aimdb-mcp-v0.6.0
120+
[0.5.0]: https://github.com/aimdb-dev/aimdb/compare/aimdb-mcp-v0.4.0...aimdb-mcp-v0.5.0
113121
[0.4.0]: https://github.com/aimdb-dev/aimdb/compare/v0.3.0...v0.4.0
114122
[0.3.0]: https://github.com/aimdb-dev/aimdb/compare/v0.2.0...v0.3.0
115123
[0.2.0]: https://github.com/aimdb-dev/aimdb/compare/v0.1.0...v0.2.0

tools/aimdb-mcp/src/tools/record.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ struct DrainRecordParams {
4848
/// Record information (MCP format)
4949
#[derive(Debug, Clone, Serialize, Deserialize)]
5050
struct RecordInfo {
51+
/// Record key (use this for get_record/set_record)
52+
record_key: String,
5153
/// Record type name
5254
name: String,
5355
/// TypeId as hexadecimal string
@@ -112,6 +114,7 @@ pub async fn list_records(args: Option<Value>) -> McpResult<Value> {
112114
let record_infos: Vec<RecordInfo> = records
113115
.into_iter()
114116
.map(|r| RecordInfo {
117+
record_key: r.record_key,
115118
name: r.name,
116119
type_id: r.type_id,
117120
buffer_type: r.buffer_type,

0 commit comments

Comments
 (0)