MCPcopy Index your code
hub / github.com/simstudioai/sim / dbRow

Function dbRow

apps/sim/lib/mcp/service.test.ts:132–150  ·  view source on GitHub ↗
(id: string, name: string, overrides: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

130const USER_ID = 'user-test'
131
132function 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
152function tool(name: string, serverId: string) {
153 return {

Callers 1

service.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected