Skip to content

Commit de417ad

Browse files
feat: list available libraries in listFeatures description
1 parent 00b141a commit de417ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/list-features.tool.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { MCPTool } from "mcp-framework";
22
import { z } from "zod";
33
import { librariesWithFeatures } from "../lib/utils/process-libraries.js";
44
import dedent from "dedent";
5-
import { libraryId } from "../lib/supported-libraries.js";
5+
import { libraries, libraryId } from "../lib/supported-libraries.js";
66

77
interface ListFeaturesInput {
88
libraryId: z.infer<typeof libraryId>;
@@ -15,6 +15,9 @@ class ListFeaturesTool extends MCPTool<ListFeaturesInput> {
1515
List the available features for an Appwrite SDK for a particular platform.
1616
Before using this tool, identify the programming langauge in question (either by analyzing the code or by asking the user).
1717
You will use the returned list of features to fetch code examples for particular features, using the getFeatureExamples tool.
18+
19+
Available libraries:
20+
${libraries.map((library) => `- ${library.name} (ID: ${library.root})`).join("\n")}
1821
`;
1922

2023
schema = {

0 commit comments

Comments
 (0)