VG

vasihemanth/grok-build-plugin

开发工具

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

29 stars 5 forks 质量 81 趋势 19Apache-2.0

Grok Build 插件,适用于 Claude Code、Grok、Codex、Cursor 等。提供 /grok:search、/grok:review、/grok:rescue 命令 + grok_search MCP 工具,用于实时 X/网页搜索。

概览

想用 Claude 代码、Codex 或 Cursor 驱动 Grok Build?如果你已经订阅了 Grok,这让这些代理都能在他们的上下文中实时搜索和获取数据。有几种连接方式。 把(及其编码代理)带入你已经用的工具里。有两种方式来使用它: - :可在 :Claude Code、OpenAI Codex、Cursor 等环境中运行。这是跨代理、实时搜索核心。- :便利兼命令(/grok:search、/grok:review、/grok:rescue 等)以及一个委托子代理,MCP 工具自动接线。 Grok Build 原生、实时访问 X 和网页,非常适合突发新闻、社交情绪、当前包/版本信息,以及任何“当前真实情况”重要的内容,而这些是模型训练截止线无法提供的。这个项目是一个薄薄的、可审计的 grok CLI 封装器。

概述(AI 翻译)

想要Claude代码、Codex或Cursor来驱动Grok Build?如果你已经付费订阅Grok,这让这些代理都能在他们的上下文中实时搜索和数据。有几种连接方式。

将Grok Build的实时X(Twitter)+网页搜索(及其编码代理)引入你已有的工具中。两种使用方式:

  • 一个MCP工具(grok_search):可在任何支持MCP的代理中工作:Claude Code、OpenAI Codex、Cursor等。这是跨代理的实时搜索核心。
  • 一个Claude代码/Grok插件:方便斜杠命令(/grok:search、/grok:review]、/grok:rescue等)加上委托子代理,MCP工具自动接线。

Grok Build 原生、实时访问 X 和网络,强力支持突发新闻、社交情绪、当前包/版本信息,以及任何“当前真实情况”重要的内容,而这些是模型训练截止线无法提供的。这个项目是一个薄的、可审计的 CLI 包裹本地 grok CLI。

你得到了什么

  • grok_search MCP 工具:实时 X/Web 搜索,可由任何支持 MCP 的代理(跨代理核心)自主调用

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

README

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

grok-build-plugin: Grok Build for any coding agent

Want Claude Code, Codex, or Cursor to drive Grok Build? If you already pay for a Grok subscription, this gives any of those agents live X search and data right in their context. A couple of ways to wire it up.

Bring Grok Build’s live X (Twitter) + web search (and its coding agent) into the tools you already use. Two ways to consume it:

  • An MCP tool (grok_search): works in any MCP-capable agent: Claude Code, OpenAI Codex, Cursor, and others. This is the cross-agent, real-time-search core.
  • A Claude Code / Grok plugin: convenience slash commands (/grok:search, /grok:review, /grok:rescue, and more) plus a delegation subagent, with the MCP tool auto-wired in.

Grok Build has native, real-time access to X and the web, strong for breaking news, social sentiment, current package/version facts, and anything where “what’s true right now” matters, which a model’s training cutoff can’t provide. This project is a thin, auditable wrapper around your local grok CLI.

What you get

  • grok_search MCP tool: live X/web search with sources, callable autonomously by any MCP-capable agent (the cross-agent core)
  • /grok:search: the same search as an explicit slash command
  • /grok:review: a read-only Grok code review of your uncommitted changes or a branch
  • /grok:rescue: delegate a coding/investigation task to Grok (write-capable)
  • /grok:status, /grok:result, /grok:cancel: manage background jobs
  • /grok:setup: verify Grok is installed and signed in
  • a grok:grok-rescue subagent that Claude can hand substantial tasks to proactively

Quick start: add grok_search to your agent

Works today in any MCP-capable agent, no install or publish step. You just need the Grok Build CLI signed in (grok login).

// drop into your agent's MCP config (see the per-agent table below for the path)
{
  "mcpServers": {
    "grok": { "command": "npx", "args": ["-y", "grok-build-x-search-mcp"] }
  }
}

Or one line for OpenAI Codex:

codex mcp add grok -- npx -y grok-build-x-search-mcp

Then just ask your agent to “search X for …” and it will call grok_search. Verified live in Codex, Antigravity (agy), and Gemini CLI. Full per-agent paths are in Per-agent setup.

Requirements

  • Grok Build CLI installed and on your PATH as grok (or point GROK_BIN at it). Verify with grok --version.
  • A signed-in Grok account (grok login). Usage counts toward your Grok limits.
  • Node.js 18.18 or later.

Install

Add the marketplace in Claude Code:

/plugin marketplace add VasiHemanth/grok-build-plugin

Install the plugin:

/plugin install grok@grok-build-plugin

Reload plugins:

/reload-plugins

Then run:

/grok:setup
在 GitHub 查看完整 README

安装

npx -y grok-build-x-search-mcp
新手?先看 mcpskill.org 教程 →

配置

// drop into your agent's MCP config (see the per-agent table below for the path) { "mcpServers": { "grok": { "command": "npx", "args": ["-y", "grok-build-x-search-mcp"] } } }