0.0.22 ⢠Published 3 months ago
@smcphub/client v0.0.22
Welcome to @smcphub/client š
MCP Client of smcphub.com
SMCP Client is a simple and easy-to-use client for smcphub.com. It provides a simple API to interact with all the MCP Servers hosted in the smcphub.com.
SMCP hub is a platform that allows you to find the MCP servers which users published, or also publish your MCP Servers and get them listed and hosted on the website.
š Homepage
Install
npm i @smcphub/client
OR
yarn add @smcphub/client
Usage
// import the SDK
import SmcphubClient from '@smcphub/client';
// Instantiate the client
const smcphubClient = new SmcphubClient({
api_key: 'your-api-key'
});
// Connect the MCP Server
smcphubClient
.connect()
.then(tools => {
console.log(tools);
})
.catch(err => {
console.error(err);
});
// Call the tool
smcphubClient
.callTool('get_weather', {'city': 'ęå·'})
.then(content => {
console.log(content);
})
.catch(err => {
console.error(err);
});
Author
š¤ SMCPHUB
0.0.22
3 months ago
0.0.21
3 months ago
0.0.20
3 months ago
0.0.19
3 months ago
0.0.18
5 months ago
0.0.17
5 months ago
0.0.16
5 months ago
0.0.15
5 months ago
0.0.14
5 months ago
0.0.13
5 months ago
0.0.12
5 months ago
0.0.11
5 months ago
0.0.10
5 months ago
0.0.9
5 months ago
0.0.8
5 months ago
0.0.7
5 months ago
0.0.6
5 months ago
0.0.5
5 months ago
0.0.4
5 months ago
0.0.3
5 months ago
0.0.2
5 months ago
0.0.1
5 months ago