Skip to content

Commit 0bf21a4

Browse files
committed
Add comprehensive tests for RMCP tool functionality and JavaScript integration
- Introduced tests for tool builder methods, input/output schemas, and chained builder methods in `test_tool_builder_methods.rs`. - Added tests for tool handler annotations in `test_tool_macro_annotations.rs`. - Implemented extensive macro tests in `test_tool_macros.rs`, covering various scenarios including optional fields and generics. - Created tests for tool result metadata serialization/deserialization in `test_tool_result_meta.rs`. - Developed router tests in `test_tool_routers.rs` to validate tool routing functionality. - Added JavaScript client and server tests in `test_with_js.rs`, including SSE and streamable HTTP communication. - Implemented Python client and server tests in `test_with_python.rs`, ensuring compatibility with the RMCP protocol. - Included necessary JavaScript and Python files for testing, along with their configurations. - Updated `.gitignore` files for both JavaScript and Python test directories to exclude unnecessary files.
1 parent ccd8fff commit 0bf21a4

File tree

112 files changed

+32129
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+32129
-25
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ codegraph-ai = { path = "crates/codegraph-ai" }
208208
# Development dependencies
209209

210210

211+
[patch.crates-io]
212+
rmcp = { path = "vendor/rmcp" }
213+
211214
[profile.release]
212215
# Performance-oriented release (kept as-is for general builds)
213216
opt-level = 3

test_enhanced_search.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

test_mcp_input.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

test_mcp_sequence.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

vendor/rmcp/.cargo-ok

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"v":1}

vendor/rmcp/.cargo_vcs_info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "aff82ed0c4ae06691cb18ac31e12b0afe0428ec1"
4+
},
5+
"path_in_vcs": "crates/rmcp"
6+
}

vendor/rmcp/CHANGELOG.md

Lines changed: 268 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)