Elffuss BraidHub

kikocis/continue public

3ff29c567dd0 · 11.0 KiBRawPermalink
1---
2title: "Context Providers (Deprecated)"
3description: "These context providers have been deprecated and are no longer actively maintained. They remain documented here for reference purposes only."
4noindex: true
5---
6
7<Warning>
8The context providers documented on this page have been deprecated and are no longer actively maintained. We recommend using alternative solutions or the Model Context Protocol (MCP) for similar functionality. These providers may be removed in future versions.
9</Warning>
10
11## Deprecated Providers
12
13The following context providers have been deprecated but are kept here for reference. If you're currently using any of these providers, consider migrating to alternative solutions.
14
15### `@Greptile`
16
17Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
18
19<Tabs>
20 <Tab title="YAML">
21 ```yaml config.yaml
22 context:
23 - provider: greptile
24 params:
25 greptileToken: "..."
26 githubToken: "..."
27 ```
28 </Tab>
29 <Tab title="JSON">
30 ```json config.json
31 {
32 "contextProviders": [
33 {
34 "name": "greptile",
35 "params": { "GreptileToken": "...", "GithubToken": "..." }
36 }
37 ]
38 }
39```
40 </Tab>
41</Tabs>
42
43### `@Commits`
44
45Reference specific git commit metadata and diff or all of the recent commits.
46
47<Tabs>
48 <Tab title="YAML">
49 ```yaml config.yaml
50 context:
51 - provider: commit
52 params:
53 Depth: 50
54 LastXCommitsDepth: 10
55 ```
56 </Tab>
57 <Tab title="JSON">
58 ```json config.json
59 {
60 "contextProviders": [
61 { "name": "commit", "params": { "Depth": 50, "LastXCommitsDepth": 10 } }
62 ]
63 }
64 ```
65 </Tab>
66</Tabs>
67
68The depth is how many commits will be loaded into the submenu, defaults to 50. The LastXCommitsDepth is how many recent commits will be included, defaults to 10.
69
70### `@Discord`
71
72Reference the messages in a Discord channel.
73
74<Tabs>
75 <Tab title="YAML">
76 ```yaml config.yaml
77 context:
78 - provider: discord
79 params:
80 discordKey: "bot token"
81 guildId: "1234567890"
82 channels:
83 - id: "123456"
84 name: "example-channel"
85 - id: "678901"
86 name: "example-channel-2"
87 ```
88 </Tab>
89 <Tab title="JSON">
90 ```json config.json
91 {
92 "contextProviders": [
93 {
94 "name": "discord",
95 "params": {
96 "discordKey": "bot token",
97 "guildId": "1234567890",
98 "channels": [
99 { "id": "123456", "name": "example-channel" },
100 { "id": "678901", "name": "example-channel-2" }
101 ]
102 }
103 }
104 ]
105 }
106```
107 </Tab>
108</Tabs>
109
110Make sure to include your own [Bot Token](https://discord.com/developers/applications), and join it to your related server . If you want more granular control over which channels are searched, you can specify a list of channel IDs to search in. If you don't want to specify any channels, just include the guild id(Server ID) and all channels will be included. The provider only reads text channels.
111
112### `@Jira`
113
114Reference the conversation in a Jira issue.
115
116<Tabs>
117 <Tab title="YAML">
118 ```yaml config.yaml
119 context:
120 - provider: jira
121 params:
122 domain: company.atlassian.net
123 token: ATATT...
124 ```
125 </Tab>
126 <Tab title="JSON">
127 ```json config.json
128 {
129 "contextProviders": [
130 {
131 "name": "jira",
132 "params": { "domain": "company.atlassian.net", "token": "ATATT..." }
133 }
134 ]
135 }
136```
137 </Tab>
138</Tabs>
139
140Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email.
141
142#### Jira Datacenter Support
143
144This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property.
145
146<Tabs>
147 <Tab title="YAML">
148 ```yaml config.yaml
149 context:
150 - provider: jira
151 params:
152 apiVersion: "2"
153 ```
154 </Tab>
155 <Tab title="JSON">
156 ```json config.json
157 { "contextProviders": [{ "name": "jira", "params": { "apiVersion": "2" } }] }
158 ```
159 </Tab>
160</Tabs>
161
162#### Issue Query
163
164By default, the following query will be used to find issues:
165
166```
167assignee = currentUser() AND resolution = Unresolved order by updated DESC
168```
169
170You can override this query by setting the `issueQuery` parameter.
171
172#### Max results
173
174You can set the `maxResults` parameter to limit the number of results returned. The default is `50`.
175
176### `@Gitlab Merge Request`
177
178Reference an open MR for this branch on GitLab.
179
180<Tabs>
181 <Tab title="YAML">
182 ```yaml config.yaml
183 context:
184 - provider: gitlab-mr
185 params:
186 token: "..."
187 ```
188 </Tab>
189 <Tab title="JSON">
190 ```json config.json
191 { "contextProviders": [{ "name": "gitlab-mr", "params": { "token": "..." } }] }
192 ```
193 </Tab>
194</Tabs>
195
196You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope.
197
198#### Using Self-Hosted GitLab
199
200You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
201
202<Tabs>
203 <Tab title="YAML">
204 ```yaml config.yaml
205 context:
206 - provider: gitlab-mr
207 params:
208 token: "..."
209 domain: "gitlab.example.com"
210 ```
211 </Tab>
212 <Tab title="JSON">
213 ```json config.json
214 {
215 "contextProviders": [
216 {
217 "name": "gitlab-mr",
218 "params": { "token": "...", "domain": "gitlab.example.com" }
219 }
220 ]
221 }
222```
223 </Tab>
224</Tabs>
225
226#### Filtering Comments
227
228If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`.
229
230### `@Google`
231
232Reference the results of a Google search.
233
234<Tabs>
235 <Tab title="YAML">
236 ```yaml config.yaml
237 context:
238 - provider: google
239 params:
240 serperApiKey: <YOUR_SERPER.DEV_API_KEY>
241 ```
242 </Tab>
243 <Tab title="JSON">
244 ```json config.json
245 {
246 "contextProviders": [
247 {
248 "name": "google",
249 "params": { "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>" }
250 }
251 ]
252 }
253```
254 </Tab>
255</Tabs>
256
257For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
258
259Note: You can get an API key for free at [serper.dev](https://serper.dev).
260
261### @Database Context Provider – Reference Database Table Schemas
262
263Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
264
265<Tabs>
266 <Tab title="YAML">
267 ```yaml config.yaml
268 context:
269 - provider: database
270 params:
271 connections:
272 - name: examplePostgres
273 connection_type: postgres
274 connection:
275 user: username
276 host: localhost
277 database: exampleDB
278 password: yourPassword
279 port: 5432
280 - name: exampleMssql
281 connection_type: mssql
282 connection:
283 user: username
284 server: localhost
285 database: exampleDB
286 password: yourPassword
287 - name: exampleSqlite
288 connection_type: sqlite
289 connection:
290 filename: /path/to/your/sqlite/database.db
291 ```
292 </Tab>
293 <Tab title="JSON">
294 ```json config.json
295 {
296 "contextProviders": [
297 {
298 "name": "database",
299 "params": {
300 "connections": [
301 {
302 "name": "examplePostgres",
303 "connection_type": "postgres",
304 "connection": {
305 "user": "username",
306 "host": "localhost",
307 "database": "exampleDB",
308 "password": "yourPassword",
309 "port": 5432
310 }
311 },
312 {
313 "name": "exampleMssql",
314 "connection_type": "mssql",
315 "connection": {
316 "user": "username",
317 "server": "localhost",
318 "database": "exampleDB",
319 "password": "yourPassword"
320 }
321 },
322 {
323 "name": "exampleSqlite",
324 "connection_type": "sqlite",
325 "connection": { "filename": "/path/to/your/sqlite/database.db" }
326 }
327 ]
328 }
329 }
330 ]
331 }
332```
333 </Tab>
334</Tabs>
335
336Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type.
337
338Available connection types:
339
340- `postgres`
341- `mysql`
342- `sqlite`
343
344### `@Issue`
345
346Reference the conversation in a GitHub issue.
347
348<Tabs>
349 <Tab title="YAML">
350 ```yaml config.yaml
351 context:
352 - provider: issue
353 params:
354 repos:
355 - owner: continuedev
356 repo: continue
357 githubToken: ghp_xxx
358 ```
359 </Tab>
360 <Tab title="JSON">
361 ```json config.json
362 {
363 "contextProviders": [
364 {
365 "name": "issue",
366 "params": {
367 "repos": [{ "owner": "continuedev", "repo": "continue" }],
368 "githubToken": "ghp_xxx"
369 }
370 }
371 ]
372 }
373```
374 </Tab>
375</Tabs>
376
377Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited.
378
379### `@Url`
380
381Reference the markdown converted contents of a given URL.
382
383<Tabs>
384 <Tab title="YAML">
385 ```yaml config.yaml
386 context:
387 - provider: url
388 ```
389 </Tab>
390 <Tab title="JSON">
391 ```json config.json
392 { "contextProviders": [{ "name": "url" }] }
393 ```
394 </Tab>
395</Tabs>
396
397### `@Search`
398
399Reference the results of codebase search, just like the results you would get from VS Code search.
400
401<Tabs>
402 <Tab title="YAML">
403 ```yaml config.yaml
404 context:
405 - provider: search
406 params:
407 maxResults: 100 # optional, defaults to 200
408 ```
409 </Tab>
410 <Tab title="JSON">
411 ```json config.json
412 {
413 "contextProviders": [
414 {
415 "name": "search",
416 "params": {
417 "maxResults": 100 // optional, defaults to 200
418 }
419 }
420 ]
421 }
422 ```
423 </Tab>
424</Tabs>
425
426This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
427
428### `@Web`
429
430Reference relevant pages from across the web, automatically determined from your input.
431
432Optionally, set `n` to limit the number of results returned (default 6).
433
434<Tabs>
435 <Tab title="YAML">
436 ```yaml config.yaml
437 context:
438 - provider: web
439 params:
440 n: 5
441 ```
442 </Tab>
443 <Tab title="JSON">
444 ```json config.json
445 { "contextProviders": [{ "name": "web", "params": { "n": 5 } }] }
446 ```
447 </Tab>
448</Tabs>