Skip to main content

Mock MCP server tools for psilo model context protocol

Project description

MCP for PSILO

There are 3 main folders:

  • mcp_psilo_in_progress/
    • Code being developed (in progress)
      • client_sse.py, client_stdio.py, server_sse.py all work
      • client_http.py, server_http.py does not work
  • mcp_psilo_mock/
    • This code is published in PyPI: https://pypi.org/project/mcp-psilo-mock/
      • server_stdio.py contains the key get_psilo_data function
      • server_stdio2.py contains is an extra stdio_server used to test connecting to multiple MCP servers with Claude desktop
  • test_code/
    • test_right_package.py Contains scripts to run the servers and clients in the two above folders
      • test_right_package.py is used to determine where mcp_psilo_mock is coming from (from this repo or from the published package) [this was cerated to assist when deploying the package]
    • test_run_sse_client.py is not importing the sse_client package from mcp; an alternative must be found
    • test_run_sse_server.py, test_run_stdio_client.py, test_run_stdio_server.py, and test_run_stdio_client.py all work

Archived notes

server_stdio.py and client_stdio.py both work with standard input/output. However, the client runs the server as a subprocess.

We need the server to run independently (and connect via something like http). server_http.py and client_http.py are attempts to have it work, but connection through http doesn't work with the current mcp library.

The issues with running http are found below:

  1. FastMCP has no .app or .asgi_app() method
    • So you can’t do: uvicorn.run(mcp.app, ...)
    • This makes it incompatible with uvicorn in current form
  2. FastMCP.run() only supports stdio, not network transport
  3. fastapi_mcp not viable or missing
    • Either unavailable, misinstalled, or not meant for your current MCP version
  4. HTTP-based tool exposure not built-in in your installed MCP version
    • You’d have to write a manual FastAPI wrapper (no real MCP involved)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_psilo_mock-0.1.17.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_psilo_mock-0.1.17-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_psilo_mock-0.1.17.tar.gz.

File metadata

  • Download URL: mcp_psilo_mock-0.1.17.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mcp_psilo_mock-0.1.17.tar.gz
Algorithm Hash digest
SHA256 fca80b8e5f3b24e017016bf20b4c3eb48b1e98463250a61550dc941f78761f33
MD5 5474bc482c16869af5aa27be74a948fc
BLAKE2b-256 92b18d570ba5c54f5c7cccc493a656eee27d1906a2e62ccbc33203ed8789e180

See more details on using hashes here.

File details

Details for the file mcp_psilo_mock-0.1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_psilo_mock-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 96088280b4a1dd227f57e6a1dd801b02ebfb9a2fc675206171db0b2afd1d5fc9
MD5 c32ba8903a9fe24ae886f8d9b5171d14
BLAKE2b-256 f45e52d899b7f1365c9e1c0a0e1ad978db0eb70f0351fcc8e8bcd154a277ae3a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page