diff --git a/README.md b/README.md index 13dbe62..9ee75c2 100644 --- a/README.md +++ b/README.md @@ -511,7 +511,7 @@ pnpm build # Generate bundle/bundle.json | **McpMux Desktop App** | [Download](https://mcpmux.com/download) — Windows, macOS, Linux | | **Discover Servers** | [mcpmux.com](https://mcpmux.com) — browse, search, and install MCP servers | | **Features** | [mcpmux.com/features](https://mcpmux.com/features) — Spaces, Feature Sets, encrypted credentials, and more | -| **Source Code** | [github.com/ion-ash/mcp-mux](https://github.com/ion-ash/mcp-mux) | +| **Source Code** | [github.com/mcpmux/mcp-mux](https://github.com/mcpmux/mcp-mux) | --- diff --git a/schemas/server-definition.schema.json b/schemas/server-definition.schema.json index 52b7ee1..7d21e35 100644 --- a/schemas/server-definition.schema.json +++ b/schemas/server-definition.schema.json @@ -218,6 +218,10 @@ "type": "string", "description": "Help text for this input" }, + "default": { + "type": "string", + "description": "Default value for this input (used when user provides no value)" + }, "placeholder": { "type": "string", "description": "Placeholder text" diff --git a/tests/schema-validation.test.js b/tests/schema-validation.test.js index ff5c7d9..9b18a9d 100644 --- a/tests/schema-validation.test.js +++ b/tests/schema-validation.test.js @@ -50,6 +50,19 @@ describe("Server Definition Schema", () => { it.each([ { id: "com.example-test", name: "Test", transport: { type: "stdio", command: "echo" } }, { id: "com.example-remote", name: "Remote", transport: { type: "http", url: "https://example.com/mcp" } }, + { + id: "com.example-defaults", name: "Defaults Test", + transport: { + type: "stdio", command: "node", args: ["server.js"], + env: { "LOG_LEVEL": "${input:LOG_LEVEL}" }, + metadata: { + inputs: [ + { id: "LOG_LEVEL", label: "Log Level", type: "text", required: false, default: "info" }, + { id: "API_KEY", label: "API Key", type: "password", required: true, secret: true }, + ], + }, + }, + }, ])("validates valid server definition: $id", (data) => { expect(validate(data)).toBe(true); });