Elffuss BraidHub

kikocis/continue public

feat: continue docs mcp server (#6543)

* docs: return autocomplete setup

* fix broken links

* adds redirects

* adds missing files and redirect

* fix build

* add continue-mcp server

* docs

* fix mcpServer
Changesetc66805f650c8a7b77292065450548027f3e12c23e61e2a86d8d148063b1445ea
AuthorBrian Douglas <bdougie@users.noreply.github.com> · 2025-07-10 13:27 -07:00
CommitterGitHub <noreply@github.com> · 2025-07-10 13:27 -07:00
Parents68b6990184f7

Browse the files at this changeset

15 files changed

added .continue/mcpServers/continue-docs-mcp.yaml +11 −0
@@ -0,0 +1,11 @@
1+name: Continue Documentation MCP
2+version: 0.0.1
3+schema: v1
4+mcpServers:
5+ - name: Continue Docs Search
6+ type: stdio
7+ command: npx
8+ args:
9+ - mint-mcp
10+ - add
11+ - continue-docs
modified docs/docs/customize/deep-dives/mcp.mdx +40 −0
@@ -60,6 +60,46 @@
6060
6161 ![playwright mcp](/img/mcp-playwright.png)
6262
63+## Continue Documentation Search
64+
65+You can set up an MCP server to search the Continue documentation directly from your agent. This is particularly useful for getting help with Continue configuration and features.
66+
67+1. Create a folder called `.continue/mcpServers` at the top level of your workspace
68+2. Add a file called `continue-docs-mcp.yaml` to this folder
69+3. Write the following contents and save:
70+
71+```yaml title=".continue/mcpServers/continue-docs-mcp.yaml"
72+name: Continue Documentation MCP
73+version: 0.0.1
74+schema: v1
75+mcpServers:
76+ - name: Continue Docs Search
77+ type: stdio
78+ command: npx
79+ args:
80+ - mint-mcp
81+ - add
82+ - continue-docs
83+```
84+
85+Now you can search the Continue documentation by asking questions like:
86+
87+```
88+Search for model setup instructions in the Continue docs
89+```
90+
91+```
92+Find documentation about context providers
93+```
94+
95+```
96+How do I configure autocomplete in Continue?
97+```
98+
99+The MCP server will search the Continue documentation and provide relevant information to help with your questions.
100+
101+For detailed setup instructions and troubleshooting, see the [Continue MCP Reference](/reference/continue-mcp).
102+
63103 ## Using MCP Servers
64104
65105 To set up your own MCP server, read the [MCP
added docs/docs/features/agent/context-selection.mdx +3 −0
@@ -0,0 +1,3 @@
1+You can use the same methods to manually add context as [Chat](/features/chat/context-selection).
2+
3+Tool call responses are automatically included as context items. This enables Agent mode to see the result of the previous action and decide what to do next.
added docs/docs/features/agent/how-to-customize.mdx +27 −0
@@ -0,0 +1,27 @@
1+## Add Rules Blocks
2+
3+Adding Rules can be done in your assistant locally or in the Hub. You can explore Rules on the Continue Hub and refer to the [Rules deep dive](/customize/deep-dives/rules) for more details.
4+
5+## Add MCP Tools
6+
7+You can add MCP servers to your assistant to give Agent access to more tools. Explore [MCP Servers on the Hub](https://hub.continue.dev) and consult the [MCP guide](/customize/deep-dives/mcp) for more details.
8+
9+## Tool Policies
10+
11+You can adjust the Agent's tool usage behavior to three options:
12+
13+- **Ask First (default)**: Request user permission with "Cancel" and "Continue" buttons
14+- **Automatic**: Automatically call the tool without requesting permission
15+- **Excluded**: Do not send the tool to the model
16+
17+:::warning
18+Be careful setting tools to "automatic" if their behavior is not read-only.
19+:::
20+
21+To manage tool policies:
22+
23+1. Click the tools icon in the input toolbar
24+2. View and change policies by clicking on the policy text
25+3. You can also toggle groups of tools on/off
26+
27+Tool policies are stored locally per user.
added docs/docs/features/agent/model-setup.mdx +14 −0
@@ -0,0 +1,14 @@
1+We recommend **Claude 3.5 Sonnet** from Anthropic for the best Agent experience.
2+
3+- [Add Claude 3.5 Sonnet to your assistant from the hub](https://hub.continue.dev/anthropic/claude-3-5-sonnet-20241022)
4+- Get your API key from the [Anthropic console](https://console.anthropic.com/)
5+
6+## Other recommended models
7+
8+- [Claude Sonnet 4 from Anthropic](https://hub.continue.dev/anthropic)
9+- [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o)
10+- [Gemini 2.0 Pro from Google](https://hub.continue.dev/google/gemini-2.0-pro)
11+
12+Agent can be used with models that support tool use through Continue. The best chat models generally support tool use.
13+
14+For more information on models, check out [our recommended chat models](/features/chat/model-setup).
added docs/docs/features/chat/context-selection.mdx +39 −0
@@ -0,0 +1,39 @@
1+## Input
2+
3+Typing a question or instructions into the input box is the only required context.
4+
5+## Highlighted Code
6+
7+The highlighted code you've selected by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) will be included in your prompt.
8+
9+## Active File
10+
11+You can include the currently open file as context by pressing opt/alt + enter when you send your request.
12+
13+## Specific File
14+
15+You can include a specific file in your current workspace by typing '@Files' and selecting the file.
16+
17+## Specific Folder
18+
19+You can include a folder in your current workspace by typing '@Folder' and selecting the directory.
20+
21+## Codebase Search
22+
23+You can automatically include relevant files from your codebase by typing '@Codebase'.
24+
25+## Documentation Site
26+
27+You can include a documentation site as context by typing '@Docs' and selecting the site.
28+
29+## Terminal Contents
30+
31+You can include the contents of the terminal in your IDE by typing '@Terminal'.
32+
33+## Git Diff
34+
35+You can include all of the changes you've made to your current branch by typing '@Git Diff'.
36+
37+## Other Context
38+
39+You can see a full list of built-in context providers [here](/customize/custom-providers) and learn about how to create your own context provider [here](/guides/build-your-own-context-provider).
added docs/docs/features/chat/how-to-customize.mdx +7 −0
@@ -0,0 +1,7 @@
1+There are a number of different ways to customize Chat:
2+
3+- Add a `rules` block to give the model persistent instructions through the system prompt
4+- Configure `@Codebase`
5+- Configure `@Docs`
6+- [Build your own context provider](/guides/build-your-own-context-provider)
7+- [Create a custom code RAG](/guides/custom-code-rag)
added docs/docs/features/chat/model-setup.mdx +19 −0
@@ -0,0 +1,19 @@
1+We recommend setting up a model for the best experience.
2+
3+## Recommended Models
4+
5+Here's our primary model recommendation:
6+
7+**Claude 3.5 Sonnet** from Anthropic
8+
9+- [Add Claude 3.5 Sonnet to your assistant from the hub](https://hub.continue.dev/anthropic/claude-3-5-sonnet-20241022)
10+- Get your API key from the [Anthropic console](https://console.anthropic.com/)
11+
12+Other top models to consider:
13+
14+- [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o)
15+- [Grok-2 from xAI](https://hub.continue.dev/xai/grok-2)
16+- [Gemini 2.0 Flash from Google](https://hub.continue.dev/google/gemini-2.0-flash)
17+- [Llama 3.1 8b from Meta (local)](https://hub.continue.dev/ollama/llama3.1)
18+
19+For more detailed setup instructions, see [here](/getting-started/install#setup-your-first-model).
added docs/docs/features/edit/context-selection.mdx +11 −0
@@ -0,0 +1,11 @@
1+## Input
2+
3+The input you provide is included in the prompt.
4+
5+## Code to Edit
6+
7+The **entire contents** of each file (the current file for Jetbrains inline Edit, the `Code to Edit` item for VS Code Edit mode) are included in the prompt for context. The model will only attempt to edit the highlighted/specified ranges.
8+
9+## Context Providers
10+
11+In VS Code Edit mode, you can use `@` to add context using [Context Providers](/customize/custom-providers), similar to [Chat](/features/chat/context-selection). Some context providers may be disabled in Edit mode.
added docs/docs/features/edit/how-to-customize.mdx +9 −0
@@ -0,0 +1,9 @@
1+## Setting active Edit/Apply model
2+
3+You can configure particular models from your Assistant to be used for Edit and Apply requests.
4+
5+1. Click the 3 dots above the main input
6+2. Click the cube icon to expand the "Models" section
7+3. Use the dropdowns to select models for Edit and Apply
8+
9+Learn more about the [Edit role](/customize/model-roles/edit) and [Apply role](/customize/model-roles/apply).
added docs/docs/features/edit/model-setup.mdx +14 −0
@@ -0,0 +1,14 @@
1+By default, Edit uses the same model as Chat. We recommend **Claude 3.5 Sonnet** from Anthropic.
2+
3+[Explore other Edit models on the Continue Hub →](https://hub.continue.dev)
4+
5+## Apply Model
6+
7+We also recommend setting up an Apply model for the best Edit experience.
8+
9+**Recommended Apply models:**
10+
11+- [Morph v0 Fast Apply](https://hub.continue.dev)
12+- [Relace Instant Apply](https://hub.continue.dev)
13+
14+[Explore other Apply models on the Continue Hub →](https://hub.continue.dev)
added docs/docs/reference/continue-mcp.mdx +154 −0
@@ -0,0 +1,154 @@
1+---
2+title: Continue Documentation MCP Server
3+description: Set up an MCP server to search Continue documentation
4+keywords: [mcp, documentation, search, mintlify, reference]
5+---
6+
7+# Continue Documentation MCP Server
8+
9+The Continue Documentation MCP Server allows you to search and retrieve information from the Continue documentation directly within your agent conversations. This is powered by Mintlify's MCP server generation.
10+
11+## Installation
12+
13+### Step 1: Install the MCP Server
14+
15+Run the following command to install the Continue documentation MCP server:
16+
17+```bash
18+npx mint-mcp add continue-docs
19+```
20+
21+This will:
22+
23+- Download and install the MCP server locally
24+- Set up the search tool for Continue documentation
25+- Create the necessary configuration files
26+
27+### Step 2: Configure Continue
28+
29+1. Create a folder called `.continue/mcpServers` at the top level of your workspace
30+2. Add a file called `continue-docs-mcp.yaml` to this folder
31+3. Write the following contents and save:
32+
33+```yaml title=".continue/mcpServers/continue-docs-mcp.yaml"
34+name: Continue Documentation MCP
35+version: 0.0.1
36+schema: v1
37+mcpServers:
38+ - name: Continue Docs Search
39+ type: stdio
40+ command: npx
41+ args:
42+ - mint-mcp
43+ - add
44+ - continue-docs
45+```
46+
47+### Step 3: Enable Agent Mode
48+
49+MCP servers only work in agent mode. Make sure to switch to agent mode in Continue before testing.
50+
51+## Usage Examples
52+
53+Once configured, you can use the MCP server to search Continue documentation:
54+
55+### Model Configuration Help
56+
57+```
58+Search for model setup instructions in the Continue docs
59+```
60+
61+### Context Providers
62+
63+```
64+Find documentation about context providers and how to configure them
65+```
66+
67+### Autocomplete Setup
68+
69+```
70+How do I configure autocomplete in Continue?
71+```
72+
73+### Slash Commands
74+
75+```
76+Search for information about custom slash commands
77+```
78+
79+### Troubleshooting
80+
81+```
82+Find troubleshooting information for Continue extension issues
83+```
84+
85+## Test Plan
86+
87+Use this test plan to verify your MCP server is working correctly:
88+
89+### Prerequisites
90+
91+- Continue extension is installed and running
92+- Agent mode is enabled
93+- MCP server configuration file exists in `.continue/mcpServers/`
94+
95+### Test Cases
96+
97+#### 1. Basic Documentation Search
98+
99+- **Query**: "Search the Continue docs for information about model setup"
100+- **Expected**: Returns structured information about configuring models
101+- **Pass/Fail**: ☐
102+
103+#### 2. Context Provider Documentation
104+
105+- **Query**: "Find documentation about context providers in Continue"
106+- **Expected**: Returns information about available context providers
107+- **Pass/Fail**: ☐
108+
109+#### 3. Feature-Specific Search
110+
111+- **Query**: "How do I configure autocomplete in Continue?"
112+- **Expected**: Returns autocomplete setup instructions
113+- **Pass/Fail**: ☐
114+
115+#### 4. MCP Documentation Search
116+
117+- **Query**: "Search for MCP server setup instructions"
118+- **Expected**: Returns MCP configuration information
119+- **Pass/Fail**: ☐
120+
121+## Troubleshooting
122+
123+### MCP Server Not Loading
124+
125+1. **Check configuration**: Ensure your YAML configuration uses the npx command approach
126+2. **Verify installation**: Run `npx mint-mcp add continue-docs` to confirm the server can be accessed
127+3. **Check agent mode**: MCP servers only work in agent mode
128+4. **Restart Continue**: Try restarting the Continue extension
129+
130+### No Search Results
131+
132+1. **Verify connection**: The MCP server needs internet access to search the documentation
133+2. **Check query format**: Try rephrasing your search query
134+3. **Test with known topics**: Search for well-documented features like "model configuration"
135+
136+### Permission Issues
137+
138+If you encounter permission errors, ensure npx has proper permissions:
139+
140+```bash
141+npm config get prefix
142+```
143+
144+## Advanced Configuration
145+
146+### Using Environment Variables
147+
148+You can configure the MCP server with environment variables:
149+
150+## Related Documentation
151+
152+- [MCP Overview](/customize/deep-dives/mcp)
153+- [Agent Mode](/features/agent/quick-start)
154+- [Configuration](/customize/overview)
modified docs/docusaurus.config.js +37 −0
@@ -668,6 +668,43 @@
668668 to: "/customize/json-reference",
669669 from: ["/json-reference", "/advanced/json-reference"],
670670 },
671+ // New feature page redirects
672+ {
673+ to: "/features/chat/model-setup",
674+ from: "/chat/model-setup",
675+ },
676+ {
677+ to: "/features/chat/how-to-customize",
678+ from: "/chat/how-to-customize",
679+ },
680+ {
681+ to: "/features/chat/context-selection",
682+ from: "/chat/context-selection",
683+ },
684+ {
685+ to: "/features/edit/model-setup",
686+ from: "/edit/model-setup",
687+ },
688+ {
689+ to: "/features/edit/how-to-customize",
690+ from: "/edit/how-to-customize",
691+ },
692+ {
693+ to: "/features/edit/context-selection",
694+ from: "/edit/context-selection",
695+ },
696+ {
697+ to: "/features/agent/model-setup",
698+ from: "/agent/model-setup",
699+ },
700+ {
701+ to: "/features/agent/how-to-customize",
702+ from: "/agent/how-to-customize",
703+ },
704+ {
705+ to: "/features/agent/context-selection",
706+ from: "/agent/context-selection",
707+ },
671708 ],
672709 },
673710 ],
modified docs2/customize/deep-dives/mcp.mdx +40 −0
@@ -55,6 +55,46 @@
5555
5656 ![playwright mcp](/images/mcp-playwright.png)
5757
58+## Continue Documentation Search
59+
60+You can set up an MCP server to search the Continue documentation directly from your agent. This is particularly useful for getting help with Continue configuration and features.
61+
62+1. Create a folder called `.continue/mcpServers` at the top level of your workspace
63+2. Add a file called `continue-docs-mcp.yaml` to this folder
64+3. Write the following contents and save:
65+
66+```yaml title=".continue/mcpServers/continue-docs-mcp.yaml"
67+name: Continue Documentation MCP
68+version: 0.0.1
69+schema: v1
70+mcpServers:
71+ - name: Continue Docs Search
72+ type: stdio
73+ command: npx
74+ args:
75+ - mint-mcp
76+ - add
77+ - continue-docs
78+```
79+
80+Now you can search the Continue documentation by asking questions like:
81+
82+```
83+Search for model setup instructions in the Continue docs
84+```
85+
86+```
87+Find documentation about context providers
88+```
89+
90+```
91+How do I configure autocomplete in Continue?
92+```
93+
94+The MCP server will search the Continue documentation and provide relevant information to help with your questions.
95+
96+For detailed setup instructions and troubleshooting, see the [Continue MCP Reference](/reference/continue-mcp).
97+
5898 ## Using MCP Servers
5999
60100 To set up your own MCP server, read the [MCP
added docs2/reference/continue-mcp.mdx +154 −0
@@ -0,0 +1,154 @@
1+---
2+title: Continue Documentation MCP Server
3+description: Set up an MCP server to search Continue documentation
4+keywords: [mcp, documentation, search, mintlify, reference]
5+---
6+
7+# Continue Documentation MCP Server
8+
9+The Continue Documentation MCP Server allows you to search and retrieve information from the Continue documentation directly within your agent conversations. This is powered by Mintlify's MCP server generation.
10+
11+## Installation
12+
13+### Step 1: Install the MCP Server
14+
15+Run the following command to install the Continue documentation MCP server:
16+
17+```bash
18+npx mint-mcp add continue-docs
19+```
20+
21+This will:
22+
23+- Download and install the MCP server locally
24+- Set up the search tool for Continue documentation
25+- Create the necessary configuration files
26+
27+### Step 2: Configure Continue
28+
29+1. Create a folder called `.continue/mcpServers` at the top level of your workspace
30+2. Add a file called `continue-docs-mcp.yaml` to this folder
31+3. Write the following contents and save:
32+
33+```yaml title=".continue/mcpServers/continue-docs-mcp.yaml"
34+name: Continue Documentation MCP
35+version: 0.0.1
36+schema: v1
37+mcpServers:
38+ - name: Continue Docs Search
39+ type: stdio
40+ command: npx
41+ args:
42+ - mint-mcp
43+ - add
44+ - continue-docs
45+```
46+
47+### Step 3: Enable Agent Mode
48+
49+MCP servers only work in agent mode. Make sure to switch to agent mode in Continue before testing.
50+
51+## Usage Examples
52+
53+Once configured, you can use the MCP server to search Continue documentation:
54+
55+### Model Configuration Help
56+
57+```
58+Search for model setup instructions in the Continue docs
59+```
60+
61+### Context Providers
62+
63+```
64+Find documentation about context providers and how to configure them
65+```
66+
67+### Autocomplete Setup
68+
69+```
70+How do I configure autocomplete in Continue?
71+```
72+
73+### Slash Commands
74+
75+```
76+Search for information about custom slash commands
77+```
78+
79+### Troubleshooting
80+
81+```
82+Find troubleshooting information for Continue extension issues
83+```
84+
85+## Test Plan
86+
87+Use this test plan to verify your MCP server is working correctly:
88+
89+### Prerequisites
90+
91+- Continue extension is installed and running
92+- Agent mode is enabled
93+- MCP server configuration file exists in `.continue/mcpServers/`
94+
95+### Test Cases
96+
97+#### 1. Basic Documentation Search
98+
99+- **Query**: "Search the Continue docs for information about model setup"
100+- **Expected**: Returns structured information about configuring models
101+- **Pass/Fail**: ☐
102+
103+#### 2. Context Provider Documentation
104+
105+- **Query**: "Find documentation about context providers in Continue"
106+- **Expected**: Returns information about available context providers
107+- **Pass/Fail**: ☐
108+
109+#### 3. Feature-Specific Search
110+
111+- **Query**: "How do I configure autocomplete in Continue?"
112+- **Expected**: Returns autocomplete setup instructions
113+- **Pass/Fail**: ☐
114+
115+#### 4. MCP Documentation Search
116+
117+- **Query**: "Search for MCP server setup instructions"
118+- **Expected**: Returns MCP configuration information
119+- **Pass/Fail**: ☐
120+
121+## Troubleshooting
122+
123+### MCP Server Not Loading
124+
125+1. **Check configuration**: Ensure your YAML configuration uses the npx command approach
126+2. **Verify installation**: Run `npx mint-mcp add continue-docs` to confirm the server can be accessed
127+3. **Check agent mode**: MCP servers only work in agent mode
128+4. **Restart Continue**: Try restarting the Continue extension
129+
130+### No Search Results
131+
132+1. **Verify connection**: The MCP server needs internet access to search the documentation
133+2. **Check query format**: Try rephrasing your search query
134+3. **Test with known topics**: Search for well-documented features like "model configuration"
135+
136+### Permission Issues
137+
138+If you encounter permission errors, ensure npx has proper permissions:
139+
140+```bash
141+npm config get prefix
142+```
143+
144+## Advanced Configuration
145+
146+### Using Environment Variables
147+
148+You can configure the MCP server with environment variables:
149+
150+## Related Documentation
151+
152+- [MCP Overview](/customize/deep-dives/mcp)
153+- [Agent Mode](/features/agent/quick-start)
154+- [Configuration](/customize/overview)