micro_mcp 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.devcontainer/devcontainer.json +2 -2
- data/.tool-versions +1 -0
- data/AGENTS.md +5 -1
- data/CHANGELOG.md +12 -0
- data/Cargo.lock +278 -558
- data/README.md +39 -8
- data/docs/changes/ERGONOMIC_IMPROVEMENTS.md +133 -0
- data/ext/micro_mcp/AGENTS.md +66 -0
- data/ext/micro_mcp/Cargo.toml +3 -1
- data/ext/micro_mcp/src/lib.rs +21 -5
- data/ext/micro_mcp/src/server.rs +470 -50
- data/ext/micro_mcp/src/utils.rs +1 -1
- data/lib/micro_mcp/runtime_helpers.rb +104 -0
- data/lib/micro_mcp/schema.rb +125 -0
- data/lib/micro_mcp/server.rb +2 -2
- data/lib/micro_mcp/tool_registry.rb +65 -2
- data/lib/micro_mcp/validation_helpers.rb +59 -0
- data/lib/micro_mcp/version.rb +1 -1
- data/lib/micro_mcp.rb +3 -0
- metadata +7 -2
- data/sig/micro_mcp.rbs +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6f37463e6cd3dddd85d8d87ec62b9c8346cd717ef49cf0855f79b78de77c4a4
|
4
|
+
data.tar.gz: fd2df666bcfe8b4396049ea786aa9f8fb39081917af9f33737eaa1ec7776f23e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2adbaa5d4ba0e384d14c33d4a6bf2bfc9b1c84ab403bcee15061733b2b3e0381503aa635050b0aba704e385195eeaa6719cb97a8c65169b42a438d274f21ee0f
|
7
|
+
data.tar.gz: bbc23b9278cd35e85233133ab98317a2898c9bedccd61c663f45420fd30ef2e8e92d4a04f13c26a9fc4f381e427c01c1bc584f95d5090cf6422f64e65d3b2f65
|
@@ -21,11 +21,11 @@
|
|
21
21
|
"extensions": [
|
22
22
|
"rust-lang.rust-analyzer",
|
23
23
|
"vadimcn.vscode-lldb",
|
24
|
-
"serayuzgur.crates",
|
25
24
|
"tamasfe.even-better-toml",
|
26
25
|
"usernamehw.errorlens",
|
27
26
|
"rebornix.ruby",
|
28
|
-
"wingrunr21.vscode-ruby"
|
27
|
+
"wingrunr21.vscode-ruby",
|
28
|
+
"Catppuccin.catppuccin-vsc"
|
29
29
|
],
|
30
30
|
"settings": {
|
31
31
|
"rust-analyzer.cargo.features": "all",
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 3.4
|
data/AGENTS.md
CHANGED
@@ -4,7 +4,8 @@ MicroMcp is a Ruby gem with a Rust extension. It provides a simple way to build
|
|
4
4
|
|
5
5
|
## Running checks
|
6
6
|
|
7
|
-
Always run `bundle exec rake` before committing. This command compiles the extension, runs Ruby and Rust tests, and lints the code with StandardRB and clippy.
|
7
|
+
Always run `bundle exec rake` before committing. This command compiles the extension, runs Ruby and Rust tests, and lints the code with StandardRB and clippy. Additionally, run `cargo fmt --all` to keep the Rust code formatted consistently.
|
8
|
+
When features or important fixes are introduced, update `CHANGELOG.md` accordingly.
|
8
9
|
|
9
10
|
## Development tips
|
10
11
|
|
@@ -12,3 +13,6 @@ Always run `bundle exec rake` before committing. This command compiles the exten
|
|
12
13
|
- Install dependencies with `bin/setup` or `bundle install`.
|
13
14
|
- Avoid committing build artifacts such as `target/` from Cargo.
|
14
15
|
|
16
|
+
## Developing practices
|
17
|
+
|
18
|
+
Always create a test to validate new features. It is ok to adapt tests for changes to existing features, unless those changes are big and don't invalidate standing assumptions.
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
### Added
|
4
|
+
- Ruby `ToolRegistry` for registering tools dynamically
|
5
|
+
- Access to the MCP runtime from Ruby tools
|
6
|
+
- Argument support for tools
|
7
|
+
- Exposed `client_supports_sampling` on runtime
|
8
|
+
- Exposed `create_message` on runtime
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
- Gem renamed from `mcp_lite` to `micro_mcp`
|
12
|
+
- Tool handling uses a dynamic registry
|
13
|
+
- Improved server error handling
|
14
|
+
|
3
15
|
## [0.1.0] - 2025-06-17
|
4
16
|
|
5
17
|
- Initial release
|