@corsair-dev/mcp 0.1.11 → 0.1.12
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/dist/index.js +15 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -180,7 +180,11 @@ var AnthropicProvider = class extends BaseProvider {
|
|
|
180
180
|
var ClaudeProvider = class {
|
|
181
181
|
name = "claude";
|
|
182
182
|
async build(options) {
|
|
183
|
-
const { tool } = await import(
|
|
183
|
+
const { tool } = await import(
|
|
184
|
+
/* webpackIgnore: true */
|
|
185
|
+
/* turbopackIgnore: true */
|
|
186
|
+
"@anthropic-ai/claude-agent-sdk"
|
|
187
|
+
);
|
|
184
188
|
return buildCorsairToolDefs(options).map(
|
|
185
189
|
(def) => tool(def.name, def.description, def.shape, def.handler)
|
|
186
190
|
);
|
|
@@ -192,7 +196,11 @@ import { z as z3 } from "zod";
|
|
|
192
196
|
var MastraProvider = class {
|
|
193
197
|
name = "mastra";
|
|
194
198
|
async build(options) {
|
|
195
|
-
const { createTool } = await import(
|
|
199
|
+
const { createTool } = await import(
|
|
200
|
+
/* webpackIgnore: true */
|
|
201
|
+
/* turbopackIgnore: true */
|
|
202
|
+
"@mastra/core/tools"
|
|
203
|
+
);
|
|
196
204
|
return buildCorsairToolDefs(options).map(
|
|
197
205
|
(def) => createTool({
|
|
198
206
|
id: def.name,
|
|
@@ -267,7 +275,11 @@ var OpenAIAgentsProvider = class {
|
|
|
267
275
|
|
|
268
276
|
// src/adapters/vercel-ai.ts
|
|
269
277
|
async function createVercelAiMcpClient(options) {
|
|
270
|
-
const { createMCPClient } = await import(
|
|
278
|
+
const { createMCPClient } = await import(
|
|
279
|
+
/* webpackIgnore: true */
|
|
280
|
+
/* turbopackIgnore: true */
|
|
281
|
+
"@ai-sdk/mcp"
|
|
282
|
+
);
|
|
271
283
|
const { url, headers } = options;
|
|
272
284
|
const client = await createMCPClient({
|
|
273
285
|
transport: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corsair-dev/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "MCP server and SDK adapters for Corsair — list operations, inspect schemas, run API calls",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"express": "^4.21.0",
|
|
22
22
|
"zod": "^3.25.0",
|
|
23
23
|
"zod-to-json-schema": "^3.25.0",
|
|
24
|
-
"corsair": "0.1.
|
|
24
|
+
"corsair": "0.1.38"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@ai-sdk/mcp": ">=0.0.1",
|