@usefillo/mcp 0.8.0 → 0.8.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 +13 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3326,7 +3326,20 @@ function registerRevokeAgentGrant(server) {
|
|
|
3326
3326
|
}
|
|
3327
3327
|
|
|
3328
3328
|
// src/tools/index.ts
|
|
3329
|
+
function withTitleAnnotations(server) {
|
|
3330
|
+
const register = server.registerTool.bind(server);
|
|
3331
|
+
server.registerTool = ((name, config, ...rest) => {
|
|
3332
|
+
const annotations = config.annotations;
|
|
3333
|
+
const title = typeof config.title === "string" ? config.title : void 0;
|
|
3334
|
+
return register(
|
|
3335
|
+
name,
|
|
3336
|
+
title && annotations ? { ...config, annotations: { title, ...annotations } } : config,
|
|
3337
|
+
...rest
|
|
3338
|
+
);
|
|
3339
|
+
});
|
|
3340
|
+
}
|
|
3329
3341
|
function registerTools(server) {
|
|
3342
|
+
withTitleAnnotations(server);
|
|
3330
3343
|
registerProvisionWorkspace(server);
|
|
3331
3344
|
registerWhoami(server);
|
|
3332
3345
|
registerProjects(server);
|
package/package.json
CHANGED