Skip to content

Context7 Platform -- Up-to-date docs for AI agents

fix(cli): reorder setup mode choices to show MCP server first (#2243)

Fahreddin Özcan4b63117e5f78
diff --git a/.changeset/lucky-wolves-sing.md b/.changeset/lucky-wolves-sing.md
new file mode 100644
index 00000000..00bcfb6f
--- /dev/null
+++ b/.changeset/lucky-wolves-sing.md
@@ -0,0 +1,5 @@
+---
+"ctx7": patch
+---
+
+Reorder setup mode choices to show MCP server first
diff --git a/packages/cli/src/commands/setup.ts b/packages/cli/src/commands/setup.ts
index 45d0e3e4..859b740f 100644
--- a/packages/cli/src/commands/setup.ts
+++ b/packages/cli/src/commands/setup.ts
@@ -133,14 +133,14 @@ async function resolveMode(options: SetupOptions): Promise<SetupMode> {
return select<SetupMode>({
message: "How should your agent access Context7?",
choices: [
- {
- name: `CLI + Skills\n ${pc.dim("Installs a find-docs skill that guides your agent to fetch up-to-date library docs using ")}${pc.dim(pc.bold("ctx7"))}${pc.dim(" CLI commands")}`,
- value: "cli" as SetupMode,
- },
{
name: `MCP server\n ${pc.dim("Agent calls Context7 tools via MCP protocol to retrieve up-to-date library docs")}`,
value: "mcp" as SetupMode,
},
+ {
+ name: `CLI + Skills\n ${pc.dim("Installs a find-docs skill that guides your agent to fetch up-to-date library docs using ")}${pc.dim(pc.bold("ctx7"))}${pc.dim(" CLI commands")}`,
+ value: "cli" as SetupMode,
+ },
],
theme: {
style: {