@mcpinv/cli 0.1.6 → 0.1.7

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.
@@ -19,7 +19,7 @@ export function searchCommand() {
19
19
  for (const s of results) {
20
20
  console.log(` ${chalk.cyan(s.id)}`);
21
21
  console.log(` ${chalk.dim(s.description)}`);
22
- console.log(` ${chalk.green(`inv install ${s.id}`)}\n`);
22
+ console.log(` ${chalk.green(`mcpinv install ${s.id}`)}\n`);
23
23
  }
24
24
  }
25
25
  catch (err) {
@@ -4,7 +4,7 @@ export async function searchServers(query) {
4
4
  const { data } = await axios.get(`${BASE}/servers`, {
5
5
  params: { q: query, pageSize: 20 }
6
6
  });
7
- return (data.items ?? []).map(mapToServer);
7
+ return (data.servers ?? data.items ?? []).map(mapToServer);
8
8
  }
9
9
  export async function fetchManifest(id) {
10
10
  const { data } = await axios.get(`${BASE}/servers/${id}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpinv/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Install, run and host MCP servers — invoke anything",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,7 +20,7 @@ export function searchCommand(): Command {
20
20
  for (const s of results) {
21
21
  console.log(` ${chalk.cyan(s.id)}`)
22
22
  console.log(` ${chalk.dim(s.description)}`)
23
- console.log(` ${chalk.green(`inv install ${s.id}`)}\n`)
23
+ console.log(` ${chalk.green(`mcpinv install ${s.id}`)}\n`)
24
24
  }
25
25
  } catch (err) {
26
26
  spinner.fail('Search failed')
@@ -7,7 +7,7 @@ export async function searchServers(query: string): Promise<McpServer[]> {
7
7
  const { data } = await axios.get(`${BASE}/servers`, {
8
8
  params: { q: query, pageSize: 20 }
9
9
  })
10
- return (data.items ?? []).map(mapToServer)
10
+ return (data.servers ?? data.items ?? []).map(mapToServer)
11
11
  }
12
12
 
13
13
  export async function fetchManifest(id: string): Promise<McpServer> {