Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 34 additions & 10 deletions Cargo.lock

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

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ repository = "https://github.com/contextforge-gateway-rs/contextforge-gateway-rs


[workspace.dependencies]

contextforge-gateway-rs = { path = "./crates/contextforge-gateway-rs" }
contextforge-gateway-rs-lib = { path = "./crates/contextforge-gateway-rs-lib", features = [
"with_tools",
] }

rmcp = { version = "1.6.0", features = [
"server",
"client",
Expand All @@ -32,7 +34,6 @@ rmcp = { version = "1.6.0", features = [
"elicitation",
], git = "https://github.com/contextforge-gateway-rs/mcp-rust-sdk", branch = "enabling_propagation_of_new_session_id_2", commit="d07fa4f8d7978cd0829a09fab181437b99a81878" }


serde = "1.0"
serde_json = "1.0"
tracing = "0.1"
Expand All @@ -51,7 +52,11 @@ axum-jwt-auth = "0.6.3"
futures = { version = "0.3", features = ["std", "alloc"] }
jsonwebtoken = "10.3.0"
chrono = "0.4.44"
redis = { version = "1.1.0", features = ["default", "tokio-rustls-comp"] }
redis = { version = "1.2.1", features = [
"default",
"tokio-rustls-comp",
"tls-rustls",
] }
clap = { version = "4.5.60", features = ["derive", "env"] }
thiserror = "2.0.18"
openid = "0.23.0"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ docker compose -f docker/docker-compose-local.yaml up -d

2. Run gateway
```bash
cargo run --release --bin contextforge-gateway-rs -- --address 0.0.0.0:8001 --redis-port 6379 --redis-address 127.0.0.1 --token-verification-public-key assets/jwt.key.pub --token-verification-private-key assets/jwt.key --number-of-cpus 16
cargo run --bin contextforge-gateway-rs -- --address 0.0.0.0:8001 --redis-port 6379 --redis-address 127.0.0.1 --token-verification-public-key assets/jwt.key.pub --token-verification-private-key assets/jwt.key --number-of-cpus 16 --redis-mode=plain-text --upstream-connection-mode=plain-text-or-tls

```

This should spin up Redis instance and two mcp-gateways: a simple counter and a conformance test server from mcp-rust-sdk
Expand Down Expand Up @@ -55,4 +56,4 @@ cargo run --release --bin contextforge-load-test -- --host 'http://127.0.0.1:800

```

[Performance reports](./reports)
[Performance reports](./reports)
3 changes: 3 additions & 0 deletions crates/contextforge-gateway-rs-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ hyper-util = "0.1.20"
hyper = { version = "1.4.0" }
rustls.workspace = true
rustls-pki-types = { version = "1.14.1", features = ["std"] }
rustls-pemfile = "2.2.0"
tokio-rustls = "0.26.4"
typed-builder.workspace = true


[features]
default = []
with_tools = []
Expand Down
Loading