We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1055aea commit 8efc5d6Copy full SHA for 8efc5d6
test.ts
@@ -6,14 +6,16 @@ import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'
6
import { join } from 'path'
7
8
test('Socket MCP Server', async (t) => {
9
+ const apiKey = process.env['SOCKET_API_KEY']
10
+ assert.ok(apiKey, 'We have an API key. Tests will not pass without it')
11
const serverPath = join(import.meta.dirname, 'index.ts')
12
13
const transport = new StdioClientTransport({
14
command: 'node',
15
args: ['--experimental-strip-types', serverPath],
16
env: {
17
...process.env,
- SOCKET_API_KEY: process.env['SOCKET_API_KEY'] || ''
18
+ SOCKET_API_KEY: apiKey
19
}
20
})
21
0 commit comments