Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 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
11 changes: 6 additions & 5 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ futures = "0.3"

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_json = { version = "1.0", features = ["preserve_order"] }

# Error handling
anyhow = "1.0"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Add a server in McpMux and every client has it instantly. No files to edit.
{
"mcpServers": {
"mcpmux": {
"url": "http://localhost:9315/mcp"
"type": "http",
"url": "http://localhost:45818/mcp"
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion apps/desktop/src-tauri/src/commands/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ pub async fn save_server_inputs(
id: String,
input_values: HashMap<String, String>,
space_id: String,
env_overrides: Option<HashMap<String, String>>,
args_append: Option<Vec<String>>,
extra_headers: Option<HashMap<String, String>>,
) -> Result<InstalledServer, String> {
let service_lock = app_service.read().await;
let service = service_lock
Expand All @@ -142,7 +145,7 @@ pub async fn save_server_inputs(
let space_uuid = uuid::Uuid::parse_str(&space_id).map_err(|e| e.to_string())?;

service
.update_config(space_uuid, &id, input_values)
.update_config(space_uuid, &id, input_values, env_overrides, args_append, extra_headers)
.await
.map_err(|e| e.to_string())
}
3 changes: 2 additions & 1 deletion apps/desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ function DashboardView() {
<div className="relative">
<pre className="bg-slate-900 text-slate-100 p-4 rounded-lg text-sm overflow-x-auto font-mono">
{`"mcpmux": {
"type": "http",
"url": "${gatewayStatus.url || 'http://localhost:3100'}/mcp"
}`}
</pre>
Expand All @@ -421,7 +422,7 @@ function DashboardView() {
size="sm"
className="absolute top-2 right-2"
onClick={async () => {
const config = `"mcpmux": {\n "url": "${gatewayStatus.url || 'http://localhost:3100'}/mcp"\n}`;
const config = `"mcpmux": {\n "type": "http",\n "url": "${gatewayStatus.url || 'http://localhost:3100'}/mcp"\n}`;
await navigator.clipboard.writeText(config);
setExportSuccess('Config copied to clipboard!');
setTimeout(() => setExportSuccess(null), 2000);
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/components/ConfigEditorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function ConfigEditorModal({ spaceId, spaceName, onClose, onSaved }: Conf
<div className="flex items-center justify-between p-4 border-b border-[rgb(var(--border))]">
<div>
<h3 className="text-lg font-semibold flex items-center gap-2">
Add Server Manually
Add Custom Server
</h3>
<p className="text-sm text-[rgb(var(--muted))]">
Edit the JSON configuration for space: {spaceName}
Expand Down
Loading
Loading