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
9 changes: 5 additions & 4 deletions scripts/generateArguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function updateServerJsonEnvVars(envVars: EnvironmentVariable[]): void {
version?: string;
packages: {
registryType?: string;
identifier?: string;
identifier: string;
environmentVariables: EnvironmentVariable[];
packageArguments?: unknown[];
version?: string;
Expand Down Expand Up @@ -209,12 +209,13 @@ function updateServerJsonEnvVars(envVars: EnvironmentVariable[]): void {
for (const pkg of serverJson.packages) {
pkg.environmentVariables = envVarsArray as EnvironmentVariable[];
pkg.packageArguments = packageArguments;
pkg.version = version;

// Update OCI identifier version tag if this is an OCI package
if (pkg.registryType === "oci" && pkg.identifier) {
// For OCI packages, update the version tag in the identifier and not a version field
if (pkg.registryType === "oci") {
// Replace the version tag in the OCI identifier (e.g., docker.io/mongodb/mongodb-mcp-server:1.0.0)
pkg.identifier = pkg.identifier.replace(/:[^:]+$/, `:${version}`);
} else {
pkg.version = version;
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,7 @@
"description": "API key for Voyage AI embeddings service (required for vector search operations with text-to-embedding conversion).",
"isRequired": false
}
],
"version": "1.2.0"
]
}
]
}
Loading