What does the server tool do?
The server exposes a single tool called `get_knowledge_base` that retrieves the entire knowledge base from `data/kb.json` as a formatted string.
@kofiadom
基本信息
An intro to MCP: an MCP server with a knowledge base tool containerized with Docker and connected to a client-side python application using SSE
工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
MCP Knowledge Base Assistant is a demonstration of the Model Context Protocol (MCP) that connects an OpenAI-powered client to a knowledge base server. It shows how to build an AI assistant that answers questions about company policies by accessing a knowledge base through MCP.
Install prerequisites (Python 3.11+, OpenAI API key), clone the repo, create a virtual environment, install dependencies, and set OPENAI_API_KEY in a .env file. Run the server with python server.py (or Docker), then run python client.py in another terminal. The client sends a sample query; modify client.py to ask different questions.
get_knowledge_base)The server exposes a single tool called `get_knowledge_base` that retrieves the entire knowledge base from `data/kb.json` as a formatted string.
Python 3.11 or higher, an OpenAI API key, and the dependencies listed in `requirements.txt`. Docker is optional for containerized server execution.
The knowledge base is stored in `data/kb.json`, a local JSON file containing question-answer pairs about company policies. You can add more pairs to expand it.
The client uses Python async context managers (`async with`) to automatically initialize and clean up all resources when exiting the context, following MCP best practices.
The server communicates via SSE (Server-Sent Events) transport on port 8050. Authentication is handled through the OpenAI API key set in the environment.

Local-first MCP server that snapshots your project's working state into one context object. Open-core, privacy-first.

One permissioned folder your team and your AI agents both log into.

Exact, shared memory for AI agents: a hierarchical database where totals always add up, every write is attributed to the agent and person behind it, and any figure traces back to its source file. Agents create databases,

Shared memory for AI coding agents. Claude Code, Cursor and Codex read your project's decisions, lessons and tasks before they act.

Model Context Protocol Servers
评论