From 36176406fdc207ceb26a9308b0c94d49eb4939df Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Mon, 23 Jun 2025 19:39:24 +0530 Subject: [PATCH] chore: rename org to toolbox-sdk --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- CHANGELOG.md | 2 +- README.md | 4 +-- packages/toolbox-core/DEVELOPER.md | 10 +++---- packages/toolbox-core/README.md | 26 +++++++++---------- packages/toolbox-core/package-lock.json | 4 +-- packages/toolbox-core/package.json | 2 +- .../src/toolbox_core/authMethods.ts | 4 +-- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index fb27874..8e1435b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -73,7 +73,7 @@ body: value: | 1. Client: . 2. Version: (`npm list `)? e.g. - - @mcp-toolbox/core version 0.1.0 + - @toolbox-sdk/core version 0.1.0 3. Example: If possible, please include your code of configuration: ```js diff --git a/CHANGELOG.md b/CHANGELOG.md index bfefed2..c707af7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,4 +5,4 @@ Changelogs #### TODO: Add Toolbox-core version image | Package | Version | | -------- | ------- | -| [@mcp-toolbox/core](https://github.com/googleapis/mcp-toolbox-sdk-js/tree/main/packages/toolbox-core/CHANGELOG.md) | ![@mcp-toolbox/core version]() | +| [@toolbox-sdk/core](https://github.com/googleapis/mcp-toolbox-sdk-js/tree/main/packages/toolbox-core/CHANGELOG.md) | ![@toolbox-sdk/core version]() | diff --git a/README.md b/README.md index d6ef446..af53ddc 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ within your JS applications or AI orchestration frameworks. Choosing the right package depends on how you are building your application: -- [`@mcp-toolbox/core`](https://github.com/googleapis/mcp-toolbox-sdk-js/tree/main/packages/toolbox-core): +- [`@toolbox-sdk/core`](https://github.com/googleapis/mcp-toolbox-sdk-js/tree/main/packages/toolbox-core): This is a framework agnostic way to connect the tools to popular frameworks like Langchain, LlamaIndex and Genkit. @@ -76,7 +76,7 @@ To get started using Toolbox tools with an application, follow these general ste ```bash # For the core, framework-agnostic SDK - npm install @mcp-toolbox/core + npm install @toolbox-sdk/core ``` 3. **Use the SDK:** diff --git a/packages/toolbox-core/DEVELOPER.md b/packages/toolbox-core/DEVELOPER.md index fe7a3f3..842e3b0 100644 --- a/packages/toolbox-core/DEVELOPER.md +++ b/packages/toolbox-core/DEVELOPER.md @@ -1,7 +1,7 @@ # Development This guide provides instructions for setting up your development environment to -contribute to the `@mcp-toolbox/core` package, which is part of the +contribute to the `@toolbox-sdk/core` package, which is part of the `mcp-toolbox-sdk-js` monorepo. ## Prerequisites @@ -33,8 +33,8 @@ These steps will guide you through setting up the monorepo and this specific pac ``` 4. Local Testing - If you need to test changes in `@mcp-toolbox/core` against another local project - or another package that consumes `@mcp-toolbox/core`, you can use npm link + If you need to test changes in `@toolbox-sdk/core` against another local project + or another package that consumes `@toolbox-sdk/core`, you can use npm link * In packages/toolbox-core @@ -45,10 +45,10 @@ These steps will guide you through setting up the monorepo and this specific pac * In your consuming project ```bash - npm link @mcp-toolbox/core + npm link @toolbox-sdk/core ``` - This creates a symbolic link, allowing changes in `@mcp-toolbox/core` to be + This creates a symbolic link, allowing changes in `@toolbox-sdk/core` to be immediately reflected in the consuming project without reinstallation. Don't forget to npm unlink / yarn unlink when done! diff --git a/packages/toolbox-core/README.md b/packages/toolbox-core/README.md index 2f8d5e8..b8c4f14 100644 --- a/packages/toolbox-core/README.md +++ b/packages/toolbox-core/README.md @@ -65,7 +65,7 @@ compatibility with the modern JavaScript ecosystem. ## Installation ```bash -npm install @mcp-toolbox/core +npm install @toolbox-sdk/core ``` ## Quickstart @@ -74,7 +74,7 @@ Here's a minimal example to get you started. Ensure your Toolbox service is runn ```javascript -import { ToolboxClient } from '@mcp-toolbox/core'; +import { ToolboxClient } from '@toolbox-sdk/core'; const client = new ToolboxClient(URL); async function quickstart() { @@ -91,7 +91,7 @@ quickstart(); > [!NOTE] > This guide uses modern ES Module (`import`) syntax. If your project uses > CommonJS, you can import the library using require: `const { ToolboxClient } -> = require('@mcp-toolbox/core')`;. +> = require('@toolbox-sdk/core')`;. ## Usage @@ -99,7 +99,7 @@ Import and initialize a Toolbox client, pointing it to the URL of your running Toolbox service. ```javascript -import { ToolboxClient } from '@mcp-toolbox/core'; +import { ToolboxClient } from '@toolbox-sdk/core'; // Replace with the actual URL where your Toolbox service is running const URL = 'http://127.0.0.1:5000'; @@ -207,8 +207,8 @@ that fresh credentials or header values can be used. You can configure these dynamic headers as seen below: ```javascript -import { ToolboxClient } from '@mcp-toolbox/core'; -import {getGoogleIdToken} from '@mcp-toolbox/core/auth' +import { ToolboxClient } from '@toolbox-sdk/core'; +import {getGoogleIdToken} from '@toolbox-sdk/core/auth' const URL = 'http://127.0.0.1:5000'; const getGoogleIdTokenGetter = () => getGoogleIdToken(URL); @@ -237,8 +237,8 @@ For Toolbox servers hosted on Google Cloud (e.g., Cloud Run) and requiring 3. **Connect to the Toolbox Server** ```javascript - import { ToolboxClient } from '@mcp-toolbox/core'; - import {getGoogleIdToken} from '@mcp-toolbox/core/auth' + import { ToolboxClient } from '@toolbox-sdk/core'; + import {getGoogleIdToken} from '@toolbox-sdk/core/auth' const URL = 'http://127.0.0.1:5000'; const getGoogleIdTokenGetter = () => getGoogleIdToken(URL); @@ -355,7 +355,7 @@ const authTools = await toolbox.loadToolset({"myAuth": getAuthToken}) ### Complete Authentication Example ```javascript -import { ToolboxClient } from '@mcp-toolbox/core'; +import { ToolboxClient } from '@toolbox-sdk/core'; async function getAuthToken() { // ... Logic to retrieve ID token (e.g., from local storage, OAuth flow) @@ -399,7 +399,7 @@ specific tool instance. ```javascript -import { ToolboxClient } from '@mcp-toolbox/core'; +import { ToolboxClient } from '@toolbox-sdk/core'; const URL = 'http://127.0.0.1:5000'; let client = new ToolboxClient(URL); @@ -456,7 +456,7 @@ const dynamicBoundTool = tool.bindParam("param", getDynamicValue) [LangchainJS](https://js.langchain.com/docs/introduction/) ```javascript -import {ToolboxClient} from "@mcp-toolbox/core" +import {ToolboxClient} from "@toolbox-sdk/core" import { tool } from "@langchain/core/tools"; let client = ToolboxClient(URL) @@ -485,7 +485,7 @@ Agents](https://langchain-ai.github.io/langgraphjs/reference/functions/langgraph [LlamaindexTS](https://ts.llamaindex.ai/) ```javascript -import {ToolboxClient} from "@mcp-toolbox/core" +import {ToolboxClient} from "@toolbox-sdk/core" import { tool } from "llamaindex"; let client = ToolboxClient(URL) @@ -514,7 +514,7 @@ workflows](https://ts.llamaindex.ai/docs/llamaindex/modules/agents/agent_workflo [GenkitJS](https://genkit.dev/docs/get-started/#_top) ```javascript -import {ToolboxClient} from "@mcp-toolbox/core" +import {ToolboxClient} from "@toolbox-sdk/core" import { genkit, z } from 'genkit'; import { googleAI } from '@genkit-ai/googleai'; diff --git a/packages/toolbox-core/package-lock.json b/packages/toolbox-core/package-lock.json index ca39d5f..c2e4d90 100644 --- a/packages/toolbox-core/package-lock.json +++ b/packages/toolbox-core/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@mcp-toolbox/core", + "name": "@toolbox-sdk/core", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@mcp-toolbox/core", + "name": "@toolbox-sdk/core", "version": "0.1.0", "license": "Apache-2.0", "dependencies": { diff --git a/packages/toolbox-core/package.json b/packages/toolbox-core/package.json index 48a1250..080130c 100644 --- a/packages/toolbox-core/package.json +++ b/packages/toolbox-core/package.json @@ -1,5 +1,5 @@ { - "name": "@mcp-toolbox/core", + "name": "@toolbox-sdk/core", "version": "0.1.0", "type": "module", "description": "JavaScript Base SDK for interacting with the Toolbox service", diff --git a/packages/toolbox-core/src/toolbox_core/authMethods.ts b/packages/toolbox-core/src/toolbox_core/authMethods.ts index c7c3662..2c02f6b 100644 --- a/packages/toolbox-core/src/toolbox_core/authMethods.ts +++ b/packages/toolbox-core/src/toolbox_core/authMethods.ts @@ -17,8 +17,8 @@ This module provides functions to obtain Google ID tokens, formatted as "Bearer" for use in the "Authorization" header of HTTP requests. Example User Experience: -import { ToolboxClient } from '@toolbox/core'; -import { getGoogleIdToken } from '@toolbox/core/auth' +import { ToolboxClient } from '@toolbox-sdk/core'; +import { getGoogleIdToken } from '@toolbox-sdk/core/auth' const URL = 'http://some-url' const getGoogleIdTokenGetter = () => getGoogleIdToken(URL);