exponential-mcp 0.14.0 → 0.14.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/tools.js +6 -2
- package/package.json +1 -1
package/dist/tools.js
CHANGED
|
@@ -645,14 +645,18 @@ export async function callTool(client, name, args, options = {}) {
|
|
|
645
645
|
// quickCreate's input field is `name`, not `text` -- it parses natural
|
|
646
646
|
// language out of the name itself (dates, project names) when
|
|
647
647
|
// parseNaturalLanguage is on, which it is by default.
|
|
648
|
-
|
|
648
|
+
// It returns `{ success, message, title, url, action, parsing }`: the
|
|
649
|
+
// created Action's name and id live under `.action`.
|
|
650
|
+
const result = await trpcClient.action.quickCreate.mutate({
|
|
649
651
|
name: args?.text,
|
|
650
652
|
});
|
|
653
|
+
const { action, url } = result;
|
|
651
654
|
return {
|
|
652
655
|
content: [
|
|
653
656
|
{
|
|
654
657
|
type: 'text',
|
|
655
|
-
text: `Created action: ${action.name} (ID: ${action.id})
|
|
658
|
+
text: `Created action: ${action.name} (ID: ${action.id})` +
|
|
659
|
+
(url ? `\n${url}` : ''),
|
|
656
660
|
},
|
|
657
661
|
],
|
|
658
662
|
};
|
package/package.json
CHANGED