| 130 | const USER_ID = 'user-test' |
| 131 | |
| 132 | function dbRow(id: string, name: string, overrides: Record<string, unknown> = {}) { |
| 133 | return { |
| 134 | id, |
| 135 | name, |
| 136 | description: null, |
| 137 | transport: 'streamable-http', |
| 138 | url: `https://${id}.example.com/mcp`, |
| 139 | authType: 'headers', |
| 140 | workspaceId: WORKSPACE_ID, |
| 141 | headers: {}, |
| 142 | timeout: 30000, |
| 143 | retries: 3, |
| 144 | enabled: true, |
| 145 | deletedAt: null, |
| 146 | createdAt: new Date('2026-01-01T00:00:00Z'), |
| 147 | updatedAt: new Date('2026-01-01T00:00:00Z'), |
| 148 | ...overrides, |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | function tool(name: string, serverId: string) { |
| 153 | return { |