Skip to content

Commit 8d8e618

Browse files
committed
test(mcp): expect the identity fields getMeta now returns
1 parent 718e6f5 commit 8d8e618

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/sim/lib/api/mcp/route-handler.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,15 @@ describe('Sim MCP tools', () => {
9797
it('serves a read through the v2 route with the MCP credential and audience', async () => {
9898
const result = await callTool('call_read_operation', { operation: 'getMeta' })
9999
expect(result.isError).toBeFalsy()
100-
expect(JSON.parse(result.content[0].text)).toEqual({
100+
expect(JSON.parse(result.content[0].text)).toMatchObject({
101101
data: {
102102
v2Enabled: true,
103103
keyType: 'personal',
104104
expiresAt: null,
105105
scopes: ['api:read', 'api:write', 'search:read'],
106+
keyId: 'key-1',
107+
userId: 'user-1',
108+
workspaceId: null,
106109
},
107110
})
108111
expect(v2RouteMocks.authenticate).toHaveBeenCalledTimes(2)

0 commit comments

Comments
 (0)