Skip to content

Commit 03e4c5b

Browse files
its-mashclaude
andcommitted
chore: update deps and registry API client
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
1 parent 4b224c9 commit 03e4c5b

4 files changed

Lines changed: 16 additions & 10 deletions

File tree

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/desktop/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ RUST_LOG="debug"
44
# Registry API URL
55
# For production: https://api.mcpmux.com
66
# For local dev: http://localhost:8787
7-
MCPMUX_REGISTRY_URL="http://localhost:8787"
7+
MCPMUX_REGISTRY_URL="https://api.mcpmux.com"

apps/desktop/src-tauri/src/state/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl AppState {
128128
info!("Using spaces directory: {:?}", spaces_dir);
129129

130130
let registry_url = std::env::var("MCPMUX_REGISTRY_URL")
131-
.unwrap_or_else(|_| "http://localhost:8787".to_string());
131+
.unwrap_or_else(|_| "https://api.mcpmux.com".to_string());
132132
info!("Using Registry API URL: {}", registry_url);
133133

134134
let server_discovery = Arc::new(

crates/mcpmux-core/src/service/registry_api_client.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,11 @@ mod tests {
219219

220220
#[tokio::test]
221221
async fn test_fetch_bundle_from_local() {
222-
// Assumes local dev server is running: pnpm dev
223-
let client = RegistryApiClient::new("http://localhost:8787".to_string());
222+
// Uses deployed API by default, or MCPMUX_REGISTRY_URL env var
223+
let client = RegistryApiClient::new(
224+
std::env::var("MCPMUX_REGISTRY_URL")
225+
.unwrap_or_else(|_| "https://api.mcpmux.com".to_string()),
226+
);
224227

225228
let result = client.fetch_bundle(None).await;
226229

@@ -241,7 +244,10 @@ mod tests {
241244

242245
#[tokio::test]
243246
async fn test_fetch_bundle_with_etag() {
244-
let client = RegistryApiClient::new("http://localhost:8787".to_string());
247+
let client = RegistryApiClient::new(
248+
std::env::var("MCPMUX_REGISTRY_URL")
249+
.unwrap_or_else(|_| "https://api.mcpmux.com".to_string()),
250+
);
245251

246252
// First fetch to get ETag
247253
let first_result = client.fetch_bundle(None).await;

0 commit comments

Comments
 (0)