AC

appfigures/cli

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

21 stars 3 forks 质量 67 趋势 24Apache-2.0

官方 Appfigures CLI 和 MCP 服务器

概览

Appfigures CLI — 查询应用指标、审核并存储终端数据。 无论Appfigures如何构建,都把Appfigures带进你的代理——无论是它调用的工具、写代码、CLI,还是通过MCP实现。无论你选哪种,都能做同样的事情,并获得相同的JSON。 - 🛠️ — 你的代理在运行时调用 Appfigures 作为工具。AI SDK、OpenAI、LangChain。→ 添加工具 - 📦 — 你的代理编写代码查询 Appfigures 并获得输入数据。→ 使用客户端 - 🖥️ — 从终端或沙盒运行 Appfigures。→ @appfigures/cli - 🔌 — 将 Appfigures 连接到 Claude、ChatGPT 或 Cursor。→ 连接托管服务器 需要Node.js 22+。也适用于pnpm和纱线。 - AF 认证登录——交互式以引导流程打开浏览器;批准并粘贴代码。- 默认情况下,af auth login 打印授权 URL——打开、批准,并以 af 认证登录结束——使用所示代码。代理可以端到端驱动此过程。

概述(AI 翻译)

Appfigures CLI — 查询应用指标、审核并存储终端数据。

现在试试,不用安装:

✨ Appfigures AI 功能的四种方式

无论Appfigures如何构建,都把Appfigures带进你的代理——无论是它调用的工具、写代码、CLI,还是通过MCP实现。无论你选哪种,都能做同样的事情,并获得相同的JSON。

  • 🛠️ 代理工具 — 你的代理在运行时调用 Appfigures 作为工具。AI SDK、OpenAI、LangChain。→ 添加工具
  • 📦 客户端 — 你的代理编写代码查询Appfigures并获取输入数据。→ 使用客户端
  • 🖥️ CLI — 从终端或沙盒运行 Appfigures。→ @appfigures/cli
  • 🔌 MCP — 将Appfigures连接到Claude、ChatGPT或Cursor。→ 连接托管服务器

安装

需要Node.js 22+。也适用于pnpm和纱线。

快速开始

也可用 af 别名。

认证

  • 自己登录。 af auth login --interactive 以引导流程打开浏览器;批准并粘贴代码。
  • 或者让你的代理带你走。 默认情况下,af auth login 会打印授权 URL——打开、批准,然后用所示代码完成 af auth login --code 。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

@appfigures/cli

The Appfigures CLI — query app metrics, reviews, and store data from your terminal.

Try it now without installing:

npx @appfigures/cli auth login
npx @appfigures/cli apps search "youtube"

✨ Four ways to use the power of Appfigures AI

Bring Appfigures into your agent however it’s built — as tools it calls, code it writes, a CLI, or over MCP. Whichever you pick, you can do the same things and get the same JSON back.

  • 🛠️ Agent tools — your agent calls Appfigures as tools while it runs. AI SDK, OpenAI, LangChain. → Add the tools
  • 📦 The client — your agent writes code that queries Appfigures and gets typed data back. → Use the client
  • 🖥️ CLI — run Appfigures from a terminal or a sandbox. → @appfigures/cli
  • 🔌 MCP — connect Appfigures to Claude, ChatGPT, or Cursor. → Connect the hosted server

Install

npm install -g @appfigures/cli

Requires Node.js 22+. Works with pnpm and yarn too.

Quick start

appfigures auth login
appfigures --help

Also available as af alias.

Authentication

  • Log in yourself. af auth login --interactive opens your browser in a guided flow; approve and paste the code back.
  • Or let your agent guide you. By default, af auth login prints an authorization URL — open it, approve, and finish with af auth login --code using the code shown. An agent can drive this end to end. For unattended use, set APPFIGURES_API_KEY instead: create a token at appfigures.com/developers/keys by clicking Create a New Client, then Create Personal Access Token.

Either login saves the token to your OS credential manager (macOS Keychain, Windows Credential Manager, Linux Secret Service). See Environment for APPFIGURES_API_KEY and other overrides.

MCP server

Appfigures runs a hosted Model Context Protocol server at https://mcp.appfigures.com/mcp. Add it to any MCP client that supports remote servers and sign in with your Appfigures account when the client asks. There’s nothing to install and no token to manage.

Claude Code. Add it with one command, then run /mcp to sign in:

claude mcp add --transport http appfigures https://mcp.appfigures.com/mcp

Claude (web and desktop). Add the URL as a custom connector. See Add a connector that isn’t in the directory.

在 GitHub 查看完整 README

安装

npx @appfigures/cli auth login
新手?先看 mcpskill.org 教程 →