+
Skip to content

hqman/mcp_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP Demo 🚀

A demonstration of the Model Context Protocol (MCP) implementation with Python, featuring both client and server components for AI model interaction.

Installation 📦

Install dependencies using uv sync:

uv sync install

Running the Application 🏃‍♀️

Standard Mode 🖥️

python mcp_client.py

Then input your query when prompted.

Debug Mode 🔍

npx @modelcontextprotocol/inspector python mcp_server/server.py

SSE Mode 📡

python mcp_server/server_sse.py

Configuration ⚙️

MCP Settings 🛠️

Set the MCP endpoint to:

http://localhost:8000/sse

Development 👨‍💻

mcp dev mcp_server/server_sse.py

or

python mcp_server/server_sse.py

Tools and Debugging 🧰

MCP Inspector 🔎

Access the inspector at:

http://127.0.0.1:6274/#tools

About

mcp client server demo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载