Skip to content

Commit 8ff4eef

Browse files
committed
chore: add default to vector and headers, format
1 parent f7cd64a commit 8ff4eef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ jobs:
121121
run: ./mcp-publisher login github --token ${{ steps.app-token.outputs.token }}
122122

123123
- name: Publish to MCP Registry
124-
run: ./mcp-publisher publish
124+
run: ./mcp-publisher publish

src/common/config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export const UserConfigSchema = z.object({
224224
.describe("Host address to bind the HTTP server to (only used when transport is 'http')."),
225225
httpHeaders: z
226226
.record(z.string())
227-
.optional()
227+
.default({})
228228
.describe(
229229
"Custom HTTP headers to include in responses from the HTTP server (only used when transport is 'http'). Useful for adding CORS headers, authentication tokens, or other custom headers required by your client application."
230230
),
@@ -275,11 +275,12 @@ export const UserConfigSchema = z.object({
275275
.describe("When set to true, disables validation of embeddings dimensions."),
276276
vectorSearchDimensions: z
277277
.number()
278-
.optional()
278+
.default(1024)
279279
.describe("Default number of dimensions for vector search embeddings."),
280280
vectorSearchSimilarityFunction: z
281281
.custom<Similarity>()
282282
.optional()
283+
.default("euclidean")
283284
.describe("Default similarity function for vector search: 'euclidean', 'cosine', or 'dotProduct'."),
284285
});
285286

0 commit comments

Comments
 (0)