Λογότυπο GitHits CLI

GitHits CLI

Οργανισμός
githits-com

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

Εκδότηςgithits-com
Αποθετήριοgithits-cli
ΓλώσσαTypeScript
Forks
12
Αστέρια
107
Διαθέσιμα εργαλεία
15
Τύπος μεταφοράςstdio
Κατηγορίες
Άδεια χρήσηςApache-2.0
Σύνδεσμοι
  • Συνδέστε εργαλεία σε ροές εργασίας AI

    Το GitHits CLI παρέχει δυνατότητες MCP που μπορούν να χρησιμοποιηθούν από συμβατές εφαρμογές-πελάτες AI και πράκτορες AI.

  • 15 διαθέσιμα εργαλεία

    Περιηγηθείτε παρακάτω στις ενέργειες που μπορούν να κληθούν, μαζί με τα ονόματα και τις περιγραφές τους, όταν παρέχονται από τον διακομιστή.

  • Ρυθμίσεις έτοιμες για αντιγραφή

    Χρησιμοποιήστε τα αποσπάσματα εγκατάστασης για να ρυθμίσετε αυτόν τον διακομιστή στην εφαρμογή-πελάτη MCP που προτιμάτε.

  • Δείκτες ενδιαφέροντος για τον ανοιχτό κώδικα

    107 αστέρια και 12 διακλαδώσεις στο συνδεδεμένο αποθετήριο.

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.

Χρησιμοποιήστε το MCP GitHits CLI με πολλά μοντέλα AI

Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας. Έτσι, μόλις συνδεθεί το GitHits CLI, μπορείτε να το χρησιμοποιείτε με διαφορετικά μοντέλα AI στο TypingMind, αντί να το ρυθμίζετε ξεχωριστά για κάθε μοντέλο. Αυτή η ενσωμάτωση MCP εκτελείται τοπικά στη συσκευή σας μέσω του συνδέσμου MCP του TypingMind.

Οδηγός ρύθμισης για τη χρήση του τοπικού συνδέσμου

Επιλέξτε αυτή τη μέθοδο όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές ή ιδιωτικούς πόρους στον υπολογιστή σας.

1

Ανοίξτε τις ρυθμίσεις MCP

Στο TypingMind, μεταβείτε στις «Ρυθμίσεις», έπειτα στις «Σύνθετες ρυθμίσεις» και στο «Model Context Protocol» και επιλέξτε «Ρύθμιση συνδέσμου».

  1. Ανοίξτε το TypingMind στο πρόγραμμα περιήγησής σας.
  2. Κάντε κλικ στο εικονίδιο «Ρυθμίσεις».
  3. Μεταβείτε στις «Σύνθετες ρυθμίσεις».
  4. Ανοίξτε την ενότητα Model Context Protocol.
  5. Κάντε κλικ στην επιλογή «Ρύθμιση συνδέσμου» και επιλέξτε «Αυτή η συσκευή».
Οθόνη ρύθμισης συνδέσμου MCP του TypingMind με επιλεγμένη την επιλογή «Αυτή η συσκευή»
2

Εκτελέστε την εντολή του συνδέσμου

Επιλέξτε «Αυτή η συσκευή», αντιγράψτε την εντολή από το TypingMind και εκτελέστε την στο Τερματικό. Διατηρήστε τη διεργασία σε λειτουργία όσο χρησιμοποιείτε το MCP.

  1. Αντιγράψτε την εντολή ρύθμισης που εμφανίζεται στο TypingMind.
  2. Ανοίξτε το Τερματικό στο macOS ή το Windows Terminal στα Windows.
  3. Επικολλήστε και εκτελέστε την εντολή.
  4. Εγκρίνετε την εγκατάσταση του πακέτου, αν το Τερματικό σάς ζητήσει επιβεβαίωση για να συνεχίσει.
  5. Διατηρήστε ανοιχτό το παράθυρο του Τερματικού και τη διεργασία σε λειτουργία όσο χρησιμοποιείτε εργαλεία MCP.
3

Προσθέστε το GitHits CLI ως διακομιστή

Όταν η κατάσταση του συνδέσμου είναι «Έτοιμος», κάντε κλικ στο «Αλλαγή servers» και επικολλήστε τις ρυθμίσεις του διακομιστή MCP.

  1. Περιμένετε μέχρι η κατάσταση του συνδέσμου να εμφανιστεί ως «Έτοιμος».
  2. Κάντε κλικ στο «Αλλαγή servers».
  3. Επικολλήστε τις ρυθμίσεις του διακομιστή MCP GitHits CLI.
  4. Αποθηκεύστε τη λίστα διακομιστών.
  5. Κάντε ανανέωση αν θέλετε να επιβεβαιώσετε ότι ο σύνδεσμος παραμένει έτοιμος για χρήση.
Ρυθμίσεις MCP του TypingMind με ενεργό διακομιστή και το κουμπί «Αλλαγή servers»
{
  "mcpServers": {
    "githits-cli": {
      "command": "npx",
      "args": [
        "-y",
        "githits"
      ]
    }
  }
}
4

Χρησιμοποιήστε τη σύνδεση με διαφορετικά μοντέλα

Αποθηκεύστε τη λίστα διακομιστών, ανοίξτε τα «Πρόσθετα», ενεργοποιήστε τα εργαλεία MCP του GitHits CLI και έπειτα επιλέξτε οποιοδήποτε υποστηριζόμενο μοντέλο AI στο TypingMind. Χρησιμοποιήστε τα εργαλεία στη συνομιλία ή αναθέστε τα σε έναν πράκτορα AI.

  1. Ανοίξτε τη σελίδα «Πρόσθετα» στο TypingMind.
  2. Ενεργοποιήστε τα εργαλεία MCP του GitHits CLI.
  3. Ξεκινήστε μια συνομιλία και επιλέξτε το μοντέλο AI που θέλετε να χρησιμοποιήσετε.
  4. Χρησιμοποιήστε τα εργαλεία MCP στη συνομιλία ή αντιστοιχίστε τα σε έναν πράκτορα AI.
  5. Μεταβείτε σε άλλο μοντέλο AI όποτε χρειάζεται, χωρίς να συνδέσετε ξανά το MCP.
Συνομιλία στο TypingMind με ενεργοποιημένα εργαλεία MCP και επιλεγμένο μοντέλο AI
Θα με βοηθήσετε σε αυτό μέσω GitHits CLI;
GitHits CLI
Βεβαίως. Το διάβασα.
Δείτε τι βρήκα μέσω του GitHits CLI.

Συχνές ερωτήσεις

Σε τι χρησιμεύει ο διακομιστής MCP GitHits CLI;

Το GitHits CLI είναι ένας διακομιστής MCP που επιτρέπει σε συμβατές εφαρμογές AI να συνδέονται με εξωτερικά εργαλεία και πληροφορίες πλαισίου. Στο TypingMind, μπορείτε να προσθέσετε αυτόν τον διακομιστή MCP μία φορά και να κάνετε τα εργαλεία του διαθέσιμα στον χώρο εργασίας AI σας.

Μπορώ να χρησιμοποιήσω το GitHits CLI MCP με πολλά μοντέλα AI στο TypingMind;

Ναι. Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας, ώστε να μπορείτε να χρησιμοποιείτε το GitHits CLI με διαφορετικά μοντέλα AI, όπως τα Claude, ChatGPT, Gemini ή άλλα μοντέλα που έχετε ρυθμίσει στο TypingMind, χωρίς να ρυθμίζετε τον διακομιστή MCP ξεχωριστά για κάθε μοντέλο.

Γιατί να χρησιμοποιήσετε τον σύνδεσμο MCP GitHits CLI με το TypingMind;

Το TypingMind είναι ένα από τα καλύτερα περιβάλλοντα συνομιλίας με μεγάλα γλωσσικά μοντέλα, καθώς συγκεντρώνει πολλά μοντέλα AI, προτροπές, πρόσθετα, πράκτορες AI, κλειδιά API και εργαλεία MCP σε έναν χώρο εργασίας. Συνδέοντας το GitHits CLI, μπορείτε να χρησιμοποιείτε τα εργαλεία MCP του με τα μοντέλα που προτιμάτε, διατηρώντας οργανωμένη τη ροή εργασίας των συνομιλιών σας στο TypingMind.

Πώς συνδέω το GitHits CLI MCP στο TypingMind;

Το GitHits CLI λειτουργεί μέσω του τοπικού συνδέσμου MCP του TypingMind. Αυτή είναι η καλύτερη επιλογή όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές υπολογιστή, εργαλεία γραμμής εντολών ή ιδιωτικούς πόρους στον υπολογιστή σας.

Ποια εργαλεία παρέχει το GitHits CLI MCP στο TypingMind;

Το GitHits CLI διαθέτει 15 εργαλεία MCP που μπορείτε να ενεργοποιήσετε από τη σελίδα Πρόσθετα του TypingMind και να χρησιμοποιήσετε σε συνομιλίες ή να αναθέσετε σε πράκτορες AI.

Χρειάζεται να κοινοποιήσω τα κλειδιά API μου στο TypingMind για να χρησιμοποιήσω το GitHits CLI MCP;

Όχι. Το TypingMind δίνει προτεραιότητα στην τοπική λειτουργία και σας επιτρέπει να διατηρείτε τον έλεγχο των παρόχων μοντέλων, των κλειδιών API, των προτροπών και των ρυθμίσεων MCP σας. Αν το GitHits CLI απαιτεί έλεγχο ταυτότητας, προσθέστε τις απαιτούμενες κεφαλίδες, τις ρυθμίσεις OAuth ή τις τοπικές ρυθμίσεις για τον συγκεκριμένο διακομιστή MCP κατά τη δημιουργία της σύνδεσης.

Σχετικοί διακομιστές MCP

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇