fix(mcp): use v1 security scheme compatibility metadata
Some checks failed
CI / verify (push) Has been cancelled
CI / print-rust (push) Has been cancelled

This commit is contained in:
Admin 2026-09-27 09:42:55 +00:00
parent 0120463332
commit 85a9d0238c
2 changed files with 1 additions and 3 deletions

View File

@ -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()

View File

@ -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] }],
},