Skip to content

Commit d686576

Browse files
committed
mvp mcp server
1 parent 7a8a255 commit d686576

6 files changed

Lines changed: 1436 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ pub mod scope_parser;
88
pub mod services;
99
pub mod utils;
1010

11+
#[cfg(feature = "ssr")]
12+
pub mod mcp;
1113
#[cfg(feature = "ssr")]
1214
pub mod server;
1315

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ async fn main() -> anyhow::Result<()> {
3737
use leptos::prelude::*;
3838
use leptos_axum::{LeptosRoutes, generate_route_list_with_exclusions_and_ssg_and_context};
3939
use pointer::app::*;
40+
use pointer::mcp;
4041
use sqlx::postgres::PgPoolOptions;
4142
use tower_http::compression::CompressionLayer;
4243

@@ -69,6 +70,7 @@ async fn main() -> anyhow::Result<()> {
6970
let val = shell_options.clone();
7071
move || shell(val.clone())
7172
})
73+
.merge(mcp::server::router(state.clone()))
7274
.fallback(leptos_axum::file_and_error_handler_with_context(
7375
move || provide_context(file_state.clone()),
7476
shell,

src/mcp/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub mod server;
2+
pub mod tools;
3+
pub mod types;

0 commit comments

Comments
 (0)