Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
d68fcca
feat(storage): move storage migrations into tinymcp
senamakel Oct 20, 2026
dd50a0d
test(storage): implement append_batch_if_offset in migrate test doubles
senamakel Oct 20, 2026
baff815
chore(vendor): bump tinybus submodule
senamakel Oct 20, 2026
096fd48
chore(deps): bump tinystoragedrivers to 2.0.2
senamakel Oct 20, 2026
8badeef
fix(storage): make schema construction fallible and harden audit migr…
senamakel Oct 20, 2026
f7dc430
chore(storage): reindent audit migration and allow long migrate fn
senamakel Oct 20, 2026
e280c05
chore(tinymcp): remove must_use from storage_schema
senamakel Oct 20, 2026
c834ece
refactor(tinymcp): extract module call verification into a helper
senamakel Oct 20, 2026
493725f
test(storage): return results from local storage tests
senamakel Oct 20, 2026
4c11ec6
test(storage): tighten audit migration test assertions
senamakel Oct 20, 2026
a350222
test(storage): tidy test helpers and panic handling
senamakel Oct 20, 2026
5aea3d8
test(storage): cover MCP v2 storage failure paths
senamakel Oct 20, 2026
06b93cf
docs: fix storage API rustdoc links
senamakel Oct 20, 2026
71b4cbf
fix: normalize CRLF in engine dependency gate
senamakel Oct 20, 2026
e13243e
Merge pull request #16 from senamakel/epic-8131-12-mcp
senamakel Oct 21, 2026
42ac266
feat(storage): expose legacy server conversion helpers
senamakel Oct 21, 2026
e5ceab7
refactor(storage): route legacy migration through shared converters
senamakel Oct 21, 2026
79ff698
docs(storage): document legacy storage record fields
senamakel Oct 21, 2026
c5ba712
refactor(tinymcp-bus): nest server name claim fields under a body struct
senamakel Oct 21, 2026
cbfa370
refactor(storage): use typed claim body when migrating legacy claims
senamakel Oct 21, 2026
855f62d
test(storage): fix expected id in legacy server conversion test
senamakel Oct 21, 2026
bf2c307
style(tinymcp): reorder imports in storage migrate
senamakel Oct 21, 2026
1f9841f
test(storage): reorder imports in migrate tests
senamakel Oct 21, 2026
98219cc
test(storage): use explicit BTreeMap in legacy claim test
senamakel Oct 21, 2026
e7a3c8d
test(storage): cover malformed legacy records during migration
senamakel Oct 21, 2026
77a4d4d
Merge pull request #18 from senamakel/epic-8131-17-mcp-legacy-record-…
senamakel Oct 21, 2026
f4b3616
Merge remote-tracking branch 'fork/epic/8131-storage-primitives' into…
senamakel Oct 22, 2026
14144b1
chore(vendor): bump tinybus submodule
senamakel Oct 22, 2026
9c91413
chore(deps): update lockfile for TinyBus 0.1.6
senamakel Oct 22, 2026
2354214
chore(deps): pin TinyBus callback API revision
senamakel Oct 22, 2026
2ade640
chore(vendor): bump tinybus submodule
senamakel Oct 22, 2026
2783c15
Merge remote-tracking branch 'origin/main' into epic-8131-mcp-contrac…
senamakel Oct 22, 2026
c07df79
chore(vendor): bump tinybus submodule
senamakel Oct 22, 2026
8e0c71d
test(tinymcp): use shared storage fixture in integration tests
senamakel Oct 22, 2026
aef5689
test(tinymcp): reformat storage test helper
senamakel Oct 22, 2026
18fd22e
fix(tinymcp-bus): derive legacy server id from body server id
senamakel Oct 22, 2026
ea19702
feat(storage): grant legacy collections and audit stream
senamakel Oct 22, 2026
ea213a0
fix(storage): hash over-long composite document ids
senamakel Oct 22, 2026
1703d43
test(storage): cover legacy digest encoding for overlong ids
senamakel Oct 22, 2026
3993061
test(storage): share one memory provider across tests
senamakel Oct 22, 2026
1c96ad2
style: reorder imports and reformat test assertions
senamakel Oct 22, 2026
f2ed1ac
chore(deps): add data-encoding and sha2 to tinymcp-bus
senamakel Oct 22, 2026
204f1d9
build(tinymcp): add data-encoding dependency
senamakel Oct 22, 2026
1c155d8
fix(storage): tolerate missing audit source during migration
senamakel Oct 22, 2026
88cd036
refactor(storage): collapse checkpoint lookup onto one line
senamakel Oct 22, 2026
96b3d20
refactor(tinymcp): update test provider paths and match arm
senamakel Oct 22, 2026
22f604c
test(storage): relax collection grant assertion to subset check
senamakel Oct 22, 2026
564c1de
test(tinymcp): relax storage grant assertions to allow extra entries
senamakel Oct 22, 2026
c13ad43
test(storage): set server id in legacy conversion test
senamakel Oct 22, 2026
2e409d5
refactor(storage): extract source batch read into helper
senamakel Oct 22, 2026
0f3704f
refactor(storage): extract migrated source deletion into helper
senamakel Oct 22, 2026
150ed9a
test(storage): cover audit import racing a competing opener
senamakel Oct 22, 2026
a6e1434
fix(storage): handle empty read window during migration
senamakel Oct 22, 2026
be9421f
chore(vendor): bump tinybus submodule
senamakel Oct 22, 2026
f30fec6
chore: add local coverage report
senamakel Oct 22, 2026
d5f8934
chore(storage): add legacy migration module
senamakel Oct 22, 2026
07ac303
refactor(storage): move legacy migration types into tinymcp
senamakel Oct 22, 2026
2349423
test(storage): cover audit import failure and checkpoint guards
senamakel Oct 22, 2026
d15da4a
test(storage): reformat audit import error assertion
senamakel Oct 22, 2026
37a54ad
test(tinymcp): cover storage port store behaviour
senamakel Oct 22, 2026
e6cf5f9
chore(vendor): bump tinybus submodule
senamakel Oct 22, 2026
bf3fc41
chore(tinymcp-bus): remove stray coverage artifact and add manifest e…
senamakel Oct 22, 2026
4ddeb57
chore(vendor): align TinyBus gitlink with TinyMCP main
senamakel Oct 22, 2026
d5d996c
chore(deps): downgrade zip and tinybus versions
senamakel Oct 22, 2026
7fe1639
fix(vendor): keep TinyBus API compatible with TSD 2.1
senamakel Oct 22, 2026
2f7f4dd
test(storage): cover audit import append races and missing streams
senamakel Oct 22, 2026
40aac3c
chore(deps): use workspace deps for tinystoragedrivers
senamakel Oct 22, 2026
fc9131c
test(storage): build memory ports from backend in store tests
senamakel Oct 22, 2026
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
816 changes: 376 additions & 440 deletions Cargo.lock

Large diffs are not rendered by default.

26 changes: 15 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,21 @@ futures-util = { version = "0.3", default-features = false, features = ["std"] }
# Structured diagnostics. Endpoints are always passed through `redact_endpoint`
# before they reach a log line.
tracing = { version = "0.1", default-features = false, features = ["std"] }
# The storage ports (documents, streams) the installed-server store and the audit
# log are written against, and the `Blocking` bridge that lets the synchronous
# store call them. A git tag, like every other tinystoragedrivers consumer, so a
# host that vendors the repository once redirects it with a `[patch]`. This
# crate links no database: the host picks the backend.
tinystoragedrivers-core = { git = "https://github.com/tinyhumansai/tinystoragedrivers", tag = "v1.5.0", features = ["blocking"] }
# The `SecretStore` port: server environment values and OAuth bundles are kept
# there, never in a document. Its release is pinned independently from core.
tinystoragedrivers-secrets = { git = "https://github.com/tinyhumansai/tinystoragedrivers", tag = "v1.5.0" }
# Runtime-neutral storage ports and their shared serialized types. TinyMCP
# owns its typed repositories and migrations; the host chooses the engines.
tinystoragedrivers-api = { git = "https://github.com/tinyhumansai/tinystoragedrivers", version = "2.1.0", rev = "2856dfa6f5b4de981a4db2801ae6be80c6432b3b" }
tinystoragedrivers-types = { git = "https://github.com/tinyhumansai/tinystoragedrivers", version = "2.1.0", rev = "2856dfa6f5b4de981a4db2801ae6be80c6432b3b" }
# The module-side storage bus: `connect_storage` over the module's TinyBus
# connection, giving the same port traits the host serves. Used only by the
# `module` feature (a cdylib reaches storage through the host, never a file).
tinystoragedrivers-busproxy = { git = "https://github.com/tinyhumansai/tinystoragedrivers", tag = "v1.5.0" }
tinystoragedrivers-client = { git = "https://github.com/tinyhumansai/tinystoragedrivers", tag = "v1.5.0" }
tinystoragedrivers-busproxy = { git = "https://github.com/tinyhumansai/tinystoragedrivers", version = "2.1.0", rev = "2856dfa6f5b4de981a4db2801ae6be80c6432b3b" }
tinystoragedrivers-testkit = { git = "https://github.com/tinyhumansai/tinystoragedrivers", version = "2.1.0", rev = "2856dfa6f5b4de981a4db2801ae6be80c6432b3b" }
tinystoragedrivers-document = { git = "https://github.com/tinyhumansai/tinystoragedrivers", version = "2.1.0", rev = "2856dfa6f5b4de981a4db2801ae6be80c6432b3b", default-features = false, features = ["memory"] }
tinystoragedrivers-secrets = { git = "https://github.com/tinyhumansai/tinystoragedrivers", version = "2.1.0", rev = "2856dfa6f5b4de981a4db2801ae6be80c6432b3b" }
# Locating a user's home directory, to find the version-manager shim
# directories a desktop launch's stripped PATH leaves out.
dirs = "7"
data-encoding = "2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Document why data-encoding is shared

The new data-encoding workspace entry has no preceding explanation of why it is needed or which crates use it, unlike the neighboring entries, so the shared dependency list loses the design rationale required for additions; add a comment describing its composite-key digest use.

AGENTS.md reference: AGENTS.md:L192-L193

Useful? React with 👍 / 👎.

# SHA-256: PKCE code challenges in the authorization-code flow, and the digest
# in an action tool's name (`tinymcp-bus`'s `agent_tools::searchable_name`).
sha2 = "0.11"
Expand Down Expand Up @@ -200,3 +198,9 @@ tinybus-macros = { path = "vendor/tinybus/crates/tinybus-macros" }
# the module's `Connection` and the storage transport's are one type.
[patch."https://github.com/tinyhumansai/tinybus"]
tinybus = { path = "vendor/tinybus/crates/tinybus" }

# The storage-driver fork pins its TinyBus SDK commit until the canonical
# source and release pin are updated together. Keep all bus types on this
# workspace checkout while consuming that commit.
[patch."https://github.com/senamakel/tinybus"]
tinybus = { path = "vendor/tinybus/crates/tinybus" }
18 changes: 10 additions & 8 deletions crates/tinymcp-bus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ schemars = { workspace = true, optional = true }
# Decoding a widget document a tool result embedded as a base64 `blob`, for
# the pure tool-UI rules in `ui`. No dependencies of its own.
base64 = { workspace = true }
# The storage *ports* only (`Schema`, `Step`, `CollectionSpec`): no driver and
# no I/O. Its sole tokio features are io-util and time, so this adds no runtime
# to a host that links the contract. Backs `storage::storage_schema`; optional,
# enabled only by the `storage` feature so the default closure stays pure.
tinystoragedrivers-core = { git = "https://github.com/tinyhumansai/tinystoragedrivers", tag = "v1.5.0", default-features = false, optional = true }
# Encode stable document identifiers for storage migration compatibility.
data-encoding = { workspace = true, optional = true }
# Hash overlong composite document identifiers used by the storage schema.
sha2 = { workspace = true, optional = true }
# Pure collection declaration types for the module's storage grant. The bus
# contract does not run migrations or depend on storage implementation code.
tinystoragedrivers-types = { workspace = true, optional = true }

[dev-dependencies]
tinystoragedrivers-testkit = { workspace = true }
# The WHATWG parser the `ui` link splitter must agree with: its differential
# tests check every web link the splitter accepts against `url`'s reading.
url = { workspace = true }
Expand All @@ -45,9 +48,8 @@ tokio = { workspace = true, features = ["rt"] }
default = []
# Derive `JsonSchema` on the configuration payloads. See `src/config/mod.rs`.
schemars = ["dep:schemars"]
# `storage::storage_schema` and its v1 to v2 migration steps. Off by default: the
# only extra dependency is the storage ports crate (no driver, no I/O).
storage = ["dep:tinystoragedrivers-core"]
# Pure storage collection payloads. Migration behavior belongs to `tinymcp`.
storage = ["dep:data-encoding", "dep:sha2", "dep:tinystoragedrivers-types"]

[lints]
workspace = true
201 changes: 0 additions & 201 deletions crates/tinymcp-bus/src/storage/migrate.rs

This file was deleted.

Loading
Loading