u
This commit is contained in:
@@ -115,8 +115,8 @@ const tokenVerifier = {
|
||||
const scopes = typeof decoded.scope === 'string'
|
||||
? decoded.scope.split(' ')
|
||||
: Array.isArray(decoded.scope)
|
||||
? decoded.scope
|
||||
: ['mcp:tools'];
|
||||
? decoded.scope
|
||||
: ['mcp:tools'];
|
||||
|
||||
return {
|
||||
token,
|
||||
@@ -237,7 +237,7 @@ function createDashbackMcpServer({ user }) {
|
||||
searchquery: z.string().nullable().optional().describe(TOOL_PARAMETER_DESCRIPTIONS.search_articles?.searchquery || 'Keywords matching name, brand, EAN, SKU, or supplier SKU (AND logic).'),
|
||||
excludewords: z.string().nullable().optional().describe(TOOL_PARAMETER_DESCRIPTIONS.search_articles?.excludewords || 'Keywords to exclude (AND logic).'),
|
||||
offset: z.number().int().min(0).nullable().optional().describe(TOOL_PARAMETER_DESCRIPTIONS.search_articles?.offset || 'Pagination offset (default 0).'),
|
||||
limit: z.number().int().min(1).max(20).nullable().optional().describe(TOOL_PARAMETER_DESCRIPTIONS.search_articles?.limit || 'Window size 1–20 (default 3).'),
|
||||
limit: z.number().int().min(1).max(20).nullable().optional().describe(TOOL_PARAMETER_DESCRIPTIONS.search_articles?.limit || 'Window size 1-20 (default 3).'),
|
||||
},
|
||||
},
|
||||
async ({ searchquery = '', excludewords = '', offset = 0, limit = 3 } = {}) => {
|
||||
|
||||
Reference in New Issue
Block a user