@smithery/sdk 0.0.10 → 0.0.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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/registry.d.ts +25 -1
- package/dist/registry.js +17 -1
- package/dist/server/builder.d.ts +35 -0
- package/dist/server/builder.js +204 -0
- package/dist/server/types.d.ts +36 -0
- package/dist/server/types.js +1 -0
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
|
3
3
|
import type { RequestOptions } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
4
4
|
import type { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
5
5
|
import { type CallToolRequest, CallToolResultSchema, type CompatibilityCallToolResultSchema, type ListToolsRequest, type Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
6
|
-
export { createTransport, createStdioConfig, fetchRegistryEntry } from "./registry.js";
|
|
6
|
+
export { createRegistryTransport as createTransport, createStdioConfig, fetchRegistryEntry, } from "./registry.js";
|
|
7
7
|
export { OpenAIChatAdapter } from "./integrations/llm/openai.js";
|
|
8
8
|
export { AnthropicChatAdapter } from "./integrations/llm/anthropic.js";
|
|
9
9
|
interface ClientInfo {
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
|
2
2
|
import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
3
3
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
4
4
|
import { CallToolResultSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
5
|
-
export { createTransport, createStdioConfig, fetchRegistryEntry } from "./registry.js";
|
|
5
|
+
export { createRegistryTransport as createTransport, createStdioConfig, fetchRegistryEntry, } from "./registry.js";
|
|
6
6
|
export { OpenAIChatAdapter } from "./integrations/llm/openai.js";
|
|
7
7
|
export { AnthropicChatAdapter } from "./integrations/llm/anthropic.js";
|
|
8
8
|
/**
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
1
2
|
import type { StdioServerParameters } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
2
3
|
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
3
4
|
import { type JSONSchema, type RegistryServer, type StdioConnection } from "./registry-types.js";
|
|
4
5
|
export declare function createStdioConfig(pkg: RegistryServer, variables: JSONSchema): StdioConnection;
|
|
5
6
|
export declare function fetchRegistryEntry(id: string): Promise<RegistryServer>;
|
|
6
|
-
export declare function
|
|
7
|
+
export declare function createRegistryTransport(id: string, variables?: JSONSchema, options?: Partial<StdioServerParameters>): Promise<StdioClientTransport>;
|
|
8
|
+
/**
|
|
9
|
+
* A short cut to create a client that connects to a registry entry and is ready to use
|
|
10
|
+
* @param id ID of the registry entry
|
|
11
|
+
*/
|
|
12
|
+
export declare function createRegistryClient(id: string, variables?: JSONSchema, options?: Partial<StdioServerParameters>): Promise<Client<{
|
|
13
|
+
method: string;
|
|
14
|
+
params?: import("zod").objectOutputType<{
|
|
15
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
16
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
17
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
18
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
19
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
20
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
21
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
22
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
method: string;
|
|
25
|
+
params?: import("zod").objectOutputType<{
|
|
26
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
27
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
28
|
+
}, import("zod").objectOutputType<{
|
|
29
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
30
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
package/dist/registry.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
1
2
|
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
2
3
|
import { REGISTRY_URL } from "./config.js";
|
|
3
4
|
import { isStdio, } from "./registry-types.js";
|
|
@@ -36,12 +37,27 @@ export async function fetchRegistryEntry(id) {
|
|
|
36
37
|
}
|
|
37
38
|
return await response.json();
|
|
38
39
|
}
|
|
39
|
-
export async function
|
|
40
|
+
export async function createRegistryTransport(id, variables = {}, options = {}) {
|
|
40
41
|
const pkg = await fetchRegistryEntry(id);
|
|
41
42
|
const config = createStdioConfig(pkg, variables);
|
|
42
43
|
const transport = new StdioClientTransport({ ...config, ...options });
|
|
43
44
|
return transport;
|
|
44
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* A short cut to create a client that connects to a registry entry and is ready to use
|
|
48
|
+
* @param id ID of the registry entry
|
|
49
|
+
*/
|
|
50
|
+
export async function createRegistryClient(id, variables = {}, options = {}) {
|
|
51
|
+
const transport = await createRegistryTransport(id, variables, options);
|
|
52
|
+
const client = new Client({
|
|
53
|
+
name: "mcp-client",
|
|
54
|
+
version: "1.0.0",
|
|
55
|
+
}, {
|
|
56
|
+
capabilities: {},
|
|
57
|
+
});
|
|
58
|
+
await client.connect(transport);
|
|
59
|
+
return client;
|
|
60
|
+
}
|
|
45
61
|
// Example usage:
|
|
46
62
|
/*
|
|
47
63
|
const transport = await createTransport("brave-search", {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
2
|
+
import type { Prompt, PromptArgument, Resource, Tool, ToolParameters } from "./types.js";
|
|
3
|
+
export declare class ServerBuilder {
|
|
4
|
+
#private;
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
constructor(name?: string, version?: string);
|
|
8
|
+
private setupHandlers;
|
|
9
|
+
private setupErrorHandling;
|
|
10
|
+
private setupToolHandlers;
|
|
11
|
+
private setupResourceHandlers;
|
|
12
|
+
private setupPromptHandlers;
|
|
13
|
+
addTool<Params extends ToolParameters>(tool: Tool<Params>): this;
|
|
14
|
+
addResource(resource: Resource): this;
|
|
15
|
+
addPrompt<const Args extends PromptArgument[]>(prompt: Prompt<Args>): this;
|
|
16
|
+
build(): Server<{
|
|
17
|
+
method: string;
|
|
18
|
+
params?: import("zod").objectOutputType<{
|
|
19
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
20
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
21
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
22
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
23
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
24
|
+
progressToken: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
25
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
26
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
method: string;
|
|
29
|
+
params?: import("zod").objectOutputType<{
|
|
30
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
31
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
32
|
+
}, import("zod").objectOutputType<{
|
|
33
|
+
_meta: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
34
|
+
}, import("zod").ZodTypeAny, "passthrough">>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _ServerBuilder_tools, _ServerBuilder_resources, _ServerBuilder_prompts;
|
|
13
|
+
// Based on https://github.com/wong2/litemcp/
|
|
14
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
15
|
+
import { CallToolRequestSchema, ErrorCode, GetPromptRequestSchema, ListPromptsRequestSchema, ListResourcesRequestSchema, ListToolsRequestSchema, McpError, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
16
|
+
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
17
|
+
export class ServerBuilder {
|
|
18
|
+
constructor(name = "mcp-server", version = "1.0.0") {
|
|
19
|
+
this.name = name;
|
|
20
|
+
this.version = version;
|
|
21
|
+
_ServerBuilder_tools.set(this, void 0);
|
|
22
|
+
_ServerBuilder_resources.set(this, void 0);
|
|
23
|
+
_ServerBuilder_prompts.set(this, void 0);
|
|
24
|
+
__classPrivateFieldSet(this, _ServerBuilder_tools, [], "f");
|
|
25
|
+
__classPrivateFieldSet(this, _ServerBuilder_resources, [], "f");
|
|
26
|
+
__classPrivateFieldSet(this, _ServerBuilder_prompts, [], "f");
|
|
27
|
+
}
|
|
28
|
+
setupHandlers(server) {
|
|
29
|
+
this.setupErrorHandling(server);
|
|
30
|
+
if (__classPrivateFieldGet(this, _ServerBuilder_tools, "f").length) {
|
|
31
|
+
this.setupToolHandlers(server);
|
|
32
|
+
}
|
|
33
|
+
if (__classPrivateFieldGet(this, _ServerBuilder_resources, "f").length) {
|
|
34
|
+
this.setupResourceHandlers(server);
|
|
35
|
+
}
|
|
36
|
+
if (__classPrivateFieldGet(this, _ServerBuilder_prompts, "f").length) {
|
|
37
|
+
this.setupPromptHandlers(server);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
setupErrorHandling(server) {
|
|
41
|
+
server.onerror = (error) => {
|
|
42
|
+
console.error("[MCP Error]", error);
|
|
43
|
+
};
|
|
44
|
+
process.on("SIGINT", async () => {
|
|
45
|
+
await server.close();
|
|
46
|
+
process.exit(0);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
setupToolHandlers(server) {
|
|
50
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
51
|
+
return {
|
|
52
|
+
tools: __classPrivateFieldGet(this, _ServerBuilder_tools, "f").map((tool) => {
|
|
53
|
+
return {
|
|
54
|
+
name: tool.name,
|
|
55
|
+
description: tool.description,
|
|
56
|
+
inputSchema: tool.parameters
|
|
57
|
+
? zodToJsonSchema(tool.parameters)
|
|
58
|
+
: undefined,
|
|
59
|
+
};
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
64
|
+
const tool = __classPrivateFieldGet(this, _ServerBuilder_tools, "f").find((tool) => tool.name === request.params.name);
|
|
65
|
+
if (!tool) {
|
|
66
|
+
throw new McpError(ErrorCode.MethodNotFound, `Unknown tool: ${request.params.name}`);
|
|
67
|
+
}
|
|
68
|
+
let args = undefined;
|
|
69
|
+
if (tool.parameters) {
|
|
70
|
+
const parsed = tool.parameters.safeParse(request.params.arguments);
|
|
71
|
+
if (!parsed.success) {
|
|
72
|
+
throw new McpError(ErrorCode.InvalidRequest, `Invalid ${request.params.name} arguments`);
|
|
73
|
+
}
|
|
74
|
+
args = parsed.data;
|
|
75
|
+
}
|
|
76
|
+
let result;
|
|
77
|
+
try {
|
|
78
|
+
result = await tool.execute(args);
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
return {
|
|
82
|
+
content: [{ type: "text", text: `Error: ${error}` }],
|
|
83
|
+
isError: true,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
if (typeof result === "string") {
|
|
87
|
+
return {
|
|
88
|
+
content: [{ type: "text", text: result }],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
setupResourceHandlers(server) {
|
|
97
|
+
server.setRequestHandler(ListResourcesRequestSchema, async () => {
|
|
98
|
+
return {
|
|
99
|
+
resources: __classPrivateFieldGet(this, _ServerBuilder_resources, "f").map((resource) => {
|
|
100
|
+
return {
|
|
101
|
+
uri: resource.uri,
|
|
102
|
+
name: resource.name,
|
|
103
|
+
mimeType: resource.mimeType,
|
|
104
|
+
};
|
|
105
|
+
}),
|
|
106
|
+
};
|
|
107
|
+
});
|
|
108
|
+
server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
|
|
109
|
+
const resource = __classPrivateFieldGet(this, _ServerBuilder_resources, "f").find((resource) => resource.uri === request.params.uri);
|
|
110
|
+
if (!resource) {
|
|
111
|
+
throw new McpError(ErrorCode.MethodNotFound, `Unknown resource: ${request.params.uri}`);
|
|
112
|
+
}
|
|
113
|
+
let result;
|
|
114
|
+
try {
|
|
115
|
+
result = await resource.load();
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
throw new McpError(ErrorCode.InternalError, `Error reading resource: ${error}`, {
|
|
119
|
+
uri: resource.uri,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
contents: [
|
|
124
|
+
{
|
|
125
|
+
uri: resource.uri,
|
|
126
|
+
mimeType: resource.mimeType,
|
|
127
|
+
...result,
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
setupPromptHandlers(server) {
|
|
134
|
+
server.setRequestHandler(ListPromptsRequestSchema, async () => {
|
|
135
|
+
return {
|
|
136
|
+
prompts: __classPrivateFieldGet(this, _ServerBuilder_prompts, "f").map((prompt) => {
|
|
137
|
+
return {
|
|
138
|
+
name: prompt.name,
|
|
139
|
+
description: prompt.description,
|
|
140
|
+
arguments: prompt.arguments,
|
|
141
|
+
};
|
|
142
|
+
}),
|
|
143
|
+
};
|
|
144
|
+
});
|
|
145
|
+
server.setRequestHandler(GetPromptRequestSchema, async (request) => {
|
|
146
|
+
const prompt = __classPrivateFieldGet(this, _ServerBuilder_prompts, "f").find((prompt) => prompt.name === request.params.name);
|
|
147
|
+
if (!prompt) {
|
|
148
|
+
throw new McpError(ErrorCode.MethodNotFound, `Unknown prompt: ${request.params.name}`);
|
|
149
|
+
}
|
|
150
|
+
const args = request.params.arguments;
|
|
151
|
+
if (prompt.arguments) {
|
|
152
|
+
for (const arg of prompt.arguments) {
|
|
153
|
+
if (arg.required && !(args && arg.name in args)) {
|
|
154
|
+
throw new McpError(ErrorCode.InvalidRequest, `Missing required argument: ${arg.name}`);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
let result;
|
|
159
|
+
try {
|
|
160
|
+
result = await prompt.load(args);
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
throw new McpError(ErrorCode.InternalError, `Error loading prompt: ${error}`);
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
description: prompt.description,
|
|
167
|
+
messages: [
|
|
168
|
+
{
|
|
169
|
+
role: "user",
|
|
170
|
+
content: { type: "text", text: result },
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
};
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
addTool(tool) {
|
|
177
|
+
__classPrivateFieldGet(this, _ServerBuilder_tools, "f").push(tool);
|
|
178
|
+
return this;
|
|
179
|
+
}
|
|
180
|
+
addResource(resource) {
|
|
181
|
+
__classPrivateFieldGet(this, _ServerBuilder_resources, "f").push(resource);
|
|
182
|
+
return this;
|
|
183
|
+
}
|
|
184
|
+
addPrompt(prompt) {
|
|
185
|
+
__classPrivateFieldGet(this, _ServerBuilder_prompts, "f").push(prompt);
|
|
186
|
+
return this;
|
|
187
|
+
}
|
|
188
|
+
build() {
|
|
189
|
+
const capabilities = {};
|
|
190
|
+
if (__classPrivateFieldGet(this, _ServerBuilder_tools, "f").length) {
|
|
191
|
+
capabilities.tools = {};
|
|
192
|
+
}
|
|
193
|
+
if (__classPrivateFieldGet(this, _ServerBuilder_resources, "f").length) {
|
|
194
|
+
capabilities.resources = {};
|
|
195
|
+
}
|
|
196
|
+
if (__classPrivateFieldGet(this, _ServerBuilder_prompts, "f").length) {
|
|
197
|
+
capabilities.prompts = {};
|
|
198
|
+
}
|
|
199
|
+
const server = new Server({ name: this.name, version: this.version }, { capabilities });
|
|
200
|
+
this.setupHandlers(server);
|
|
201
|
+
return server;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
_ServerBuilder_tools = new WeakMap(), _ServerBuilder_resources = new WeakMap(), _ServerBuilder_prompts = new WeakMap();
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
export type ToolParameters = z.ZodTypeAny;
|
|
3
|
+
export interface Tool<Params extends ToolParameters = ToolParameters> {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
parameters?: Params;
|
|
7
|
+
execute: (args: z.infer<Params>) => Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
export interface Resource {
|
|
10
|
+
uri: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
mimeType?: string;
|
|
14
|
+
load: () => Promise<{
|
|
15
|
+
text: string;
|
|
16
|
+
} | {
|
|
17
|
+
blob: string;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export type PromptArgument = Readonly<{
|
|
21
|
+
name: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
required?: boolean;
|
|
24
|
+
}>;
|
|
25
|
+
type ArgumentsToObject<T extends PromptArgument[]> = {
|
|
26
|
+
[K in T[number]["name"]]: Extract<T[number], {
|
|
27
|
+
name: K;
|
|
28
|
+
}>["required"] extends true ? string : string | undefined;
|
|
29
|
+
};
|
|
30
|
+
export interface Prompt<Arguments extends PromptArgument[] = PromptArgument[], Args = ArgumentsToObject<Arguments>> {
|
|
31
|
+
name: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
arguments?: Arguments;
|
|
34
|
+
load: (args: Args) => Promise<string>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithery/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Connect language models to Model Context Protocols",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
"build": "tsc",
|
|
17
17
|
"build:all": "npm run build -ws --include-workspace-root",
|
|
18
18
|
"watch": "tsc --watch",
|
|
19
|
-
"
|
|
20
|
-
"format": "npx @biomejs/biome format --write",
|
|
19
|
+
"check": "npx @biomejs/biome check --write --unsafe",
|
|
21
20
|
"bump": "npm version patch -ws --include-workspace-root",
|
|
22
21
|
"link": "npm link -ws --include-workspace-root"
|
|
23
22
|
},
|