@telos.ready/mcp 1.8.0 → 1.9.0
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/build/index.js +38 -2
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -649,7 +649,43 @@ function getMimeType(filename) {
|
|
|
649
649
|
};
|
|
650
650
|
return mimeTypes[ext] || "application/octet-stream";
|
|
651
651
|
}
|
|
652
|
-
// Tool 15:
|
|
652
|
+
// Tool 15: Get Skill
|
|
653
|
+
server.tool("get-skill", "Retrieves a skill workflow by code or name. Skills are reusable capabilities that AI agents can execute during workflow execution. Parameter accepts either the short skill code or full skill name.", {
|
|
654
|
+
applicationSlug: z
|
|
655
|
+
.string()
|
|
656
|
+
.describe('The application slug for the application context, which is a unique identifier string used to reference specific applications. The application slug is the ticket prefix, such as "TEL" or "XXX".'),
|
|
657
|
+
skillCodeOrName: z
|
|
658
|
+
.string()
|
|
659
|
+
.describe('The skill code or full skill name to retrieve.'),
|
|
660
|
+
}, async ({ applicationSlug, skillCodeOrName }) => {
|
|
661
|
+
try {
|
|
662
|
+
const result = await telosClient.post("/mcp/get-skill", {
|
|
663
|
+
applicationSlug,
|
|
664
|
+
skillCodeOrName,
|
|
665
|
+
});
|
|
666
|
+
if (result.success) {
|
|
667
|
+
return {
|
|
668
|
+
content: [{ type: "text", text: result.result }],
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
return {
|
|
673
|
+
content: [{ type: "text", text: `Error: ${result.error}` }],
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
catch (error) {
|
|
678
|
+
return {
|
|
679
|
+
content: [
|
|
680
|
+
{
|
|
681
|
+
type: "text",
|
|
682
|
+
text: `Error getting skill ${skillCodeOrName} for application ${applicationSlug}: ${error.message}`,
|
|
683
|
+
},
|
|
684
|
+
],
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
// Tool 16: Attach Screenshot to Ticket
|
|
653
689
|
server.tool("attach-screenshot", "Attaches a screenshot or image file from the local filesystem to a ticket. The tool reads the file from the provided path, encodes it, and uploads it as an attachment to the specified ticket. Supports common image formats (PNG, JPG, GIF, WebP).", {
|
|
654
690
|
ticketReference: z
|
|
655
691
|
.string()
|
|
@@ -719,7 +755,7 @@ async function main() {
|
|
|
719
755
|
await server.connect(transport);
|
|
720
756
|
// Log success message
|
|
721
757
|
console.error("✅ Telos MCP Server running on stdio");
|
|
722
|
-
console.error("Available tools: ask-question, search-documentation, add-ticket-comment, add-documentation, get-ticket-details, start-ticket, get-next-task, get-git-branch-for-ticket, mark-ticket-as-blocked, update-action-item, get-resource-list, get-resource-details, answer-question, raise-ticket, attach-screenshot");
|
|
758
|
+
console.error("Available tools: ask-question, search-documentation, add-ticket-comment, add-documentation, get-ticket-details, start-ticket, get-next-task, get-git-branch-for-ticket, mark-ticket-as-blocked, update-action-item, get-resource-list, get-resource-details, answer-question, raise-ticket, get-skill, attach-screenshot");
|
|
723
759
|
// Test connection in background without blocking or exiting
|
|
724
760
|
// This is non-critical and should not cause the server to exit
|
|
725
761
|
setImmediate(async () => {
|