githits 0.1.8 → 0.1.9

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.
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "GitHits plugins for Claude Code - code examples from global open source",
9
- "version": "0.1.8"
9
+ "version": "0.1.9"
10
10
  },
11
11
  "plugins": [
12
12
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githits",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Code examples from global open source for developers and AI assistants",
5
5
  "author": {
6
6
  "name": "GitHits"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "githits",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Code examples from global open source for developers and AI assistants",
5
5
  "author": {
6
6
  "name": "GitHits"
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 a `search` tool it will use automatically when it needs code examples.
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. The assistant gets three tools:
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,15 @@ 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 | — |
151
177
 
152
178
  ## Manual Setup
153
179
 
154
180
  If your tool is not in the supported `githits init` list, configure GitHits manually.
155
181
 
182
+ 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.
183
+
156
184
  Use this MCP server command in your tool's MCP config (the host/agent runs this command):
157
185
 
158
186
  ```sh