thunderclient-mcp 1.0.11 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,155 +1,38 @@
1
- [![MseeP.ai Security Assessment Badge](https://mseep.net/pr/thunderclient-thunderclient-mcp-badge.png)](https://mseep.ai/app/thunderclient-thunderclient-mcp)
1
+ <p align="center">
2
+ <img src="https://github.com/thunderclient/thunder-client-support/blob/21d62c97dcc8168dc678b165fe678fd12c2f476b/images/thunder-icon.png" width="120" height="120" />
3
+ </p>
2
4
 
3
5
  # Thunder Client MCP Server
4
6
 
5
- The Thunder Client MCP server enables customers to integrate with AI tools to create requests and collections. It is compatible with various AI development environments, including Cline, Continue.dev, and GitHub Copilot.
6
-
7
- ## Requirements
8
-
9
- - A **Business** or **Enterprise** plan subscription is required to use the Thunder Client MCP Server.
10
- - View Thunder Client pricing plans [here](https://www.thunderclient.com/pricing).
11
-
12
- ## Available Tools
13
-
14
- This MCP server provides three powerful tools for managing Thunder Client operations:
15
-
16
- ### 1. `tc_create`
17
-
18
- **Description:**
19
- Saves API endpoints to Thunder Client, automatically creating collections and folders if they do not already exist.
20
-
21
- **Usage:**
22
-
23
- - Use AI to analyze your current project and automatically generate API requests in Thunder Client, with the appropriate collection and folder created as needed.
24
- - Add new requests to a specific collection in Thunder Client.
25
- - Dynamically create a request using an AI-generated prompt.
26
-
27
- ### 2. `tc_debug`
28
-
29
- **Description:** Show Thunder Client CLI debug information using `tc --debug` in the given project directory.
30
-
31
- - **Usage:** Troubleshoot and get detailed debug information from Thunder Client
32
-
7
+ The Thunder Client MCP server lets AI assistants create, manage, and run API requests and collections directly in Thunder Client — without leaving your editor.
33
8
 
9
+ Compatible with **Claude Code**, **Codex**, **GitHub Copilot**, **Cursor**, **Windsurf**, and any MCP-compatible AI tool.
34
10
 
35
- ## Configuration for Different Environments
11
+ ## Documentation
36
12
 
37
- ### For Cline
38
-
39
- 1. Open Cline and navigate to the **MCP Server** section
40
- 2. Click on **Installed**
41
- 3. Click on **Configure the MCP Server**
42
- 4. Add the following configuration inside the `mcpServers` JSON:
43
-
44
- ```json
45
- {
46
- "mcpServers": {
47
- "thunderclient": {
48
- "name": "Thunder Client MCP Server",
49
- "type": "stdio",
50
- "command": "npx",
51
- "args": ["-y", "thunderclient-mcp"]
52
- }
53
- }
54
- }
55
- ```
56
-
57
- **Important:** Replace `thunderclient-mcp` with `/path/to/thunder-mcp/dist/index.js` with your actual `index.js` location in local Dev mode.
58
-
59
- Once configured, you can use all `tc_*` command tools in Cline's MCP interface.
13
+ For requirements, installation, and setup instructions, see the [Thunder Client MCP documentation](https://docs.thunderclient.com/mcp).
60
14
 
61
15
  ---
62
16
 
63
- ### For Continue.dev
64
-
65
- 1. Add a new **MCP server** to your configuration
66
- 2. Switch to **Agent mode** instead of Chat mode
67
- 3. Configure using the following YAML structure:
68
-
69
- ```yaml
70
- name: Thunder Client MCP Server
71
- version: 0.0.1
72
- schema: v1
73
- mcpServers:
74
- - name: Thunder Client MCP Server
75
- command: npx
76
- args:
77
- - thunderclient-mcp
78
- ```
79
-
80
- **Important:** Replace `thunderclient-mcp` with `/path/to/thunder-mcp/dist/index.js` with your actual `index.js` location in local Dev mode.
81
-
82
- ---
83
-
84
- ### For GitHub Copilot
85
-
86
- 1. Switch to **Agent mode** from Chat mode
87
- 2. Click on the **Tools** icon in the interface
88
- 3. Scroll down and click **+ Add more tools**
89
- 4. Select **+ Add MCP Server**
90
- ![alt text](https://raw.githubusercontent.com/thunderclient/thunderclient-mcp/refs/heads/main/public/copolit_add_mcp_server.png)
91
- 5. Choose **Stdio** as the connection type
92
- 6. Enter the command to run as `npx thunderclient-mcp`
93
- 7. Enter the mcp name `thunderclient-mcp-server-....`
94
- 8. Choose where to install MCP, select `Global` or `User`
95
- 9. Save the configuration
96
-
97
- **Important:** Replace `npx thunderclient-mcp` with `node /path/to/thunder-mcp/dist/index.js` with your actual `index.js` location in local Dev mode.
98
-
99
- # Example Prompts
100
-
101
- This document contains simple example prompts for the `tc_create` tool to extract APIs from code files and save them to Thunder Client.
102
-
103
- ## Extract APIs from Code Files
104
-
105
- ### 1. Extract APIs from Current Project
106
-
107
- ```
108
- "Get the endpoints from the current project and save them with collection name 'My API' using Thunder Client MCP."
109
- ```
110
-
111
- ### 2. Extract APIs from Files and Folders
112
-
113
- ```
114
- "Get the endpoints from app/main.py and save them with collection name 'E-commerce API' and folder name 'Products' using Thunder Client MCP."
115
- ```
116
-
117
- ```
118
- "Get the endpoints from the src/routes/ folder and save them with collection name 'Node API' using Thunder Client MCP."
119
- ```
17
+ ## Contributing
120
18
 
121
- ### 3. Create Simple HTTP Requests
19
+ Issues and pull requests are welcome.
122
20
 
123
- ```
124
- "Create a POST request to https://api.example.com/users with a JSON body and an Authorization header using Thunder Client MCP."
125
- ```
126
-
127
- ## Running Locally
21
+ To build the server locally, run:
128
22
 
129
23
  ```bash
130
- npm i
24
+ git clone https://github.com/thunderclient/thunderclient-mcp
25
+ cd thunderclient-mcp
26
+ npm install
131
27
  npm run build
132
28
  ```
133
29
 
134
- After building, a `dist` folder will be created. Copy the `index.js` path from the `dist` folder - this path will be used in your MCP server configuration.
135
-
136
- ## Troubleshooting
30
+ Then, in your MCP configuration, replace `npx -y thunderclient-mcp` with `node /path/to/thunderclient-mcp/dist/index.js`.
137
31
 
138
- ### If the Agent Is Not Executing Commands Properly
32
+ ## License
139
33
 
140
- 1. **Use Attach Context:** Utilize the **Attach Context** option in your AI environment
141
- 2. **Attach Required Files:** Include relevant files and specifically attach the `tc_create` tool context
142
- 3. **Provide Clear Prompts:** Give detailed, specific prompts to assist with command execution
34
+ This project is licensed under the [MIT License](LICENSE).
143
35
 
144
- ### Common Issues
36
+ ## Audit
145
37
 
146
- - **Path Issues:** Ensure all file paths are absolute and correctly formatted for your operating system
147
- - **Node.js Version:** Verify you're using a compatible Node.js version
148
- - **Permissions:** Check that the MCP server has appropriate file system permissions
149
- - **Project Directory:** Ensure the `projectDir` parameter points to a valid Thunder Client workspace
150
-
151
- ---
152
-
153
- ## Contributing
154
-
155
- Feel free to contribute to this project by submitting issues or pull requests to improve functionality and compatibility with different AI development environments.
38
+ [![MseeP.ai Security Assessment Badge](https://mseep.net/pr/thunderclient-thunderclient-mcp-badge.png)](https://mseep.ai/app/thunderclient-thunderclient-mcp)
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
4
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
5
  import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
6
6
  import { toolHandlers, tools } from "./tools/definitions.js";
7
+ import { registerResources } from "./resources.js";
7
8
  import pkg from '../package.json' with { type: 'json' };
8
9
  const version = pkg.version;
9
10
  const thunderClient = new ThunderClient();
@@ -14,8 +15,10 @@ const server = new Server({
14
15
  }, {
15
16
  capabilities: {
16
17
  tools: {},
18
+ resources: {},
17
19
  },
18
20
  });
21
+ registerResources(server);
19
22
  server.setRequestHandler(ListToolsRequestSchema, async () => {
20
23
  return {
21
24
  tools
@@ -0,0 +1,3 @@
1
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
2
+ export declare function registerResources(server: Server): void;
3
+ //# sourceMappingURL=resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAgLnE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,QAsB/C"}
@@ -0,0 +1,191 @@
1
+ import { ListResourcesRequestSchema, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
2
+ const TC_DOCS = `# Thunder Client — Overview and Guidelines
3
+
4
+ ## What is Thunder Client?
5
+
6
+ Thunder Client is a lightweight REST API client for VS Code. It supports HTTP requests,
7
+ collections, environments, scripting, and test assertions — all stored as local JSON files
8
+ in the project's thunder-tests folder.
9
+
10
+ ## Working with Thunder Client via MCP
11
+
12
+ All read and write operations must go through the provided MCP tools. Do not read, write,
13
+ or edit thunder-tests files or any Thunder Client data files directly. If an operation is
14
+ not supported by the available tools, inform the user and direct them to the Thunder Client UI.
15
+
16
+ ## Tool Overview
17
+
18
+ | Tool | Purpose |
19
+ |---|---|
20
+ | debugInfo | Verify project setup, CLI version, collections, and environments |
21
+ | listCollections | Browse collections, folders, and requests |
22
+ | getDetails | Retrieve full details of any item by ID |
23
+ | listEnvironments | List environment names and active status |
24
+ | createCollection | Create a new collection, optionally with a folder |
25
+ | createFolder | Add a folder to a collection |
26
+ | createRequest | Import a request from a curl command |
27
+ | updateRequest | Update name, URL, method, headers, body, auth, or tests |
28
+ | updateCollectionSettings | Set collection or folder options, baseUrl, or rename |
29
+ | runRequest | Execute a single request |
30
+ | runCollection | Run a collection or folder |
31
+ | deleteRequest | Delete a request from a collection or the Activity tab |
32
+
33
+ ## URL and baseUrl Convention
34
+
35
+ Set baseUrl on the collection using updateCollectionSettings, then use only the path in request URLs.
36
+ Thunder Client prepends baseUrl automatically at runtime.
37
+
38
+ Correct: url: "/users/{{userId}}"
39
+ Incorrect: url: "https://api.example.com/users/{{userId}}"
40
+ Incorrect: url: "{{baseUrl}}/users/{{userId}}"
41
+
42
+ After setting baseUrl, inform the user:
43
+ "I have set the base URL to 'https://api.example.com' in the collection settings."
44
+
45
+ ## Token Flow Pattern
46
+
47
+ Step 1 — Create a login request with a postReq script to capture the token:
48
+ tc.setVar('accessToken', tc.response.json.token)
49
+ Inform the user: "An active environment is required for tc.setVar to persist the token."
50
+
51
+ Step 2 — Run the login request via runRequest.
52
+ The token is saved to the active environment as 'accessToken'.
53
+
54
+ Step 3 — Reference the token in subsequent requests:
55
+ auth: { type: "bearer", bearer: "{{accessToken}}" }
56
+
57
+ ## Scripting API Reference
58
+
59
+ Full reference: https://docs.thunderclient.com/scripting
60
+
61
+ **Variables**
62
+ tc.setVar(name, value, scope?) — Save a value; scope: 'local' | 'global' | 'request' (default: active env)
63
+ tc.getVar(name) — Read a value from the active environment
64
+ tc.replaceVars(text) — Resolve {{varName}} placeholders in a string
65
+
66
+ **Request object** (preReq and postReq — read/modify before send)
67
+ tc.request.url — Request URL string
68
+ tc.request.method — HTTP method
69
+ tc.request.setHeader(name, val) — Set a request header
70
+ tc.request.getHeader(name) — Get a request header value
71
+ tc.request.setBody(body, type?) — Set the request body
72
+ tc.request.url.getParam(name) — Get a query parameter value
73
+ tc.request.url.setParam(name, v) — Set a query parameter value
74
+
75
+ **Response object** (postReq only)
76
+ tc.response.json — Parsed JSON body
77
+ tc.response.text — Raw body string
78
+ tc.response.status — HTTP status code (number)
79
+ tc.response.time — Response time in ms
80
+ tc.response.size — Response size in bytes
81
+ tc.response.contentType — Content-Type header value
82
+ tc.response.headers — Response headers object
83
+ tc.response.cookies — Response cookies
84
+ tc.response.getHeader(name) — Get a specific response header
85
+ tc.response.getBinary() — Get response as binary
86
+
87
+ **Assertions** (postReq)
88
+ tc.test(name, boolExpr) — Write a named test assertion
89
+ expect / assert — Chai assertion globals
90
+
91
+ **Info** (read-only, both)
92
+ tc.info.environmentName, tc.info.requestName, tc.info.collectionName
93
+ tc.info.folderName, tc.info.currentIteration, tc.info.totalIterations
94
+
95
+ **Control / Utilities**
96
+ tc.delay(ms) — Pause execution
97
+ tc.runRequest(reqId) — Run another request by ID
98
+ tc.retryRequest() — Retry the current request
99
+ tc.skipRequest(reqId) — Skip a request in a collection run
100
+ tc.getCookies(url?) — Get cookies
101
+ tc.setCookie(url, name, value) — Set a cookie
102
+ tc.readFile(path, encoding?) — Read a file
103
+ tc.loadModule(name) — Load a built-in npm module
104
+
105
+ **Built-in modules** (via tc.loadModule)
106
+ crypto-js, axios, uuid, chai, ajv, papaparse, fast-xml-parser, tough-cookie
107
+
108
+ **Globals**
109
+ btoa(str) / atob(str) — Base64 encode / decode
110
+
111
+ ## Official Documentation
112
+
113
+ - Getting Started: https://docs.thunderclient.com
114
+ - CLI Reference: https://docs.thunderclient.com/cli
115
+ - Scripting API: https://docs.thunderclient.com/scripting
116
+ - Environments: https://docs.thunderclient.com/environments
117
+ - Tests: https://docs.thunderclient.com/tests
118
+ - Auth: https://docs.thunderclient.com/auth
119
+ `;
120
+ const TC_ENV_GUIDE = `# Thunder Client — Environments and Variables
121
+
122
+ ## Environment Files
123
+
124
+ Thunder Client environment files may contain sensitive values such as tokens, passwords,
125
+ and API keys. The MCP server never reads or writes environment files. Only variable name
126
+ placeholders in the form {{varName}} are used in requests — the user manages actual values
127
+ in the Thunder Client UI.
128
+
129
+ ## Using Variables in Requests
130
+
131
+ Use {{varName}} syntax wherever a dynamic value is needed — in URLs, headers, body, or auth fields.
132
+ Thunder Client substitutes the value from the active environment at runtime.
133
+
134
+ Whenever you set a {{varName}} placeholder, inform the user which variable needs to be defined:
135
+ "I have used {{accessToken}} in this request. Please add 'accessToken' to your active
136
+ Thunder Client environment."
137
+
138
+ ## How tc.setVar Works
139
+
140
+ tc.setVar('accessToken', tc.response.json.token) saves a value to the active environment
141
+ after a request runs. The variable persists and can be referenced as {{accessToken}} in
142
+ subsequent requests. An active environment must exist for tc.setVar to have a target.
143
+
144
+ ## Setting Up an Environment (guide for users)
145
+
146
+ 1. Open Thunder Client → Environments panel
147
+ 2. Click "New Environment" or select an existing one
148
+ 3. Click the star icon to mark it as the active environment
149
+ 4. Add the required variable name (the value can be empty initially)
150
+ 5. Run the login or token request — the postReq script will populate the value automatically
151
+ 6. {{varName}} will now resolve in all subsequent requests
152
+
153
+ ## Unsupported Operations
154
+
155
+ If an operation is not supported by the available MCP tools, inform the user clearly and
156
+ direct them to perform it in the Thunder Client UI. Do not attempt to work around tool
157
+ limitations by editing files directly.
158
+ `;
159
+ const resources = [
160
+ {
161
+ uri: "tc://docs",
162
+ name: "Thunder Client Documentation",
163
+ description: "Thunder Client overview, tool reference, URL conventions, token flow pattern, and scripting API quick reference.",
164
+ mimeType: "text/markdown",
165
+ },
166
+ {
167
+ uri: "tc://env-guide",
168
+ name: "Environment Variables Guide",
169
+ description: "How to handle environment variables, tokens, and secrets in Thunder Client. Covers {{varName}} usage, tc.setVar behaviour, and user setup steps.",
170
+ mimeType: "text/markdown",
171
+ },
172
+ ];
173
+ export function registerResources(server) {
174
+ server.setRequestHandler(ListResourcesRequestSchema, async () => ({
175
+ resources,
176
+ }));
177
+ server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
178
+ const { uri } = request.params;
179
+ if (uri === "tc://docs") {
180
+ return {
181
+ contents: [{ uri, mimeType: "text/markdown", text: TC_DOCS }],
182
+ };
183
+ }
184
+ if (uri === "tc://env-guide") {
185
+ return {
186
+ contents: [{ uri, mimeType: "text/markdown", text: TC_ENV_GUIDE }],
187
+ };
188
+ }
189
+ throw new Error(`Resource not found: ${uri}`);
190
+ });
191
+ }
@@ -1,29 +1,209 @@
1
1
  export declare class ThunderClient {
2
- private validateProjectDir;
2
+ private checkProjectDir;
3
3
  private execCommand;
4
- runHelp(projectDir: string): Promise<{
4
+ private mcpCommand;
5
+ private mcpCmd;
6
+ getList(projectDir: string, includeActivity?: boolean): Promise<{
5
7
  success: boolean;
6
8
  error?: string;
7
- projectDir?: string;
8
- version: string;
9
+ result?: any[];
10
+ summary?: {
11
+ colId: string;
12
+ name: string;
13
+ folders: number;
14
+ requests: number;
15
+ }[];
16
+ total?: number;
17
+ collections?: number;
18
+ folders?: number;
19
+ requests?: number;
20
+ activityRequests?: number;
9
21
  }>;
10
- runDebug(projectDir: string): Promise<{
22
+ getListById(id: string, projectDir: string): Promise<{
11
23
  success: boolean;
12
24
  error?: string;
13
- projectDir?: string;
14
- version: string;
25
+ result?: any;
26
+ outline?: string;
15
27
  }>;
16
- runCurl({ curlInput, name, collection, folder, projectDir, }: {
28
+ private buildOutline;
29
+ deleteRequest(reqId: string, projectDir: string): Promise<{
30
+ success: boolean;
31
+ error?: string;
32
+ deleted?: {
33
+ reqId: string;
34
+ reqName: string;
35
+ method: string;
36
+ url: string;
37
+ };
38
+ }>;
39
+ editRequest({ reqId, projectDir, name, url, method, headers, params, body, auth, tests, preReq, postReq, docs, }: {
40
+ reqId: string;
41
+ projectDir: string;
42
+ name?: string;
43
+ url?: string;
44
+ method?: string;
45
+ headers?: {
46
+ name: string;
47
+ value: string;
48
+ isDisabled?: boolean;
49
+ }[];
50
+ docs?: string[];
51
+ params?: {
52
+ name: string;
53
+ value: string;
54
+ isPath?: boolean;
55
+ isDisabled?: boolean;
56
+ }[];
57
+ body?: {
58
+ type: string;
59
+ raw?: string;
60
+ form?: {
61
+ name: string;
62
+ value: string;
63
+ }[];
64
+ };
65
+ auth?: Record<string, any>;
66
+ tests?: Record<string, any>[];
67
+ preReq?: {
68
+ inlineScripts?: string[];
69
+ };
70
+ postReq?: {
71
+ inlineScripts?: string[];
72
+ };
73
+ }): Promise<{
74
+ success: boolean;
75
+ error?: string;
76
+ reqId?: string;
77
+ updated?: string[];
78
+ }>;
79
+ createFolder({ projectDir, collectionName, folderName, parentFolderName, }: {
80
+ projectDir: string;
81
+ collectionName: string;
82
+ folderName: string;
83
+ parentFolderName?: string;
84
+ }): Promise<{
85
+ success: boolean;
86
+ error?: string;
87
+ folderId?: string;
88
+ folderName?: string;
89
+ collectionName?: string;
90
+ path?: string;
91
+ }>;
92
+ createCollection({ projectDir, collectionName, }: {
93
+ projectDir: string;
94
+ collectionName: string;
95
+ }): Promise<{
96
+ success: boolean;
97
+ error?: string;
98
+ colId?: string;
99
+ collectionName?: string;
100
+ }>;
101
+ setSettings({ projectDir, collectionName, folderName, newName, createIfNotExists, settings, }: {
102
+ projectDir: string;
103
+ collectionName: string;
104
+ folderName?: string;
105
+ newName?: string;
106
+ createIfNotExists?: boolean;
107
+ settings?: {
108
+ auth?: Record<string, any>;
109
+ headers?: {
110
+ name: string;
111
+ value: string;
112
+ isDisabled?: boolean;
113
+ }[];
114
+ tests?: Record<string, any>[];
115
+ envId?: string;
116
+ docs?: string[];
117
+ options?: {
118
+ baseUrl?: string;
119
+ };
120
+ preReq?: {
121
+ inlineScripts?: string[];
122
+ };
123
+ postReq?: {
124
+ inlineScripts?: string[];
125
+ };
126
+ runOptions?: {
127
+ iterations?: number;
128
+ delay?: number;
129
+ dataFilePath?: string;
130
+ stopOnFail?: boolean;
131
+ concurrent?: number;
132
+ runType?: string;
133
+ vusers?: number;
134
+ duration?: number;
135
+ perfType?: string;
136
+ };
137
+ };
138
+ }): Promise<{
139
+ success: boolean;
140
+ error?: string;
141
+ target?: string;
142
+ renamed?: boolean;
143
+ settingsApplied?: string[];
144
+ }>;
145
+ runCollection({ projectDir, collectionName, folderName, env, stopOnFail, iterations, delay, concurrent, report, }: {
146
+ projectDir: string;
147
+ collectionName: string;
148
+ folderName?: string;
149
+ env?: string;
150
+ stopOnFail?: boolean;
151
+ iterations?: number;
152
+ delay?: number;
153
+ concurrent?: number;
154
+ report?: string[];
155
+ }): Promise<{
156
+ success: boolean;
157
+ error?: string;
158
+ report?: any;
159
+ envUsed?: string;
160
+ summary?: any;
161
+ }>;
162
+ runDebug(projectDir: string): Promise<any>;
163
+ listEnvironments(projectDir: string): Promise<{
164
+ success: boolean;
165
+ error?: string;
166
+ environments?: {
167
+ name: string;
168
+ active: boolean;
169
+ }[];
170
+ total?: number;
171
+ activeEnv?: string;
172
+ }>;
173
+ runRequest({ nameOrId, projectDir, env, }: {
174
+ nameOrId: string;
175
+ projectDir: string;
176
+ env?: string;
177
+ }): Promise<{
178
+ success: boolean;
179
+ error?: string;
180
+ result?: string;
181
+ envUsed?: string;
182
+ }>;
183
+ createRequest({ curlInput, name, collection, folder, projectDir, auth, tests, preReq, postReq, docs, }: {
17
184
  curlInput: string;
18
185
  name?: string;
19
186
  collection?: string;
20
187
  folder?: string;
21
188
  projectDir: string;
189
+ auth?: Record<string, any>;
190
+ tests?: Record<string, any>[];
191
+ preReq?: {
192
+ inlineScripts?: string[];
193
+ };
194
+ postReq?: {
195
+ inlineScripts?: string[];
196
+ };
197
+ docs?: string[];
22
198
  }): Promise<{
23
199
  success: boolean;
24
200
  error?: string;
25
- projectDir?: string;
26
- version: string;
201
+ reqName?: string;
202
+ savedTo?: string;
203
+ reqId?: string;
204
+ limitReached?: boolean;
205
+ limit?: any;
206
+ message?: string;
27
207
  }>;
28
208
  }
29
209
  //# sourceMappingURL=thunder-client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"thunder-client.d.ts","sourceRoot":"","sources":["../src/thunder-client.ts"],"names":[],"mappings":"AAqBA,qBAAa,aAAa;IACtB,OAAO,CAAC,kBAAkB;YAUZ,WAAW;IAqBnB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAQhH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAQjH,OAAO,CAAC,EACV,SAAS,EACT,IAAI,EACJ,UAAU,EACV,MAAM,EACN,UAAU,GACb,EAAE;QACC,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACtB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CA4B1F"}
1
+ {"version":3,"file":"thunder-client.d.ts","sourceRoot":"","sources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