@gsb-core/mcp-tools
Version:
Shared tools for GSB MCP implementations
63 lines (46 loc) • 1 kB
Markdown
# GSB MCP Tools Package
This package provides shared tools for GSB MCP implementations. It exports entity and entity definition tools for use in both the CLI and Wrangler implementations.
## Installation
```bash
npm install @gsb-core/mcp-tools
```
## Usage
### In TypeScript Projects (Wrangler)
```typescript
import {
gsbEntityTools,
gsbEntityDefTools
} from '@gsb-core/mcp-tools';
// Use the tools
const result = await gsbEntityTools.getById({
definitionType: 'Customer',
id: '123',
token: 'your-token',
tenantCode: 'your-tenant-code'
});
```
### In JavaScript Projects (CLI)
```javascript
import {
gsbEntityTools,
gsbEntityDefTools
} from '@gsb-core/mcp-tools';
// Use the tools
const result = await gsbEntityTools.getById({
definitionType: 'Customer',
id: '123',
token: 'your-token',
tenantCode: 'your-tenant-code'
});
```
## Development
### Building the Package
```bash
npm run build
```
### Publishing the Package
```bash
npm publish
```
## License
MIT