@youdotcom-oss/mcp 1.3.1 → 1.3.3
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/AGENTS.md +149 -33
- package/README.md +63 -327
- package/bin/stdio.js +59 -41
- package/package.json +14 -4
- package/src/contents/contents.schemas.ts +55 -0
- package/src/contents/contents.utils.ts +145 -0
- package/src/express/express.schemas.ts +99 -0
- package/src/express/express.utils.ts +157 -0
- package/src/search/search.schemas.ts +126 -0
- package/src/search/search.utils.ts +142 -0
- package/src/shared/check-response-for-errors.ts +13 -0
- package/src/shared/format-search-results-text.ts +41 -0
package/README.md
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
# You.com MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The You.com MCP Server gives your AI agents **real-time access to the latest web information** through the [Model Context Protocol](https://modelcontextprotocol.io/). Search current content, get up-to-date answers, and extract live web pages—whether in your IDE or deployed agentic workflows. Built on MCP to **work everywhere your agents do**—one integration, unlimited compatibility across IDEs, frameworks, and production systems.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **Web and
|
|
8
|
-
- **AI-
|
|
9
|
-
- **Content
|
|
10
|
-
- **Multiple
|
|
7
|
+
- **Web and news search**: Comprehensive search using You.com's unified Search API with advanced search operators
|
|
8
|
+
- **AI-powered Express Agent**: Fast responses with optional real-time web search integration
|
|
9
|
+
- **Content extraction**: Extract and retrieve full content from web pages in markdown or HTML format
|
|
10
|
+
- **Multiple transport protocols**: STDIO and Streamable HTTP support
|
|
11
11
|
- **Bearer Token Authentication**: Secure API access in HTTP mode
|
|
12
|
-
- **TypeScript
|
|
13
|
-
- **Advanced
|
|
12
|
+
- **TypeScript support**: Full type safety with Zod schemas
|
|
13
|
+
- **Advanced search parameters**: Site filtering, file type filtering, language filtering, exact terms, and exclude terms
|
|
14
14
|
|
|
15
|
-
## Getting
|
|
15
|
+
## Getting started
|
|
16
16
|
|
|
17
17
|
Get up and running with the You.com MCP Server in 4 quick steps:
|
|
18
18
|
|
|
19
|
-
### 1. Get
|
|
19
|
+
### 1. Get your API key
|
|
20
20
|
|
|
21
21
|
Visit [you.com/platform/api-keys](https://you.com/platform/api-keys) to get your You.com API key. Keep this key secure - you'll need it for configuration.
|
|
22
22
|
|
|
23
|
-
### 2. Choose
|
|
23
|
+
### 2. Choose your setup
|
|
24
24
|
|
|
25
|
-
**Remote
|
|
25
|
+
**Remote server (recommended)** - No installation, always up-to-date, just add the URL and API key
|
|
26
26
|
- Use `https://api.you.com/mcp` with HTTP transport
|
|
27
27
|
- Authentication via `Authorization: Bearer <your-key>` header
|
|
28
28
|
|
|
29
|
-
**NPM
|
|
30
|
-
- Use `npx @youdotcom-oss/mcp` with
|
|
29
|
+
**NPM package** - Runs locally on your machine
|
|
30
|
+
- Use `npx @youdotcom-oss/mcp` with STDIO transport
|
|
31
31
|
- Authentication via `YDC_API_KEY` environment variable
|
|
32
32
|
- Requires Bun or Node.js
|
|
33
33
|
|
|
34
|
-
### 3. Configure
|
|
34
|
+
### 3. Configure your client
|
|
35
35
|
|
|
36
36
|
Choose your MCP client from the [detailed setup guides](#adding-to-your-mcp-client) below. Most clients use this basic structure:
|
|
37
37
|
|
|
38
|
-
**Remote
|
|
38
|
+
**Remote server (recommended):**
|
|
39
39
|
```json
|
|
40
40
|
{
|
|
41
41
|
"mcpServers": {
|
|
42
|
-
"ydc-
|
|
42
|
+
"ydc-server": {
|
|
43
43
|
"type": "http",
|
|
44
44
|
"url": "https://api.you.com/mcp",
|
|
45
45
|
"headers": { "Authorization": "Bearer <you-api-key>" }
|
|
@@ -48,11 +48,11 @@ Choose your MCP client from the [detailed setup guides](#adding-to-your-mcp-clie
|
|
|
48
48
|
}
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
**NPM
|
|
51
|
+
**NPM package:**
|
|
52
52
|
```json
|
|
53
53
|
{
|
|
54
54
|
"mcpServers": {
|
|
55
|
-
"ydc-
|
|
55
|
+
"ydc-server": {
|
|
56
56
|
"command": "npx",
|
|
57
57
|
"args": ["@youdotcom-oss/mcp"],
|
|
58
58
|
"env": { "YDC_API_KEY": "<you-api-key>" }
|
|
@@ -61,7 +61,13 @@ Choose your MCP client from the [detailed setup guides](#adding-to-your-mcp-clie
|
|
|
61
61
|
}
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
**Configuration notes:**
|
|
65
|
+
- Remote server recommended for most users (no installation, always up-to-date)
|
|
66
|
+
- NPM package for local usage or self-hosting scenarios
|
|
67
|
+
- HTTP transport for remote connections; STDIO transport for local packages
|
|
68
|
+
- API key always required (header for HTTP, environment variable for STDIO)
|
|
69
|
+
|
|
70
|
+
### 4. Test your setup
|
|
65
71
|
|
|
66
72
|
Ask your AI agent a simple query to verify everything works:
|
|
67
73
|
- "Search the web for the latest news about artificial intelligence"
|
|
@@ -74,322 +80,104 @@ Your agent will automatically use the appropriate tool based on your natural lan
|
|
|
74
80
|
|
|
75
81
|
Detailed configuration instructions for specific MCP clients. See [Getting Started](#getting-started) above for a quick overview.
|
|
76
82
|
|
|
77
|
-
### Standard Configuration Templates
|
|
78
|
-
|
|
79
|
-
**Configuration Notes:**
|
|
80
|
-
- Remote server recommended for most users (no installation, always up-to-date)
|
|
81
|
-
- NPM package for local usage or self-hosting scenarios
|
|
82
|
-
- HTTP transport for remote connections; stdio transport for local packages
|
|
83
|
-
- API key always required (header for HTTP, environment variable for stdio)
|
|
84
|
-
|
|
85
|
-
**Remote Server (Recommended):**
|
|
86
|
-
```json
|
|
87
|
-
{
|
|
88
|
-
"mcpServers": {
|
|
89
|
-
"ydc-search": {
|
|
90
|
-
"type": "http",
|
|
91
|
-
"url": "https://api.you.com/mcp",
|
|
92
|
-
"headers": {
|
|
93
|
-
"Authorization": "Bearer <you-api-key>"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
**Local NPM Package:**
|
|
101
|
-
```json
|
|
102
|
-
{
|
|
103
|
-
"mcpServers": {
|
|
104
|
-
"ydc-search": {
|
|
105
|
-
"command": "npx",
|
|
106
|
-
"args": ["@youdotcom-oss/mcp"],
|
|
107
|
-
"env": {
|
|
108
|
-
"YDC_API_KEY": "<you-api-key>"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
```
|
|
114
|
-
|
|
115
83
|
<details>
|
|
116
84
|
<summary><strong>Claude Code</strong></summary>
|
|
117
85
|
|
|
118
|
-
|
|
86
|
+
Use the Claude Code CLI to add the You.com MCP server:
|
|
87
|
+
|
|
88
|
+
**Quick setup:**
|
|
119
89
|
```bash
|
|
120
|
-
|
|
121
|
-
claude mcp add ydc-search npx @youdotcom-oss/mcp
|
|
90
|
+
claude mcp add --transport http ydc-server https://api.you.com/mcp --header "Authorization: Bearer <your-api-key>"
|
|
122
91
|
```
|
|
123
92
|
|
|
124
|
-
|
|
125
|
-
1. Follow the [Claude Code setup guide](https://docs.anthropic.com/en/docs/claude-code/setup)
|
|
126
|
-
2. Create or update `.mcp.json` in your workspace root using the standard configuration template above
|
|
127
|
-
3. For remote server: add `"type": "http"` to the configuration
|
|
128
|
-
4. For local package: add `"type": "stdio"` to the configuration
|
|
93
|
+
For setup, follow the MCP installation [guide](https://code.claude.com/docs/en/mcp).
|
|
129
94
|
|
|
130
95
|
</details>
|
|
131
96
|
|
|
132
97
|
<details>
|
|
133
98
|
<summary><strong>Claude Desktop</strong></summary>
|
|
134
99
|
|
|
135
|
-
|
|
136
|
-
Use the standard configuration template above in your Claude Desktop MCP configuration.
|
|
137
|
-
|
|
138
|
-
**Installation:**
|
|
139
|
-
Follow the [Claude Desktop MCP guide](https://docs.anthropic.com/en/docs/build-with-claude/computer-use) for setup.
|
|
140
|
-
|
|
141
|
-
[Download Claude Desktop](https://claude.ai/download)
|
|
100
|
+
For setup, follow the MCP installation [guide](https://modelcontextprotocol.io/docs/develop/connect-local-servers).
|
|
142
101
|
|
|
143
102
|
</details>
|
|
144
103
|
|
|
145
104
|
<details>
|
|
146
105
|
<summary><strong>Codex</strong></summary>
|
|
147
106
|
|
|
148
|
-
|
|
149
|
-
Edit `~/.codex/config.toml`:
|
|
150
|
-
|
|
151
|
-
```toml
|
|
152
|
-
[mcp_servers.ydc-search]
|
|
153
|
-
command = "npx"
|
|
154
|
-
args = ["@youdotcom-oss/mcp"]
|
|
155
|
-
|
|
156
|
-
[mcp_servers.ydc-search.env]
|
|
157
|
-
YDC_API_KEY = "<you-api-key>"
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
[Download Codex](https://github.com/openai/codex)
|
|
107
|
+
For setup, follow the MCP installation [guide](https://github.com/openai/codex/blob/main/docs/config.md#streamable-http).
|
|
161
108
|
|
|
162
109
|
</details>
|
|
163
110
|
|
|
164
111
|
<details>
|
|
165
112
|
<summary><strong>Cursor IDE</strong></summary>
|
|
166
113
|
|
|
167
|
-
|
|
168
|
-
1. Go to Cursor Settings > Features > MCP
|
|
169
|
-
2. Click "+ Add New MCP Server"
|
|
170
|
-
3. For remote: Select "Streamable HTTP" transport, URL: `https://api.you.com/mcp`
|
|
171
|
-
4. For local: Select "stdio" transport, Command: `npx`, Args: `@youdotcom-oss/mcp`
|
|
172
|
-
|
|
173
|
-
**Manual Setup:**
|
|
174
|
-
Create `.cursor/mcp.json` in your project directory or `~/.cursor/mcp.json` globally using the standard configuration template above.
|
|
114
|
+
[](https://cursor.com/en-US/install-mcp?name=ydc-server&config=eyJ1cmwiOiJodHRwczovL2FwaS55b3UuY29tL21jcCIsImhlYWRlcnMiOnsiQXV0aG9yaXphdGlvbiI6IkJlYXJlciA8eW91LWFwaS1rZXk%2BIn19)
|
|
175
115
|
|
|
176
|
-
|
|
116
|
+
For setup, follow the MCP installation [guide](https://cursor.com/docs/context/mcp#installing-mcp-servers); use the configuration template above ***without type field***.
|
|
177
117
|
|
|
178
|
-
|
|
118
|
+
**Note:** To avoid conflicts, go to Settings > Agents tab and turn off Cursor's built-in web search tool.
|
|
179
119
|
|
|
180
120
|
</details>
|
|
181
121
|
|
|
182
122
|
<details>
|
|
183
123
|
<summary><strong>Gemini CLI</strong></summary>
|
|
184
124
|
|
|
185
|
-
|
|
186
|
-
Use the standard configuration template above in your Gemini CLI MCP server configuration.
|
|
187
|
-
|
|
188
|
-
**Installation:**
|
|
189
|
-
1. Install [Gemini CLI](https://google-gemini.github.io/gemini-cli/)
|
|
190
|
-
2. Follow the [MCP server setup guide](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html)
|
|
191
|
-
|
|
192
|
-
[Documentation](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html) | [Download Gemini CLI](https://google-gemini.github.io/gemini-cli/)
|
|
193
|
-
|
|
194
|
-
</details>
|
|
195
|
-
|
|
196
|
-
<details>
|
|
197
|
-
<summary><strong>Goose</strong></summary>
|
|
198
|
-
|
|
199
|
-
**Quick Setup:**
|
|
200
|
-
Go to "Advanced settings" → "Extensions" → "Add custom extension"
|
|
201
|
-
|
|
202
|
-
**Manual Setup:**
|
|
203
|
-
Use the standard configuration template above in your Goose extensions configuration.
|
|
204
|
-
|
|
205
|
-
[Installation Guide](https://block.github.io/goose/docs/getting-started/installation) | [Download Goose](https://block.github.io/goose/)
|
|
125
|
+
For setup, follow the MCP installation [guide](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html#how-to-set-up-your-mcp-server); use the configuration template above.
|
|
206
126
|
|
|
207
127
|
</details>
|
|
208
128
|
|
|
209
129
|
<details>
|
|
210
130
|
<summary><strong>JetBrains IDEs</strong></summary>
|
|
211
131
|
|
|
212
|
-
|
|
213
|
-
Configure in your IDE settings using the local NPM package configuration from the standard template above.
|
|
214
|
-
|
|
215
|
-
**For Remote Server:**
|
|
216
|
-
Use [mcp-remote](https://www.npmjs.com/package/mcp-remote) since JetBrains only supports stdio transport:
|
|
217
|
-
```json
|
|
218
|
-
{
|
|
219
|
-
"mcpServers": {
|
|
220
|
-
"ydc-search": {
|
|
221
|
-
"command": "npx",
|
|
222
|
-
"args": ["mcp-remote", "https://api.you.com/mcp", "--header", "Authorization: Bearer ${YDC_API_KEY}"],
|
|
223
|
-
"env": { "YDC_API_KEY": "<you-api-key>" }
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
```
|
|
132
|
+
For setup, follow the MCP installation [guide](https://www.jetbrains.com/help/ai-assistant/mcp.html#connect-to-an-mcp-server); use the configuration template above.
|
|
228
133
|
|
|
229
134
|
**Supported IDEs:** IntelliJ IDEA, PyCharm, WebStorm, etc. (requires AI Assistant enabled)
|
|
230
135
|
|
|
231
|
-
[Documentation](https://www.jetbrains.com/help/ai-assistant/mcp.html)
|
|
232
|
-
|
|
233
136
|
</details>
|
|
234
137
|
|
|
235
138
|
<details>
|
|
236
139
|
<summary><strong>LM Studio</strong></summary>
|
|
237
140
|
|
|
238
|
-
|
|
239
|
-
Edit `mcp.json` in LM Studio settings using the standard configuration template above.
|
|
240
|
-
|
|
241
|
-
**Installation:**
|
|
242
|
-
Configure through program settings or edit configuration file manually.
|
|
243
|
-
|
|
244
|
-
[Download LM Studio](https://lmstudio.ai/)
|
|
141
|
+
For setup, follow the MCP installation [guide](https://lmstudio.ai/docs/app/mcp); use the configuration template above ***without type field***.
|
|
245
142
|
|
|
246
143
|
</details>
|
|
247
144
|
|
|
248
145
|
<details>
|
|
249
146
|
<summary><strong>opencode</strong></summary>
|
|
250
147
|
|
|
251
|
-
|
|
252
|
-
Edit `~/.config/opencode/opencode.json`:
|
|
253
|
-
|
|
254
|
-
```json
|
|
255
|
-
{
|
|
256
|
-
"$schema": "https://opencode.ai/config.json",
|
|
257
|
-
"mcp": {
|
|
258
|
-
"ydc-search": {
|
|
259
|
-
"type": "local",
|
|
260
|
-
"command": ["npx", "@youdotcom-oss/mcp"],
|
|
261
|
-
"enabled": true,
|
|
262
|
-
"env": { "YDC_API_KEY": "<you-api-key>" }
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
**For Remote Server:**
|
|
269
|
-
```json
|
|
270
|
-
{
|
|
271
|
-
"$schema": "https://opencode.ai/config.json",
|
|
272
|
-
"mcp": {
|
|
273
|
-
"ydc-search": {
|
|
274
|
-
"type": "local",
|
|
275
|
-
"command": ["npx", "mcp-remote", "https://api.you.com/mcp", "--header", "Authorization: Bearer ${YDC_API_KEY}"],
|
|
276
|
-
"enabled": true,
|
|
277
|
-
"env": { "YDC_API_KEY": "<you-api-key>" }
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
[Documentation](https://opencode.ai/docs)
|
|
284
|
-
|
|
285
|
-
</details>
|
|
286
|
-
|
|
287
|
-
<details>
|
|
288
|
-
<summary><strong>Qodo Gen</strong></summary>
|
|
289
|
-
|
|
290
|
-
**Setup:**
|
|
291
|
-
1. Open Qodo Gen chat panel in VSCode or IntelliJ
|
|
292
|
-
2. Click "Connect more tools" → "+ Add new MCP"
|
|
293
|
-
3. Paste the standard config above
|
|
294
|
-
4. Click Save
|
|
295
|
-
|
|
296
|
-
[Documentation](https://docs.qodo.ai/qodo-documentation/qodo-gen)
|
|
148
|
+
For setup, follow the MCP installation [guide](https://opencode.ai/docs/mcp-servers/#remote); use the configuration template above.
|
|
297
149
|
|
|
298
150
|
</details>
|
|
299
151
|
|
|
300
152
|
<details>
|
|
301
153
|
<summary><strong>VS Code</strong></summary>
|
|
302
154
|
|
|
303
|
-
|
|
304
|
-
```bash
|
|
305
|
-
# Add MCP server
|
|
306
|
-
code --add-mcp "{\"name\":\"ydc-search\",\"command\":\"npx\",\"args\":[\"@youdotcom-oss/mcp\"],\"env\":{\"YDC_API_KEY\":\"<you-api-key>\"}}"
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
**Manual Setup:**
|
|
310
|
-
Create `mcp.json` file in your workspace (`.vscode/mcp.json`) or user profile using the standard configuration template above, but replace `"mcpServers"` with `"servers"`.
|
|
155
|
+
Use the VS Code CLI to add the You.com MCP server:
|
|
311
156
|
|
|
312
|
-
**
|
|
313
|
-
```
|
|
314
|
-
{
|
|
315
|
-
"inputs": [
|
|
316
|
-
{
|
|
317
|
-
"type": "promptString",
|
|
318
|
-
"id": "ydc-api-key",
|
|
319
|
-
"description": "You.com API Key",
|
|
320
|
-
"password": true
|
|
321
|
-
}
|
|
322
|
-
],
|
|
323
|
-
"servers": {
|
|
324
|
-
"ydc-search": {
|
|
325
|
-
"command": "npx",
|
|
326
|
-
"args": ["@youdotcom-oss/mcp"],
|
|
327
|
-
"env": { "YDC_API_KEY": "${input:ydc-api-key}" }
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
157
|
+
**Quick setup (command line):**
|
|
158
|
+
```bash
|
|
159
|
+
code --add-mcp "{\"name\":\"ydc-server\",\"url\":\"https://api.you.com/mcp\",\"type\":\"http\",\"headers\":{\"Authorization\":\"Bearer <your-api-key>\"}}"
|
|
331
160
|
```
|
|
332
161
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
[Documentation](https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_commandline-configuration) | [Download VS Code](https://code.visualstudio.com/)
|
|
162
|
+
For setup, follow the MCP installation [guide](https://code.visualstudio.com/docs/copilot/customization/mcp-servers#_add-an-mcp-server); use the configuration template above.
|
|
336
163
|
|
|
337
164
|
</details>
|
|
338
165
|
|
|
339
166
|
<details>
|
|
340
167
|
<summary><strong>Windsurf</strong></summary>
|
|
341
168
|
|
|
342
|
-
|
|
343
|
-
Use the standard configuration template above.
|
|
344
|
-
|
|
345
|
-
**Installation:**
|
|
346
|
-
Follow MCP documentation for Windsurf-specific setup instructions.
|
|
347
|
-
|
|
348
|
-
[Documentation](https://docs.windsurf.com/windsurf/cascade/mcp) | [Download Windsurf](https://docs.windsurf.com/windsurf/getting-started)
|
|
169
|
+
For setup, follow the MCP installation [guide](https://docs.windsurf.com/windsurf/cascade/mcp#adding-a-new-mcp-plugin).
|
|
349
170
|
|
|
350
171
|
</details>
|
|
351
172
|
|
|
352
173
|
<details>
|
|
353
174
|
<summary><strong>Zed Editor</strong></summary>
|
|
354
175
|
|
|
355
|
-
|
|
356
|
-
Add to your Zed `settings.json` using `"context_servers"` instead of `"mcpServers"`:
|
|
357
|
-
|
|
358
|
-
```json
|
|
359
|
-
{
|
|
360
|
-
"context_servers": {
|
|
361
|
-
"ydc-search": {
|
|
362
|
-
"source": "custom",
|
|
363
|
-
"command": "npx",
|
|
364
|
-
"args": ["@youdotcom-oss/mcp"],
|
|
365
|
-
"env": {
|
|
366
|
-
"YDC_API_KEY": "<you-api-key>"
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
```
|
|
372
|
-
|
|
373
|
-
**For Remote Server:**
|
|
374
|
-
Use [mcp-remote](https://www.npmjs.com/package/mcp-remote) to bridge HTTP to stdio:
|
|
375
|
-
```json
|
|
376
|
-
{
|
|
377
|
-
"context_servers": {
|
|
378
|
-
"ydc-search": {
|
|
379
|
-
"source": "custom",
|
|
380
|
-
"command": "npx",
|
|
381
|
-
"args": ["mcp-remote", "https://api.you.com/mcp", "--header", "Authorization: Bearer ${YDC_API_KEY}"],
|
|
382
|
-
"env": { "YDC_API_KEY": "<you-api-key>" }
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
```
|
|
387
|
-
|
|
388
|
-
[Setup Instructions](https://zed.dev/docs/ai/mcp) | [Download Zed](https://zed.dev)
|
|
176
|
+
For setup, follow the MCP installation [guide](https://zed.dev/docs/ai/mcp#as-custom-servers); use the configuration template above ***without type field***.
|
|
389
177
|
|
|
390
178
|
</details>
|
|
391
179
|
|
|
392
|
-
## Available
|
|
180
|
+
## Available tools
|
|
393
181
|
|
|
394
182
|
This MCP server provides three tools that work seamlessly with your AI agent through natural language:
|
|
395
183
|
|
|
@@ -412,11 +200,11 @@ Extract full page content from URLs in markdown or HTML format. Useful for docum
|
|
|
412
200
|
|
|
413
201
|
**Note**: Your MCP client automatically shows you all available parameters and their descriptions when you use these tools. Simply ask your AI agent in natural language what you want to do, and it will orchestrate the appropriate tool calls for you.
|
|
414
202
|
|
|
415
|
-
## Use
|
|
203
|
+
## Use cases & examples
|
|
416
204
|
|
|
417
205
|
Here are common scenarios showing when and how to use each tool with natural language queries:
|
|
418
206
|
|
|
419
|
-
### Research &
|
|
207
|
+
### Research & information gathering
|
|
420
208
|
|
|
421
209
|
**Use you-search when:**
|
|
422
210
|
- "Find recent research papers about quantum computing on arxiv.org"
|
|
@@ -430,7 +218,7 @@ Here are common scenarios showing when and how to use each tool with natural lan
|
|
|
430
218
|
- "What happened in the tech industry today?" (with web search enabled)
|
|
431
219
|
- "Summarize the main features of the latest Python release"
|
|
432
220
|
|
|
433
|
-
### Content
|
|
221
|
+
### Content extraction & analysis
|
|
434
222
|
|
|
435
223
|
**Use you-contents when:**
|
|
436
224
|
- "Extract the content from this blog post: https://example.com/article"
|
|
@@ -438,29 +226,29 @@ Here are common scenarios showing when and how to use each tool with natural lan
|
|
|
438
226
|
- "Pull the HTML content from this page preserving the layout"
|
|
439
227
|
- "Batch extract content from these 5 documentation pages"
|
|
440
228
|
|
|
441
|
-
### Combined
|
|
229
|
+
### Combined workflows
|
|
442
230
|
|
|
443
231
|
Your AI agent can combine multiple tools in a single conversation:
|
|
444
232
|
1. **Research + Extract**: "Search for the best TypeScript tutorials, then extract the content from the top 3 results"
|
|
445
233
|
2. **Question + Deep Dive**: "What is WebAssembly? Then search for real-world examples and extract code samples"
|
|
446
234
|
3. **News + Analysis**: "Find recent articles about AI regulation, then summarize the key points"
|
|
447
235
|
|
|
448
|
-
### Pro
|
|
236
|
+
### Pro tips
|
|
449
237
|
|
|
450
238
|
- **Be specific**: Include domains, date ranges, or file types when searching
|
|
451
239
|
- **Natural language**: You don't need to memorize parameters - just describe what you want
|
|
452
240
|
- **Follow up**: Ask clarifying questions to refine results
|
|
453
241
|
- **Combine tools**: Let your agent orchestrate multiple tool calls for complex workflows
|
|
454
242
|
|
|
455
|
-
## Troubleshooting &
|
|
243
|
+
## Troubleshooting & support
|
|
456
244
|
|
|
457
|
-
### Common
|
|
245
|
+
### Common issues
|
|
458
246
|
|
|
459
247
|
**Server not connecting:**
|
|
460
248
|
- Verify your API key is correct and properly formatted
|
|
461
249
|
- Check that your MCP client configuration matches the template for your setup (remote vs local)
|
|
462
250
|
- For HTTP mode: Ensure the Authorization header includes "Bearer " prefix
|
|
463
|
-
- For
|
|
251
|
+
- For STDIO mode: Verify the YDC_API_KEY environment variable is set
|
|
464
252
|
|
|
465
253
|
**Tool not working:**
|
|
466
254
|
- Check your MCP client logs for error messages
|
|
@@ -470,10 +258,10 @@ Your AI agent can combine multiple tools in a single conversation:
|
|
|
470
258
|
|
|
471
259
|
**Authentication errors:**
|
|
472
260
|
- Remote server uses Bearer token authentication in headers
|
|
473
|
-
- Local
|
|
261
|
+
- Local STDIO mode uses YDC_API_KEY environment variable
|
|
474
262
|
- Make sure you're using the correct authentication method for your setup
|
|
475
263
|
|
|
476
|
-
### Error
|
|
264
|
+
### Error logs
|
|
477
265
|
|
|
478
266
|
Error messages and detailed logs appear in your MCP client's log output. Check your client's documentation for how to access logs:
|
|
479
267
|
- Claude Code: Check terminal output or logs
|
|
@@ -481,78 +269,26 @@ Error messages and detailed logs appear in your MCP client's log output. Check y
|
|
|
481
269
|
- Cursor: Check MCP server logs in settings
|
|
482
270
|
- VS Code: View Output panel for MCP server logs
|
|
483
271
|
|
|
484
|
-
### Report an
|
|
272
|
+
### Report an issue
|
|
485
273
|
|
|
486
274
|
If you encounter a problem, you can report it via email or GitHub:
|
|
487
275
|
|
|
488
|
-
**Email
|
|
276
|
+
**Email support:** support@you.com
|
|
489
277
|
|
|
490
|
-
**Web
|
|
278
|
+
**Web support:** [You.com Support](https://you.com/support/contact-us)
|
|
491
279
|
|
|
492
280
|
**GitHub Issues:** [Report bugs and feature requests](https://github.com/youdotcom-oss/youdotcom-mcp-server/issues)
|
|
493
281
|
|
|
494
282
|
**Tip:** When errors occur, check your MCP client logs - they include a pre-filled mailto link with error details for easy reporting.
|
|
495
283
|
|
|
496
|
-
## For
|
|
284
|
+
## For contributors
|
|
497
285
|
|
|
498
286
|
Interested in contributing to the You.com MCP Server? We'd love your help!
|
|
499
287
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
### Development Setup
|
|
503
|
-
|
|
504
|
-
For complete development setup instructions, code style guidelines, testing patterns, and contribution workflow, see [AGENTS.md](./AGENTS.md).
|
|
505
|
-
|
|
506
|
-
The developer guide includes:
|
|
507
|
-
- Local workspace setup with Bun runtime
|
|
508
|
-
- Code style preferences and TypeScript guidelines
|
|
509
|
-
- MCP-specific patterns and best practices
|
|
510
|
-
- Testing strategy and examples
|
|
511
|
-
- Git hooks and code quality tools
|
|
512
|
-
- API integration details
|
|
513
|
-
- Architecture overview with diagrams
|
|
514
|
-
- Troubleshooting common issues
|
|
515
|
-
- Contributing guidelines with commit conventions
|
|
516
|
-
|
|
517
|
-
### Local Development & Self-Hosting
|
|
518
|
-
|
|
519
|
-
**Quick Docker Setup**:
|
|
520
|
-
```bash
|
|
521
|
-
docker build -t youdotcom-mcp-server .
|
|
522
|
-
docker run -d -p 4000:4000 --name youdotcom-mcp youdotcom-mcp-server
|
|
523
|
-
```
|
|
524
|
-
|
|
525
|
-
**Local Workspace Setup**:
|
|
526
|
-
```bash
|
|
527
|
-
# Clone and install
|
|
528
|
-
git clone https://github.com/youdotcom-oss/youdotcom-mcp-server.git
|
|
529
|
-
cd youdotcom-mcp-server
|
|
530
|
-
bun install
|
|
531
|
-
|
|
532
|
-
# Set up environment
|
|
533
|
-
echo "export YDC_API_KEY=your-api-key-here" > .env
|
|
534
|
-
source .env
|
|
535
|
-
|
|
536
|
-
# Run development server (stdio mode)
|
|
537
|
-
bun run dev
|
|
538
|
-
|
|
539
|
-
# Or run HTTP server (port 4000)
|
|
540
|
-
bun start
|
|
541
|
-
```
|
|
542
|
-
|
|
543
|
-
For detailed instructions on building from source, running in different modes, and deployment options, see [AGENTS.md](./AGENTS.md).
|
|
544
|
-
|
|
545
|
-
### Quick Links
|
|
546
|
-
|
|
547
|
-
- **Developer Guide**: [AGENTS.md](./AGENTS.md) - Complete technical reference
|
|
548
|
-
- **Report Issues**: [GitHub Issues](https://github.com/youdotcom-oss/youdotcom-mcp-server/issues)
|
|
549
|
-
- **Source Code**: [GitHub Repository](https://github.com/youdotcom-oss/youdotcom-mcp-server)
|
|
550
|
-
- **API Documentation**: [You.com Docs](https://documentation.you.com/get-started/welcome)
|
|
551
|
-
|
|
552
|
-
### How to Contribute
|
|
288
|
+
Need technical details? Check [AGENTS.md](./AGENTS.md) for complete development setup, architecture overview, code patterns, and testing guidelines.
|
|
553
289
|
|
|
554
290
|
1. Fork the repository
|
|
555
|
-
2. Create a feature branch following naming conventions in
|
|
291
|
+
2. Create a feature branch following naming conventions in [CONTRIBUTING.md](./CONTRIBUTING.md)
|
|
556
292
|
3. Follow the code style guidelines and use conventional commits
|
|
557
293
|
4. Write tests for your changes (maintain >80% coverage)
|
|
558
294
|
5. Run quality checks: `bun run check && bun test`
|