Skip to content

Commit 599242c

Browse files
authored
Merge branch 'main' into release-please--branches--main--components--core
2 parents 69ddb2f + f35e1f8 commit 599242c

File tree

7 files changed

+27
-25
lines changed

7 files changed

+27
-25
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ body:
7373
value: |
7474
1. Client: <name and link to the SDK are you using>.
7575
2. Version: <what exact version of the SDK are you using> (`npm list <package-name>`)? e.g.
76-
- @toolbox/core version 0.1.0
76+
- @mcp-toolbox/core version 0.1.0
7777
3. Example: If possible, please include your code of configuration:
7878
7979
```js

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Changelogs
55
#### TODO: Add Toolbox-core version image
66
| Package | Version |
77
| -------- | ------- |
8-
| [@toolbox/core](https://github.com/googleapis/mcp-toolbox-sdk-js/tree/main/packages/toolbox-core/CHANGELOG.md) | ![@toolbox/core version]() |
8+
| [@mcp-toolbox/core](https://github.com/googleapis/mcp-toolbox-sdk-js/tree/main/packages/toolbox-core/CHANGELOG.md) | ![@mcp-toolbox/core version]() |

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ within your JS applications or AI orchestration frameworks.
4747

4848
Choosing the right package depends on how you are building your application:
4949

50-
- [`@toolbox/core`](https://github.com/googleapis/mcp-toolbox-sdk-js/tree/main/packages/toolbox-core):
50+
- [`@mcp-toolbox/core`](https://github.com/googleapis/mcp-toolbox-sdk-js/tree/main/packages/toolbox-core):
5151
This is a framework agnostic way to connect the tools to popular frameworks
5252
like Langchain, LlamaIndex and Genkit.
5353

@@ -76,7 +76,7 @@ To get started using Toolbox tools with an application, follow these general ste
7676

7777
```bash
7878
# For the core, framework-agnostic SDK
79-
npm install @toolbox/core
79+
npm install @mcp-toolbox/core
8080
```
8181

8282
3. **Use the SDK:**

packages/toolbox-core/DEVELOPER.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Development
22

3-
This guide provides instructions for setting up your development environment to contribute to the `@toolbox/core` package, which is part of the `mcp-toolbox-sdk-js` monorepo.
3+
This guide provides instructions for setting up your development environment to
4+
contribute to the `@mcp-toolbox/core` package, which is part of the
5+
`mcp-toolbox-sdk-js` monorepo.
46

57
## Prerequisites
68

@@ -31,8 +33,8 @@ These steps will guide you through setting up the monorepo and this specific pac
3133
```
3234

3335
4. Local Testing
34-
If you need to test changes in `@toolbox/core` against another local project
35-
or another package that consumes `@toolbox/core`, you can use npm link
36+
If you need to test changes in `@mcp-toolbox/core` against another local project
37+
or another package that consumes `@mcp-toolbox/core`, you can use npm link
3638

3739
* In packages/toolbox-core
3840

@@ -43,10 +45,10 @@ These steps will guide you through setting up the monorepo and this specific pac
4345
* In your consuming project
4446

4547
```bash
46-
npm link @toolbox/core
48+
npm link @mcp-toolbox/core
4749
```
4850

49-
This creates a symbolic link, allowing changes in `@toolbox/core` to be
51+
This creates a symbolic link, allowing changes in `@mcp-toolbox/core` to be
5052
immediately reflected in the consuming project without reinstallation.
5153

5254
Don't forget to npm unlink / yarn unlink when done!

packages/toolbox-core/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ compatibility with the modern JavaScript ecosystem.
6565
## Installation
6666

6767
```bash
68-
npm install @toolbox/core
68+
npm install @mcp-toolbox/core
6969
```
7070

7171
## Quickstart
@@ -74,7 +74,7 @@ Here's a minimal example to get you started. Ensure your Toolbox service is runn
7474

7575
```javascript
7676

77-
import { ToolboxClient } from '@toolbox/core';
77+
import { ToolboxClient } from '@mcp-toolbox/core';
7878
const client = new ToolboxClient(URL);
7979

8080
async function quickstart() {
@@ -91,15 +91,15 @@ quickstart();
9191
> [!NOTE]
9292
> This guide uses modern ES Module (`import`) syntax. If your project uses
9393
> CommonJS, you can import the library using require: `const { ToolboxClient }
94-
> = require('@toolbox/core')`;.
94+
> = require('@mcp-toolbox/core')`;.
9595
9696
## Usage
9797

9898
Import and initialize a Toolbox client, pointing it to the URL of your running
9999
Toolbox service.
100100

101101
```javascript
102-
import { ToolboxClient } from '@toolbox/core';
102+
import { ToolboxClient } from '@mcp-toolbox/core';
103103

104104
// Replace with the actual URL where your Toolbox service is running
105105
const URL = 'http://127.0.0.1:5000';
@@ -207,8 +207,8 @@ that fresh credentials or header values can be used.
207207
You can configure these dynamic headers as seen below:
208208

209209
```javascript
210-
import { ToolboxClient } from '@toolbox/core';
211-
import {getGoogleIdToken} from '@toolbox/core/auth'
210+
import { ToolboxClient } from '@mcp-toolbox/core';
211+
import {getGoogleIdToken} from '@mcp-toolbox/core/auth'
212212

213213
const URL = 'http://127.0.0.1:5000';
214214
const getGoogleIdTokenGetter = () => getGoogleIdToken(URL);
@@ -237,8 +237,8 @@ For Toolbox servers hosted on Google Cloud (e.g., Cloud Run) and requiring
237237
3. **Connect to the Toolbox Server**
238238

239239
```javascript
240-
import { ToolboxClient } from '@toolbox/core';
241-
import {getGoogleIdToken} from '@toolbox/core/auth'
240+
import { ToolboxClient } from '@mcp-toolbox/core';
241+
import {getGoogleIdToken} from '@mcp-toolbox/core/auth'
242242

243243
const URL = 'http://127.0.0.1:5000';
244244
const getGoogleIdTokenGetter = () => getGoogleIdToken(URL);
@@ -355,7 +355,7 @@ const authTools = await toolbox.loadToolset({"myAuth": getAuthToken})
355355
### Complete Authentication Example
356356
357357
```javascript
358-
import { ToolboxClient } from '@toolbox/core';
358+
import { ToolboxClient } from '@mcp-toolbox/core';
359359

360360
async function getAuthToken() {
361361
// ... Logic to retrieve ID token (e.g., from local storage, OAuth flow)
@@ -399,7 +399,7 @@ specific tool instance.
399399
400400
```javascript
401401

402-
import { ToolboxClient } from '@toolbox/core';
402+
import { ToolboxClient } from '@mcp-toolbox/core';
403403

404404
const URL = 'http://127.0.0.1:5000';
405405
let client = new ToolboxClient(URL);
@@ -456,7 +456,7 @@ const dynamicBoundTool = tool.bindParam("param", getDynamicValue)
456456
[LangchainJS](https://js.langchain.com/docs/introduction/)
457457
458458
```javascript
459-
import {ToolboxClient} from "@toolbox/core"
459+
import {ToolboxClient} from "@mcp-toolbox/core"
460460
import { tool } from "@langchain/core/tools";
461461

462462
let client = ToolboxClient(URL)
@@ -485,7 +485,7 @@ Agents](https://langchain-ai.github.io/langgraphjs/reference/functions/langgraph
485485
[LlamaindexTS](https://ts.llamaindex.ai/)
486486
487487
```javascript
488-
import {ToolboxClient} from "@toolbox/core"
488+
import {ToolboxClient} from "@mcp-toolbox/core"
489489
import { tool } from "llamaindex";
490490

491491
let client = ToolboxClient(URL)
@@ -514,7 +514,7 @@ workflows](https://ts.llamaindex.ai/docs/llamaindex/modules/agents/agent_workflo
514514
515515
[GenkitJS](https://genkit.dev/docs/get-started/#_top)
516516
```javascript
517-
import {ToolboxClient} from "@toolbox/core"
517+
import {ToolboxClient} from "@mcp-toolbox/core"
518518
import { genkit, z } from 'genkit';
519519
import { googleAI } from '@genkit-ai/googleai';
520520

packages/toolbox-core/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/toolbox-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@toolbox/core",
2+
"name": "@mcp-toolbox/core",
33
"version": "0.1.0",
44
"type": "module",
55
"description": "JavaScript Base SDK for interacting with the Toolbox service",

0 commit comments

Comments
 (0)