xinyangkb_mcp

xinyangkb_mcp

芯阳公司内部知识库MCP服务器,封装内部搜索API,供Codex和OpenCode调用以检索知识库信息。

Category
Visit Server

README

Xinyang KB MCP Server

芯阳公司内部知识库 MCP 服务器。封装内部搜索 API,供 Codex 和 OpenCode 调用。

环境要求

  • Node.js >= 18
  • npm
  • Codex 和/或 OpenCode 已安装

安装

一键安装(跨平台,推荐)

cd /home/music/lcy/mcp
npm install
node scripts/install.cjs

脚本自动检测 Codex 和 OpenCode,同时为两者配置 MCP 服务器和技能。

Windows 用户: 同样使用 node scripts/install.cjs 即可(路径会自动适配)。

手动安装

<details> <summary><b>Codex CLI</b></summary>

codex mcp add xinyang-kb \
  --env SEARCH_API_URL=http://10.24.116.22:5010/search/dify \
  --env API_SERVER_BASE_URL=http://10.24.116.22:5010 \
  --env no_proxy=10.24.116.22,59.77.39.46,localhost,127.0.0.1,::1 \
  -- npx tsx /home/music/lcy/mcp/src/index.ts

mkdir -p ~/.codex/skills/xinyang-assistant
cp skills/xinyang-assistant/SKILL.md ~/.codex/skills/xinyang-assistant/SKILL.md

</details>

<details> <summary><b>OpenCode</b></summary>

编辑 ~/.config/opencode/opencode.json(Linux)或 %APPDATA%/opencode/opencode.json(Windows):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "xinyang-kb": {
      "type": "local",
      "command": ["npx", "tsx", "/path/to/mcp/src/index.ts"],
      "enabled": true,
      "environment": {
        "SEARCH_API_URL": "http://10.24.116.22:5010/search/dify",
        "API_SERVER_BASE_URL": "http://10.24.116.22:5010",
        "no_proxy": "10.24.116.22,59.77.39.46,localhost,127.0.0.1,::1"
      }
    }
  },
  "instructions": ["skills/xinyang-assistant.md"]
}
mkdir -p ~/.config/opencode/skills
cp skills/xinyang-assistant/SKILL.md ~/.config/opencode/skills/xinyang-assistant.md

</details>

配置

环境变量在安装时已写入配置:

变量 说明
SEARCH_API_URL 内部搜索 API 地址
API_SERVER_BASE_URL API 基础地址(拼接文档 URL)
no_proxy 不走代理的内部地址列表

如需修改 API 地址,运行:

node scripts/install.cjs --api-url http://新IP:5010/search/dify

使用

直接提问芯阳相关问题,AI 助手会自动调用知识库搜索并按规范格式化回答。

你:TM52F1376 的规格参数是什么?
→ 调用 knowledge_base_search → 结构化回答 + 来源链接

你:离职流程是什么?
→ 搜索知识库 → 步骤化流程

你:我们的产品和竞品比怎么样?
→ 同时搜索知识库 + 联网 → 分开标注来源

验证

codex mcp list      # Codex
opencode mcp list   # OpenCode

目录结构

src/index.ts                  MCP 服务器
skills/xinyang-assistant/     芯阳大模型行为规范
scripts/install.cjs           跨平台一键安装脚本

API 地址变更

node scripts/install.cjs --api-url http://新IP:5010/search/dify

xinyangkb_mcp

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured