@toolsdk.ai/registry 1.0.146 → 1.0.148
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
|
@@ -45,7 +45,12 @@
|
|
|
45
45
|
- ➕ I want to **submit my MCP Server** → [Contribution Guide](#contribute-your-mcp-server)
|
|
46
46
|
|
|
47
47
|
> [!IMPORTANT]
|
|
48
|
-
> **
|
|
48
|
+
> **Pro Tip**: If a server is marked as `validated: true`, you can use it instantly with **Vercel AI SDK**:
|
|
49
|
+
>
|
|
50
|
+
> ```ts
|
|
51
|
+
> const tool = await toolSDK.package('<packageName>', { ...env }).getAISDKTool('<toolKey>');
|
|
52
|
+
> ```
|
|
53
|
+
> **Want validation?** Ask AI: *"Analyze the `make build` target in the Makefile and the scripts it invokes, and determine how an MCP server gets marked as `validated: true`."*
|
|
49
54
|
|
|
50
55
|
## Getting Started
|
|
51
56
|
|
|
@@ -63,8 +68,7 @@ Start the registry immediately with default settings:
|
|
|
63
68
|
docker compose up -d
|
|
64
69
|
```
|
|
65
70
|
|
|
66
|
-
|
|
67
|
-
> **Did this save you time?** Give us a [**Star on GitHub**](https://github.com/toolsdk-ai/toolsdk-mcp-registry) — it helps others discover this registry!
|
|
71
|
+
*Did this save you time? Give us a [**Star on GitHub**](https://github.com/toolsdk-ai/toolsdk-mcp-registry) — it helps others discover this registry!*
|
|
68
72
|
|
|
69
73
|
**Configuration:**
|
|
70
74
|
- Set `MCP_SANDBOX_PROVIDER=LOCAL` in `.env` file if you want to disable the sandbox (not recommended for production).
|
|
@@ -243,9 +247,7 @@ Template: `const tool = await toolSDK.package('<packageName>', { ...env }).getAI
|
|
|
243
247
|
import { ToolSDKApiClient } from 'toolsdk/api';
|
|
244
248
|
|
|
245
249
|
const toolSDK = new ToolSDKApiClient({ apiKey: process.env.TOOLSDK_AI_API_KEY });
|
|
246
|
-
|
|
247
250
|
const searchMCP = await toolSDK.package('@toolsdk.ai/tavily-mcp', { TAVILY_API_KEY: process.env.TAVILY_API_KEY });
|
|
248
|
-
|
|
249
251
|
const searchTool = await searchMCP.getAISDKTool('tavily-search');
|
|
250
252
|
|
|
251
253
|
// const completion = await generateText({
|
|
@@ -53,6 +53,13 @@ async function checkDependencies(dependencies) {
|
|
|
53
53
|
export async function isValidNpmPackage(packageName) {
|
|
54
54
|
var _a, _b, _c, _d;
|
|
55
55
|
try {
|
|
56
|
+
// Skip npm registry validation for remote MCP servers which use
|
|
57
|
+
// packageName values like "@toolsdk-remote/xxx" that are not
|
|
58
|
+
// actual npm packages.
|
|
59
|
+
if (packageName.startsWith("@toolsdk-remote/")) {
|
|
60
|
+
console.log(`Skipping npm validation for remote MCP: ${packageName}`);
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
56
63
|
console.log("Checking package:", packageName);
|
|
57
64
|
const response = await axios.get(`https://registry.npmjs.org/${packageName}`, {
|
|
58
65
|
timeout: 5000,
|