fix(mcp): use v1 security scheme compatibility metadata
This commit is contained in:
parent
0120463332
commit
85a9d0238c
@ -14,10 +14,9 @@ describe('FieldLens MCP telemetry', () => {
|
||||
expect(tools.map((tool) => tool.name)).toEqual(['list_print_captures'])
|
||||
expect(tools[0]?.annotations?.readOnlyHint).toBe(true)
|
||||
expect(tools[0]?.inputSchema.properties?.limit).toBeDefined()
|
||||
expect(tools[0]?.securitySchemes).toEqual([
|
||||
expect(tools[0]?._meta?.securitySchemes).toEqual([
|
||||
{ type: 'oauth2', scopes: [...FIELDLENS_MCP_OAUTH_SCOPES] },
|
||||
])
|
||||
expect(tools[0]?._meta?.securitySchemes).toEqual(tools[0]?.securitySchemes)
|
||||
} finally {
|
||||
await client.close()
|
||||
await server.close()
|
||||
|
||||
@ -18,7 +18,6 @@ export function createFieldLensMcpServer() {
|
||||
description: 'Read recent FieldLens printer capture diagnostics for the authorized tenant. No print document or barcode values are included.',
|
||||
inputSchema: { limit: z.number().int().min(1).max(200).optional() },
|
||||
annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
||||
securitySchemes: [{ type: 'oauth2', scopes: [...FIELDLENS_MCP_OAUTH_SCOPES] }],
|
||||
_meta: {
|
||||
securitySchemes: [{ type: 'oauth2', scopes: [...FIELDLENS_MCP_OAUTH_SCOPES] }],
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user