MCP server for using tools registered on MCP Bone website via. API.
npm install mcp-boneGet an Access Token:
1. go to https://store.tangshuang.net?scope=mcp-bone
2. register an account and log in
3. go to https://store.tangshuang.net/product/58/entry?scope=mcp-bone to create a new App
4. go to the App's Certificate menu page to create a new certificate
5. copy the Access Token
```
{
"mcpServers": {
"mcp-bone": {
"command": "npx",
"args": [
"-y",
"mcp-bone"
],
"env": {
"MCP_BONE_ACCESS_TOKEN": ""
}
}
}
}
`js
import {
extractAndParseToolsToJson,
extractAndParseToolsXmlToJson,
extractAndParseToolsTextToJson,
} from 'mcp-bone';
const tools = extractAndParseToolsTextToJson(text);
const tools = extractAndParseToolsXmlToJson(text);
const tools = extractAndParseToolsToJson(text);
``
These tools are used after LLM completions whic does not support function calling to parse the text into tools JSON. If the result is an empty array, it means that the LLM did not generate any tools.