Skip to content

josx/mcp_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo MCP

Info

Setup

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt

Run Server

You can use any of this two servers

  • python server.py or with jwt auth python server_asgi.py

Run demo client

  • python client.py http://localhost:8000/sse

Run demo host (langchain/langgraph)

You need to run ollama and download a model

  • python host_langchain.py llama3.3 http://localhost:11434

Debug

You can debug server with this app

  • Open a new terminal and run npx @modelcontextprotocol/inspector
  • Point browser to http://127.0.0.1:6274
  • Change Transport Type to SSE
  • Change URL to http://localhost:8000/sse
  • Press Connect and start testing server

About

Demo: mcp protocol with simple client and server file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages