githits 0.1.8 → 0.1.10
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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.plugin/plugin.json +1 -1
- package/README.md +31 -2
- package/dist/cli.js +8176 -698
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-6w8an8m7.js → chunk-5g0k8452.js} +1 -1
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
package/.plugin/plugin.json
CHANGED
package/README.md
CHANGED
|
@@ -82,11 +82,13 @@ For plugin-based hosts, install from npm/GitHub using your agent's plugin workfl
|
|
|
82
82
|
- **GitHub Copilot**: supports Open Plugin components
|
|
83
83
|
- **Gemini CLI**: supports `gemini-extension.json` and `GEMINI.md`
|
|
84
84
|
|
|
85
|
-
That's it. Your assistant now has
|
|
85
|
+
That's it. Your assistant now has GitHits search tools, and on accounts with package/source access enabled it also gets dependency inspection tools.
|
|
86
86
|
|
|
87
87
|
## How It Works
|
|
88
88
|
|
|
89
|
-
GitHits runs as an [MCP server](https://modelcontextprotocol.io/) that your AI assistant connects to over stdio.
|
|
89
|
+
GitHits runs as an [MCP server](https://modelcontextprotocol.io/) that your AI assistant connects to over stdio.
|
|
90
|
+
|
|
91
|
+
Core tools available in every authenticated session:
|
|
90
92
|
|
|
91
93
|
| Tool | Purpose |
|
|
92
94
|
|---|---|
|
|
@@ -96,6 +98,21 @@ GitHits runs as an [MCP server](https://modelcontextprotocol.io/) that your AI a
|
|
|
96
98
|
|
|
97
99
|
The assistant decides when to call these tools on its own — typically when it's stuck, needs a working example for an unfamiliar API, or encounters an error it can't resolve from its training data alone.
|
|
98
100
|
|
|
101
|
+
When package/source access is enabled for the current token, GitHits also exposes these capability-gated tools:
|
|
102
|
+
|
|
103
|
+
| Tool | Purpose |
|
|
104
|
+
|---|---|
|
|
105
|
+
| `package_summary` | Quick package overview: version, license, downloads, quickstart, advisories |
|
|
106
|
+
| `package_vulnerabilities` | CVE / OSV advisories for a package or specific version |
|
|
107
|
+
| `package_dependencies` | Direct dependencies, dependency groups, and optional transitive graph |
|
|
108
|
+
| `package_changelog` | Release notes / changelog entries for a package or GitHub repo |
|
|
109
|
+
| `search_symbols` | Exact-token search inside indexed dependency source |
|
|
110
|
+
| `list_files` | Discover what files a dependency or repo contains |
|
|
111
|
+
| `read_file` | Read a dependency file by path |
|
|
112
|
+
| `grep_file` | Search for a case-insensitive substring within one file |
|
|
113
|
+
|
|
114
|
+
These advanced tools remain feature-gated. The MCP server advertises them only when the authenticated token is entitled to package/source access.
|
|
115
|
+
|
|
99
116
|
### License Filtering
|
|
100
117
|
|
|
101
118
|
Search results respect license filtering by default, excluding copyleft-licensed code. Three modes are available:
|
|
@@ -141,6 +158,13 @@ githits mcp start Always start MCP server (for use in MCP config files)
|
|
|
141
158
|
githits auth status Show current authentication status
|
|
142
159
|
```
|
|
143
160
|
|
|
161
|
+
When package/source access is enabled for the current token, two extra command groups are also available:
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
githits pkg ... Package metadata: overview, advisories, deps, changelog
|
|
165
|
+
githits code ... Dependency source inspection: search, files, read, grep
|
|
166
|
+
```
|
|
167
|
+
|
|
144
168
|
## Environment Variables
|
|
145
169
|
|
|
146
170
|
| Variable | Purpose | Default |
|
|
@@ -148,11 +172,16 @@ githits auth status Show current authentication status
|
|
|
148
172
|
| `GITHITS_API_TOKEN` | API token for authentication | — |
|
|
149
173
|
| `GITHITS_MCP_URL` | Override MCP server URL | `https://mcp.githits.com` |
|
|
150
174
|
| `GITHITS_API_URL` | Override REST API URL | `https://api.githits.com` |
|
|
175
|
+
| `GITHITS_CODE_NAV_URL` | Override package/source service URL | environment-specific |
|
|
176
|
+
| `GITHITS_CODE_NAVIGATION` | Expose hidden `pkg` / `code` command groups locally | — |
|
|
177
|
+
| `GITHITS_TELEMETRY` | Emit end-of-run timing spans to stderr for local profiling | — |
|
|
151
178
|
|
|
152
179
|
## Manual Setup
|
|
153
180
|
|
|
154
181
|
If your tool is not in the supported `githits init` list, configure GitHits manually.
|
|
155
182
|
|
|
183
|
+
The same MCP server command exposes both the core search tools and, when your token is entitled, the package/source inspection tools. No separate install is required.
|
|
184
|
+
|
|
156
185
|
Use this MCP server command in your tool's MCP config (the host/agent runs this command):
|
|
157
186
|
|
|
158
187
|
```sh
|