GitHits CLI 标志

GitHits CLI

组织
githits-com

CLI & MCP for GitHits - The Code Context Layer for AI Coding Agents

发布者githits-com
代码仓库githits-cli
语言TypeScript
复刻数
12
星标数
107
可用工具
15
传输类型stdio
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    GitHits CLI 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 15 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 107 个 Star 和 12 个 Fork。

GitHits connects AI coding agents to public open-source evidence across the full software development lifecycle: discovery, planning, research, implementation, debugging, and maintenance.

The CLI runs a local MCP server that your coding tool starts on demand. Agents can then search indexed package and repository source, read exact files and documentation pages, inspect package health, compare dependency upgrades, and find source-cited examples from real open-source projects when model knowledge and local repository context are not enough.

Want to use GitHits as part of your agent harness or software factory? Check out our public API documentation.

Quick Start

sh
npx githits@latest init

init signs you in, detects supported coding tools, and configures GitHits for the tools you select. It uses the local stdio MCP except for Cursor, whose direct setup uses the hosted remote MCP.

Automatic setup currently supports Claude Code, Cursor, Windsurf, VS Code / Copilot, Cline, Claude Desktop, Codex CLI, Pi, Gemini CLI, Google Antigravity, OpenCode, Hermes Agent, Zed, Junie, Qwen Code, Kiro, Kilo Code, Factory Droid, and Amazon Q CLI.

After setup, open your coding agent and work normally. Many agents call GitHits when they need source-backed context. If your agent starts guessing, prompt it directly:

text
Use GitHits Code Navigation to inspect npm:express. Find how middleware
errors are handled, read the relevant source, and explain the fix before
editing code.

What GitHits Adds

GitHits is designed for the point where an agent needs evidence from the broader open-source ecosystem, not just model memory or local repo context:

CapabilityMCP toolsCLI commands
Tool orientationquick_start—
Code examplesget_examplegithits example
Code navigationsearch, search_status, code_files, code_grepgithits search, githits search-status, githits code ...
Documentation discoverydocs_listgithits docs list
Read source files or documentation sectionsreadgithits read <target> [path]
Package inspectionpkg_info, pkg_vulns, pkg_deps, pkg_changelog, pkg_upgrade_reviewgithits pkg ...

Use GitHits when your agent needs to:

  • discover, plan, or research how OSS projects solve a vague issue or unfamiliar error
  • find broad prior art or rare needle-in-the-haystack examples across repositories
  • inspect source, tests, symbols, or docs for a known package or repository
  • verify how a dependency actually behaves before changing code
  • debug stack traces that point into third-party code
  • review package health, licenses, vulnerabilities, dependencies, and changelogs
  • compare dependency upgrades using factual evidence

Examples

Find prior art across open source:

sh
npx githits@latest example "HTTP retries with exponential backoff in Python"

Search indexed code, docs, and symbols for a dependency:

sh
npx githits@latest search "router middleware" --in npm:express
npx githits@latest search '"body parser" OR multer' --in npm:express --source docs
npx githits@latest search "debounce" --in npm:lodash --source symbol

Read and grep dependency source without cloning:

sh
npx githits@latest code files npm:express lib
npx githits@latest code read npm:express lib/router/index.js --lines 120-200
npx githits@latest code grep npm:express "router.use" lib --regex

Inspect package health and upgrade evidence:

sh
npx githits@latest pkg info npm:express
npx githits@latest pkg vulns npm:lodash@4.17.20 --severity high
npx githits@latest pkg deps npm:express@4.18.2 --depth 2
npx githits@latest pkg changelog npm:express --from 4.18.2 --to 5.2.1
npx githits@latest pkg upgrade-review npm:zod@4.3.6 --to 4.4.3

Browse and read package documentation:

sh
npx githits@latest docs list npm:express
npx githits@latest docs read <docs-read-target> --lines 20-80

Experimental Tools

GitHits 0.10 adds two opt-in local tools for early dogfooding:

  • resolve_target / githits resolve turns a fuzzy or ambiguous package, repository, or documentation-site name into grouped canonical targets with related project identities kept together.
  • code_diff / githits code diff compares repository trees resolved from exact package versions or public GitHub refs.

They are hidden and disabled by default. They are available only through the local githits CLI and local stdio MCP server; the hosted MCP and plugin or extension installs keep the stable tool set. Enable them in the GitHits host config, then restart the coding agent so it restarts the local MCP server:

toml
# macOS/Linux: ~/.config/githits/config.toml
# Windows: %APPDATA%\githits\config.toml
[experimental]
tools = true

See Experimental tools for platform-specific config discovery, CLI examples, limitations, and how to disable the tools.

Supported Sources

GitHits works with package and repository targets such as:

  • package specs: npm:react, npm:react@18.2.0, pypi:requests, crates:serde
  • GitHub repos: https://github.com/expressjs/express, github:expressjs/express@main

Package inspection supports npm, PyPI, Hex, Crates, NuGet, Maven, Packagist, RubyGems, Go, Swift, vcpkg, and Zig. Advisory data is unavailable for vcpkg and Zig; dependency graph support varies by registry.

License Filtering

Code example search supports license filtering:

  • strict is the default and filters repositories with copyleft or undeclared licenses
  • custom uses your account blocklist configured at githits.com
  • yolo disables license filtering
sh
npx githits@latest example "async file reading" --lang python --license strict

Authentication

Normal local setup is handled by:

sh
npx githits@latest init

For manual login:

sh
npx githits@latest login

Browser OAuth is recommended for local development. Credentials are stored in the system keychain by default and refreshed automatically. Useful flags:

  • init --no-browser or login --no-browser prints the login URL instead of launching a browser
  • init --port <port> or login --port <port> fixes the loopback callback port
  • login --force re-authenticates even if you are already logged in

The OAuth callback always listens on the machine where GitHits is running. When GitHits runs over SSH and the browser runs locally, forward the selected port from the browser machine:

sh
ssh -N -L 8765:127.0.0.1:8765 user@remote-host

With that tunnel open, run GitHits on the remote machine using the same port:

sh
npx githits@latest init --no-browser --port 8765

Open the URL printed by GitHits in the local browser. Replace user@remote-host with the SSH destination you normally use. The same flags work with githits login after setup.

Browser OAuth is interactive. For CI and other unattended environments, supply GITHITS_API_TOKEN through the environment's secret manager.

Keychain Prompts and File Storage

GitHits uses the system keychain by default because OAuth credentials include a refresh token. On macOS this means Keychain Access; on Windows it means Credential Manager; on Linux it means the available Secret Service or keyring backend.

If macOS shows a prompt such as "githits wants to access ... in your keychain", choose Always Allow when you trust the installed githits CLI. GitHits cannot customize that operating-system prompt; it is generated by macOS.

GitHits also writes a small non-secret metadata file so recent startup checks do not need to read the keychain. The keychain is only read when GitHits needs the token, for example during a tool call, token refresh, githits auth status, or a login check after metadata is stale or expired.

If your agent keeps showing keychain prompts even after Always Allow, switch OAuth storage to file mode:

toml
# macOS/Linux: ~/.config/githits/config.toml, or $XDG_CONFIG_HOME/githits/config.toml
# Windows: %APPDATA%\githits\config.toml
[auth]
storage = "file"

The config directory may be empty until you create config.toml or GitHits writes auth metadata. Older macOS installs may have used ~/Library/Application Support/githits; GitHits still reads that location for migration, but new auth config and file storage use ~/.config/githits.

You can also opt in for one process:

sh
GITHITS_AUTH_STORAGE=file githits login --force

File mode stores OAuth credentials as JSON files under the GitHits config directory. The files are written with private permissions where the platform supports it, but they are not encrypted. Any process that can read files as your operating-system user may be able to read the tokens.

Use file mode only on machines where you trust local user-account access. For CI and automation, prefer GITHITS_API_TOKEN instead of browser OAuth.

Inspect auth and runtime state with:

sh
npx githits@latest auth status
npx githits@latest doctor

See the authentication docs for keychain behavior, file storage mode, CI setup, and troubleshooting.

Manual MCP Setup

If your coding tool is not auto-configured by init, add GitHits to its MCP configuration manually:

json
{
  "mcpServers": {
    "githits": {
      "command": "npx",
      "args": ["-y", "githits@latest", "mcp", "start"]
    }
  }
}

Your tool runs this command over stdio. No background daemon or global install is required.

To remove configuration written by init:

sh
npx githits@latest uninstall

This removes GitHits MCP configuration and guidance written by init, while preserving stored credentials. Run npx githits@latest logout separately to remove credentials. The compatibility form npx githits@latest init uninstall accepts the same --yes, --project, and --keep-guidance options.

Project Setup

For project-local MCP config, run:

sh
npx githits@latest init --project

Project setup is available only for tools with verified project-local MCP support. Project config contains no secrets, but it may be committed like other tooling configuration, so review generated files before adding them to source control.

Agent-safe non-interactive setup uses staged discovery and explicit install:

sh
npx githits@latest init --detect-agents --json
npx githits@latest init --install-agents cursor,codex-cli

Plugin and Extension Packaging

The repository and published package provide the plugin and extension assets used by compatible hosts. Git-based installs also retain the context-file symlinks (CLAUDE.md and GEMINI.md) to the canonical AGENTS.md:

  • .plugin/plugin.json
  • .claude-plugin/plugin.json
  • .claude-plugin/marketplace.json
  • .codex-plugin/plugin.json
  • .cursor-plugin/plugin.json
  • .mcp.json
  • gemini-extension.json
  • plugin.json (Google Antigravity)
  • mcp_config.json (Google Antigravity)
  • AGENTS.md
  • CLAUDE.md
  • GEMINI.md
  • skills/

The root skill tree is shared by all supported hosts. Every plugin and extension install uses the hosted remote MCP, including Claude, Codex, Cursor, Gemini CLI, Google Antigravity, and VS Code/GitHub Copilot OpenPlugin. Direct githits init setup is a separate path: it installs local stdio configurations for supported tools except Cursor, which remains remote-only. The repository root is a native Antigravity plugin through plugin.json, mcp_config.json, and the shared skills/ tree. Generated manifests are refreshed with bun run plugins:generate and validated with bun run plugins:check.

Guided init installs the four canonical skills (githits-code, githits-mcp, githits-onboarding, and githits-package) only for selected agents. Shared skill-capable agents use ~/.agents/skills/ at user scope or .agents/skills/ at project scope; native-only agents use their verified native skill directory. Compatible agents reading a shared root can discover those skills. A later guided run repairs missing skills, and migration removes only the historical Cline or Junie githits-mcp/SKILL.md after the complete shared set is verified.

For Claude Code marketplace installs:

sh
claude plugin marketplace add githits-com/githits-cli
claude plugin install githits@githits-plugins

For Gemini CLI extension installs:

sh
gemini extensions install https://github.com/githits-com/githits-cli

Command Reference

text
githits init             Connect GitHits to your coding agents
githits uninstall        Remove GitHits MCP configuration and guidance
githits init uninstall   Compatibility alias for `githits uninstall`
githits login            Sign in to your GitHits account
githits logout           Remove stored credentials
githits mcp              Show setup instructions or start the local MCP server
githits mcp start        Always start the local MCP server over stdio
githits example          Find real-world implementations from open source
githits doctor           Diagnose configuration and auth state
githits resolve          Experimental: resolve a fuzzy name to canonical targets
githits settings         View and update preferences, privacy, and terms
githits search           Explore repository code, dependencies, docs, and symbols
githits search-status    Check the status of a previous indexed search
githits code             List, read, grep, or experimentally diff indexed source
githits pkg              Inspect package metadata, vulnerabilities, deps, and changelogs
githits docs             Browse and read package documentation
githits auth             Manage authentication
githits auth status      Show authentication status

Full CLI reference: https://docs.githits.com/cli/commands

Environment Variables

Most users do not need environment variables. These are the common overrides for CI, auth storage, and local diagnostics:

VariablePurposeDefault
GITHITS_API_TOKENAPI token for authenticationunset
GITHITS_AUTH_STORAGEOverride OAuth storage mode: keychain or filekeychain
GITHITS_DISABLE_UPDATE_CHECKDisable npm latest-version update noticesunset
GITHITS_TELEMETRYEmit local timing diagnostics to stderrunset

Full reference: https://docs.githits.com/cli/environment-variables

Source Layout

This repository contains the GitHits CLI and reusable MCP package:

  • src/ - CLI commands, local auth, setup flows, and local MCP stdio startup
  • packages/mcp/ - public @githits/mcp package for transport-neutral MCP server APIs, tool registration, instructions, and smoke-test helpers
  • packages/core-internal/ - shared workspace implementation used by the CLI and MCP package
  • docs/ - implementation notes and contributor guidelines
  • scripts/ - package validation, smoke tests, and development utilities

See CHANGELOG.md for released changes, pending work, and the current package-version impact.

Development

Requirements:

  • Node.js ^20.18.1 || >=22.13.0
  • Bun

Common commands:

sh
bun install
bun run dev --help
bun test
bun run typecheck
bun run build

When changing MCP tools, CLI commands, shared formatters, auth/error envelopes, or MCP/CLI parity behavior, also run the relevant smoke suites:

sh
bun run smoke:mcp
bun run smoke:cli

CI also checks the built product without credentials or live backend calls. Run the same checks locally after bun run build:

sh
bun run smoke:cli:built
bun run smoke:mcp:built

The harness remains on Bun, while product subprocesses execute dist/cli.js with node from PATH. CI provisions that runtime from .node-version.

When changing MCP instructions, tool descriptions, or agent-facing behavior, use the targeted agent evals described in eval/agentic/README.md:

sh
bun run agent:e2e

License

Apache-2.0

安装

TypingMind
{
  "mcpServers": {
    "githits-cli": {
      "command": "npx",
      "args": [
        "-y",
        "githits@latest",
        "mcp",
        "start"
      ]
    }
  }
}

可用工具

  • get_example

    Use when the user needs a canonical open-source example, usage pattern, or API snippet that is not tied to one already-known dependency/repository. Best for "how do I use X", cross-project patterns, up-to-date examples, or when package-scoped search was not enough. For inspecting a specific known package or repository, use search, code_*, or docs_* instead.

    Default output is markdown, with source repository provenance when available and a trailing solution_id: ... line when available. When presenting an example to a user, report the source repositories/citations from GitHits' generated references/provenance section whenever present; they are core evidence, not optional metadata. Pass format: "json" for {result, solution_id?}. Pass solution_id to feedback after using or rejecting the example. For searching indexed dependency and repository code/docs, use the unified search tool instead.

  • search_language

    Use before get_example only when you need to force a language and are unsure of GitHits' exact language name. Finds supported language names and aliases; returns up to 5 matches. Default output is one language per line; pass format: "json" for the structured array.

  • feedback

    Use after a GitHits result was helpful, unhelpful, wrong, incomplete, slow, or confusing. Submit feedback on a tool result or the GitHits experience.

    Two modes:

    1. Solution-tied — pass the solution_id from a prior get_example response to rate that specific result.
    2. Generic — omit solution_id to send session feedback about any tool (search, code_grep, code_read, code_files, docs_*, pkg_*) or the overall experience.

    accepted is always required (true = positive, false = negative). Add feedback_text for context — strongly recommended in generic mode. Pass tool_name when rating a specific tool result. Feeds ranking and product quality.

  • search

    Use when investigating a known package or repository and you need to discover relevant docs, source files, examples, tests, or APIs before reading exact files. Search indexed dependency and repository code, docs, and explicit symbols. Required: query plus either target or targets; pass target or targets, not both. Omit source to let GitHits select the best sources; set it only to restrict results to docs, code, or symbols. Structured parameters combine with the query using AND semantics. For source:"docs", code/symbol-only filters (category, kind, file_intent, public_only) are ignored because docs search does not support them. Complete by default — if indexing is still running, the response carries a searchRef and no hits; pass it to search_status to follow up. Set allow_partial_results: true to opt into hits from sources that finished while others continue indexing. Each hit's type tells you the follow-up tool: documentation_page and repository_doc

  • search_status

    Use only after search returns a searchRef. Check progress, fetch partial hits (when the original request used allow_partial_results: true), or fetch final results for a prior search that returned a searchRef. Pass the searchRef from that response as search_ref here (response field is camelCase; this parameter is snake_case).

  • code_files

    List files in an indexed dependency. First choice for file/path enumeration tasks such as files under a directory; use path_prefix for directory prefixes (e.g. lib/) and optional extensions for language filtering. Use this to discover paths before code_read (when code_read returns FILE_NOT_FOUND or you don't yet know the path) and to scope code_grep. Address via target.registry + target.package_name (package scope) or target.repo_url + optional target.git_ref (repo scope), mutually exclusive. Narrow with path, path_prefix, globs, extensions, file_types, languages, or file-intent filters. JSON envelope shape: {total, hasMore, files: [{path, name, language, fileType, byteSize}], resolution, indexedVersion}. When fresh data is not ready within the wait window, responses may include targetResolution provenance, indexingEstimate, and immediately-queryable alternatives. availableVersions and availableRefs are already indexed/queryable; `suggestedRe

  • code_read

    Read one exact file from an indexed dependency; it does not list directories. Use code_files with path_prefix for file/path enumeration. MCP cap: 150 lines per call — broader requests (or no range) silently truncate to the first 150 lines from your start, with a hint describing what was returned vs. requested. Pick a focused window from a search / code_grep match. Response: {path, language, totalLines, startLine, endLine, content, isBinary, hint?}. Binary files set isBinary: true and omit content. Pass the same path emitted by code_files. Address via target.registry + target.package_name (package scope) or target.repo_url + optional target.git_ref (repo scope), mutually exclusive. When fresh data is not ready within the wait window, responses may include targetResolution provenance, indexingEstimate, and immediately-queryable alternatives. availableVersions and availableRefs are already indexed/queryable; suggestedRefs are fuzzy ref hints and m

  • code_grep

    Deterministic text or regex grep over indexed dependency and repository source files. Use this when you know the pattern (literal by default; pass pattern_type: "regex" for RE2). Use search for discovery instead. Whole-target grep is the default — narrow with path, path_prefix, globs, or extensions to keep responses small. Each match's filePath (or text file heading) chains into code_read.path; pick a window around match.line for code_read.start_line / end_line. When fresh data is not ready within the wait window, responses may include targetResolution provenance, indexingEstimate, and immediately-queryable alternatives in error details. availableVersions and availableRefs are already indexed/queryable; suggestedRefs are fuzzy ref hints and may need indexing first.

  • docs_list

    List mixed package documentation pages from hosted docs and repository-backed docs. This browses available pages; for topic search, use search with source: "docs" and pass the returned pageId to docs_read. Every entry includes a stable pageId, sourceKind (crawled or repo), and source URL; repo-backed entries also expose repoUrl / gitRef / filePath for exact file reads. Pass a returned pageId to docs_read. Use this to browse before reading a full page.

  • docs_read

    Read a documentation page by page ID. Works for both hosted/crawled docs and repository-backed docs. Pass start_line / end_line to fetch only a slice when a page is too long — response carries totalLines so you can target the next slice. Repo-backed results additionally include exact file follow-up metadata for code_read.

  • pkg_info

    Use for a quick latest-version package adoption or health check: license, description, repository health, downloads, publish age, and latest vulnerability status. Latest-version package overview for dependency triage. Provide registry and package_name (for example npm + express). Default text returns license, description, repository popularity (stars/forks/issues and [ARCHIVED] when applicable), downloads, publish age, and vulnerability status. Set verbose: true for GitHub language/topics/last-pushed, recent advisories, and recent changes. Pass format: "json" for structured fields. Use pkg_vulns for version-specific vulnerability details.

  • pkg_vulns

    Use when the user asks whether a package or pinned version has known vulnerabilities, advisories, CVEs, malware, affected ranges, or fix versions. Check known vulnerabilities for a package on npm, PyPI, Hex, Crates, NuGet, Maven, Packagist, RubyGems, Go, or Swift (vcpkg and Zig are not supported for vulnerability data). Returns a count summary, each advisory with OSV ID, severity, affected ranges, and fix versions. Malicious-package advisories surface in a separate bucket. Example: {"registry":"npm","package_name":"lodash","version":"4.17.20","min_severity":"high"}. Pass version to inspect a pinned release; omit it for latest. Default text is capped for readability; use verbose:true for all selected advisory rows or format:"json" for the complete envelope. Use min_severity to filter to a threshold (low, medium, high, critical) and include_withdrawn to also see retracted advisories. Use advisory_scope:"non_affecting" to list historical advisories that do not affect

  • pkg_deps

    Use when the user asks what a package depends on, wants dependency groups, or needs a bounded transitive dependency footprint. Analyze a package's dependency graph. Lists direct runtime dependencies with resolved versions; non-runtime groups are omitted by default. Use lifecycle with a concrete value for matching dependency groups, or all for every available group. Runtime group rows include resolved versions when available. Pass max_depth to add a transitive block with the capped install footprint, conflict detection, and circular-dependency flags; layer include_importers: true on top when you also need per-package provenance. Supports npm, PyPI, Hex, Crates, Zig, vcpkg, RubyGems, Go, and Swift.

  • pkg_changelog

    Use when the user asks what changed in a package, wants release notes, or needs changelog evidence for a manual upgrade review. Release notes for a package or GitHub repo, newest-first. Default latest mode returns the ten most recent entries (limit 1–50). With from_version, returns every entry in the [from_version, to_version] range (range mode, no count cap). Address via registry + package_name or repo_url (mutually exclusive). Response includes optional source ("releases" / "changelog_file" / "hexdocs") when a concrete changelog source exists, mode ("latest" or "range"), and entries with markdown body previews. Example: {"registry":"npm","package_name":"express","limit":2}. Text output previews 10 body lines by default; use body_lines to tune the preview or verbose:true for full text bodies. Set omit_bodies: true for a version / date / URL timeline only; pass format: "json" for the complete structured envelope. Package-version entries without chang

  • pkg_upgrade_review

    Use when the user asks whether to accept, assess, review, or investigate a dependency update from one version to another. Report package-upgrade evidence by comparing current and target versions with direct vulnerability checks, changelog range evidence, target deprecation metadata, peer dependency changes, and optional transitive evidence diffs. The tool reports facts only and does not assign risk or decide whether to accept an upgrade. Use this instead of inferring acceptability from semver, including patch bumps. Accepts either one package via registry/package_name/current_version/target_version or batch packages[]. Batch execution is capped internally to avoid flooding the package-intelligence backend.

将 GitHits CLI MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 GitHits CLI 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 GitHits CLI 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 GitHits CLI MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "githits-cli": {
      "command": "npx",
      "args": [
        "-y",
        "githits"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 GitHits CLI MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 GitHits CLI MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 GitHits CLI 帮我完成这项任务吗?
GitHits CLI
当然。我已阅读。
以下是我使用 GitHits CLI 得到的结果。

常见问题

GitHits CLI MCP 服务器有什么用途?

GitHits CLI 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 GitHits CLI MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 GitHits CLI,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 GitHits CLI MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 GitHits CLI 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 GitHits CLI MCP 连接到 TypingMind?

GitHits CLI 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

GitHits CLI MCP 在 TypingMind 中提供哪些工具?

GitHits CLI 提供 15 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 GitHits CLI MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 GitHits CLI 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇