@402md/mcp 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -80945,6 +80945,17 @@ function registerUseTools(server2, config3, spending, clientCache) {
|
|
|
80945
80945
|
isError: true
|
|
80946
80946
|
};
|
|
80947
80947
|
}
|
|
80948
|
+
if (manifest.endpoints.length === 0) {
|
|
80949
|
+
return {
|
|
80950
|
+
content: [
|
|
80951
|
+
{
|
|
80952
|
+
type: "text",
|
|
80953
|
+
text: `Skill "${manifest.name}" is a SKILL type with no endpoints. It provides instructions only \u2014 read it with read_skill instead.`
|
|
80954
|
+
}
|
|
80955
|
+
],
|
|
80956
|
+
isError: true
|
|
80957
|
+
};
|
|
80958
|
+
}
|
|
80948
80959
|
const ep = endpoint ? manifest.endpoints.find((e) => e.path === endpoint) : manifest.endpoints[0];
|
|
80949
80960
|
if (!ep) {
|
|
80950
80961
|
return {
|
|
@@ -81304,7 +81315,7 @@ function registerRegistryTools(server2, config3) {
|
|
|
81304
81315
|
function createMcpServer(config3) {
|
|
81305
81316
|
const server2 = new McpServer({
|
|
81306
81317
|
name: "402md",
|
|
81307
|
-
version: "0.1.
|
|
81318
|
+
version: "0.1.1"
|
|
81308
81319
|
});
|
|
81309
81320
|
const spending = new SpendingTracker(config3.budget);
|
|
81310
81321
|
const clientCache = new ClientCache();
|