Skip to content

Commit 14cd41c

Browse files
committed
chore: update version and modify client configurations
- Bumped version from 1.3.3 to 1.4.0 in package.json and Cargo files. - Changed "VSCode" client from free to paid. - Updated "Custom" client option to reflect paid status. - Enhanced server management by adding timestamps and creator information in server CRUD operations.
1 parent 65b7049 commit 14cd41c

File tree

6 files changed

+30
-8
lines changed

6 files changed

+30
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"author": "milisp",
99
"license": "MIT",
1010
"private": true,
11-
"version": "1.3.3",
11+
"version": "1.4.0",
1212
"type": "module",
1313
"scripts": {
1414
"dev": "vite",

src-tauri/Cargo.lock

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

src-tauri/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mcp-linker"
3-
version = "1.3.2"
3+
version = "1.4.0"
44
description = "Easily connect and manage MCP servers for Claude and other clients"
55
authors = ["milisp"]
66
edition = "2021"
@@ -33,6 +33,7 @@ url = "2.5.4"
3333
anyhow = "1.0.98"
3434
ring = "0.17.8"
3535
base64 = "0.21.7"
36+
chrono = { version = "0.4.41", features = ["serde", "clock"] }
3637

3738
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
3839
tauri-plugin-single-instance = { version = "2.0.0", features = ["deep-link"] }

src-tauri/src/json_manager/server_crud.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use chrono::Utc;
12
use serde_json::{json, Value};
23
use std::path::Path;
34

@@ -26,6 +27,10 @@ pub async fn add_mcp_server(
2627
return Err(format!("Server '{}' already exists in '{}'", name, key));
2728
}
2829

30+
let mut config = config.clone();
31+
config["_creator"] = json!("mcp_linker");
32+
config["updated_at"] = json!(Utc::now().to_rfc3339());
33+
2934
json[key][name] = config;
3035

3136
write_json_file(path, &json).await?;
@@ -69,20 +74,29 @@ pub async fn update_mcp_server(
6974
&& json[key].is_object()
7075
&& json[key].as_object().unwrap().contains_key(name)
7176
{
77+
let mut config = config.clone();
78+
config["_creator"] = json!("mcp_linker");
79+
config["updated_at"] = json!(Utc::now().to_rfc3339());
7280
json[key][name] = config;
7381
}
7482
// Check if server exists in disabled servers
7583
else if json.as_object().unwrap().contains_key("__disabled")
7684
&& json["__disabled"].is_object()
7785
&& json["__disabled"].as_object().unwrap().contains_key(name)
7886
{
87+
let mut config = config.clone();
88+
config["_creator"] = json!("mcp_linker");
89+
config["updated_at"] = json!(Utc::now().to_rfc3339());
7990
json["__disabled"][name] = config;
8091
}
8192
// If server doesn't exist in either section, add to active servers
8293
else {
8394
if !json.as_object().unwrap().contains_key(key) {
8495
json[key] = json!({});
8596
}
97+
let mut config = config.clone();
98+
config["_creator"] = json!("mcp_linker");
99+
config["updated_at"] = json!(Utc::now().to_rfc3339());
86100
json[key][name] = config;
87101
}
88102

src/constants/clients.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ const clients = [
44
{ value: "claude_code", label: "Claude Code", free: false },
55
{ value: "cline", label: "Cline", free: true },
66
{ value: "roo_code", label: "Roo Code", free: false },
7-
{ value: "vscode", label: "VSCode", free: true },
7+
{ value: "vscode", label: "VSCode", free: false },
88
{ value: "windsurf", label: "Windsurf", free: true },
99
{ value: "cherrystudio", label: "Cherry Studio", free: true },
1010
{ value: "mcphub", label: "mcphub.nvim", free: true },
1111
];
1212

1313
export const availableClients = clients;
14-
export const clientOptions = [...clients, { value: "custom", label: "Custom", free: true }];
14+
export const clientOptions = [...clients, { value: "custom", label: "Custom", free: false }];

src/pages/manage.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,13 @@ export default function McpManage() {
136136
{/* team */}
137137
<TabsContent value="team" className="flex-1 min-h-0">
138138
{user?.tier !== "TEAM" ? (
139-
<div className="flex justify-center items-center h-full text-muted-foreground">
140-
Upgrade to <strong>TEAM</strong> to access team cloud servers.
141-
<br />
139+
<div className="flex flex-col justify-center items-center h-full text-center space-y-3 text-muted-foreground">
140+
<p>
141+
Access to team cloud servers requires a <strong>TEAM</strong> upgrade.
142+
</p>
143+
<p className="text-sm font-semibold text-orange-500">
144+
Don’t let your team wait.
145+
</p>
142146
<Button
143147
onClick={() => open("https://mcp-linker.store/pricing")}
144148
className="mt-2"

0 commit comments

Comments
 (0)