Skip to content

Commit 5dda69d

Browse files
committed
docs: add iFlow Search MCP server example
1 parent ca354f8 commit 5dda69d

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

packages/web/src/content/docs/mcp-servers.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,3 +509,37 @@ Alternatively, you can add something like this to your [AGENTS.md](/docs/rules/)
509509
```md title="AGENTS.md"
510510
If you are unsure how to do something, use `gh_grep` to search code examples from GitHub.
511511
```
512+
513+
---
514+
515+
### iFlow Search
516+
517+
Add the [iFlow Search MCP server](https://www.npmjs.com/package/@iflow-ai/search-mcp) to search the web, search images, and fetch the readable content of a page. This is a community/third-party MCP stdio server published as `@iflow-ai/search-mcp` and listed in the [MCP Registry](https://registry.modelcontextprotocol.io/) as `io.github.zhengyanglsun/iflow-search`.
518+
519+
```json title="opencode.json" {4-10}
520+
{
521+
"$schema": "https://opencode.ai/config.json",
522+
"mcp": {
523+
"iflow_search": {
524+
"type": "local",
525+
"command": ["npx", "-y", "@iflow-ai/search-mcp"],
526+
"environment": {
527+
"IFLOW_MCP_CLIENT": "opencode"
528+
},
529+
"enabled": true
530+
}
531+
}
532+
}
533+
```
534+
535+
The server reads its iFlow API credential from the `IFLOW_API_KEY` environment variable of its own process. Provide it through the shell or secret manager that launches OpenCode rather than embedding it in `opencode.json`:
536+
537+
```bash
538+
export IFLOW_API_KEY=YOUR_IFLOW_API_KEY
539+
```
540+
541+
Once configured, three tools become available: `iflow_web_search`, `iflow_image_search`, and `iflow_web_fetch`. You can reference the server by its name in prompts.
542+
543+
```txt "use iflow_search"
544+
Find recent posts about MCP stdio transports. use iflow_search
545+
```

0 commit comments

Comments
 (0)