GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
6
フォーク
0
イシュー
0
MCP server and client
An example of an MCP server and client, from the DeepLearning.AI course on MCP.
https://learn.deeplearning.ai/courses/mcp-build-rich-context-ai-apps-with-anthropic
setup
Install a virtual environment:
We use uv
to manage the virtual environment and dependencies.
Install uv:
https://docs.astral.sh/uv/getting-started/installation/
Using curl:
curl -LsSf https://astral.sh/uv/install.sh | sh
or using homebrew:
brew install uv
Or even pip in the base env:
pip install uv
Initiate the virtual environment:
uv init
uv venv
source .venv/bin/activate
Install the dependencies:
uv sync
Running the server and client
Launch the inspector for the research server:
npx @modelcontextprotocol/inspector uv run research_server.py
Run the client locally:
uv run mcp_chatbot.py
In the left bar, have the following values:
- Transport type: STDIO
- Command: uv
- Arguments: run research_server.py
- Inspector Proxy Address: http://localhost:6277/
(maybe?)
documentation
MCP architecture:
https://modelcontextprotocol.io/docs/concepts/architecture
MCP servers:
https://github.com/modelcontextprotocol/servers
MCP python SDK:
https://github.com/modelcontextprotocol/python-sdk
0
フォロワー
0
リポジトリ
0
Gist
0
貢献数