@telos.ready/mcp 1.0.0 → 1.0.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/README.md +5 -0
- package/build/index.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
package/build/index.js
CHANGED
|
@@ -18,7 +18,7 @@ class TelosClient {
|
|
|
18
18
|
this.config = config;
|
|
19
19
|
this.client = axios.create({
|
|
20
20
|
baseURL: config.baseUrl,
|
|
21
|
-
timeout:
|
|
21
|
+
timeout: 300000,
|
|
22
22
|
headers: {
|
|
23
23
|
"User-Agent": "telos-mcp/1.0.0",
|
|
24
24
|
"Content-Type": "application/json",
|
|
@@ -90,17 +90,17 @@ const telosClient = new TelosClient({
|
|
|
90
90
|
apiKey,
|
|
91
91
|
});
|
|
92
92
|
// Tool 1: Ask Question
|
|
93
|
-
server.tool("ask-question", "Asks a question about
|
|
94
|
-
|
|
93
|
+
server.tool("ask-question", "Asks a question about an application and gets an answer with supporting context. This tool uses the agent service to provide comprehensive answers with relevant documentation. Provide both an application slug and a specific question.", {
|
|
94
|
+
applicationSlug: z
|
|
95
95
|
.string()
|
|
96
|
-
.describe('The
|
|
96
|
+
.describe('The application slug for the application you want to ask a question about, which is a unique identifier string used to reference specific applications.'),
|
|
97
97
|
question: z
|
|
98
98
|
.string()
|
|
99
|
-
.describe("The question you want to ask about the
|
|
100
|
-
}, async ({
|
|
99
|
+
.describe("The question you want to ask about the application."),
|
|
100
|
+
}, async ({ applicationSlug, question }) => {
|
|
101
101
|
try {
|
|
102
102
|
const result = await telosClient.post("/mcp/ask-question", {
|
|
103
|
-
|
|
103
|
+
applicationSlug,
|
|
104
104
|
question,
|
|
105
105
|
});
|
|
106
106
|
if (result.success) {
|
|
@@ -119,7 +119,7 @@ server.tool("ask-question", "Asks a question about a ticket and gets an answer w
|
|
|
119
119
|
content: [
|
|
120
120
|
{
|
|
121
121
|
type: "text",
|
|
122
|
-
text: `Error asking question about
|
|
122
|
+
text: `Error asking question about application ${applicationSlug}: ${error}`,
|
|
123
123
|
},
|
|
124
124
|
],
|
|
125
125
|
};
|