Fix imports
This commit is contained in:
parent
161758786a
commit
9b52f76cf5
6 changed files with 12 additions and 15 deletions
|
@ -1,5 +1,3 @@
|
||||||
pub mod tools;
|
pub mod tools;
|
||||||
pub mod transport;
|
pub mod transport;
|
||||||
|
|
||||||
// Re-export key components for easier access
|
|
||||||
pub use tools::DocRouter;
|
|
|
@ -1,4 +1,6 @@
|
||||||
pub mod docs;
|
pub mod docs;
|
||||||
mod tests;
|
|
||||||
|
|
||||||
pub use docs::DocRouter;
|
pub use docs::DocRouter;
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests;
|
|
@ -1,5 +1,5 @@
|
||||||
use crate::tools::DocCache;
|
use crate::tools::DocCache;
|
||||||
use crate::DocRouter;
|
use crate::tools::DocRouter;
|
||||||
use mcp_core::{Content, ToolError};
|
use mcp_core::{Content, ToolError};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
use mcp_server::Router;
|
use mcp_server::Router;
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
mod http_sse_server;
|
mod http_sse_server;
|
||||||
mod tests;
|
|
||||||
|
|
||||||
pub use http_sse_server::*;
|
pub use http_sse_server::*;
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests;
|
|
@ -23,12 +23,6 @@ async fn test_router_setup() {
|
||||||
assert!(true);
|
assert!(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test removed since session_id is private
|
|
||||||
// #[tokio::test]
|
|
||||||
// async fn test_session_id_generation() {
|
|
||||||
// // Test removed
|
|
||||||
// }
|
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test_post_event_handler_not_found() {
|
async fn test_post_event_handler_not_found() {
|
||||||
let app = App::new();
|
let app = App::new();
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
mod jsonrpc_frame_codec;
|
mod jsonrpc_frame_codec;
|
||||||
mod tests;
|
pub use jsonrpc_frame_codec::JsonRpcFrameCodec;
|
||||||
|
|
||||||
pub use jsonrpc_frame_codec::JsonRpcFrameCodec;
|
#[cfg(test)]
|
||||||
|
mod tests;
|
Loading…
Add table
Add a link
Reference in a new issue