Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(torii): add SSE support for mcp #3075

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
108 changes: 76 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ torii-runner = { path = "crates/torii/runner" }
torii-server = { path = "crates/torii/server" }
torii-sqlite = { path = "crates/torii/sqlite" }
torii-typed-data = { path = "crates/torii/typed-data" }
torii-mcp = { path = "crates/torii/mcp" }

# sozo
sozo-ops = { path = "crates/sozo/ops" }
Expand Down
13 changes: 13 additions & 0 deletions crates/torii/mcp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
edition.workspace = true
name = "torii-mcp"
version.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde.workspace = true
serde_json.workspace = true
sqlx.workspace = true
tokio.workspace = true
torii-sqlite.workspace = true
3 changes: 3 additions & 0 deletions crates/torii/mcp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub mod types;
pub mod tools;
pub mod resources;
8 changes: 8 additions & 0 deletions crates/torii/mcp/src/resources/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[derive(Clone, Debug)]
pub struct Resource {
pub name: &'static str,
}

pub fn get_resources() -> Vec<Resource> {
vec![] // Add resources as needed
}
Loading
Loading