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.pyall workclient_http.py,server_http.pydoes not work
- Code being developed (in progress)
- mcp_psilo_mock/
- This code is published in PyPI: https://pypi.org/project/mcp-psilo-mock/
server_stdio.pycontains the key get_psilo_data functionserver_stdio2.pycontains is an extra stdio_server used to test connecting to multiple MCP servers with Claude desktop
- This code is published in PyPI: https://pypi.org/project/mcp-psilo-mock/
- test_code/
test_right_package.pyContains scripts to run the servers and clients in the two above folderstest_right_package.pyis 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.pyis not importing the sse_client package from mcp; an alternative must be foundtest_run_sse_server.py,test_run_stdio_client.py,test_run_stdio_server.py, andtest_run_stdio_client.pyall 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:
- 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
- FastMCP.run() only supports stdio, not network transport
- fastapi_mcp not viable or missing
- Either unavailable, misinstalled, or not meant for your current MCP version
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca80b8e5f3b24e017016bf20b4c3eb48b1e98463250a61550dc941f78761f33
|
|
| MD5 |
5474bc482c16869af5aa27be74a948fc
|
|
| BLAKE2b-256 |
92b18d570ba5c54f5c7cccc493a656eee27d1906a2e62ccbc33203ed8789e180
|
File details
Details for the file mcp_psilo_mock-0.1.17-py3-none-any.whl.
File metadata
- Download URL: mcp_psilo_mock-0.1.17-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96088280b4a1dd227f57e6a1dd801b02ebfb9a2fc675206171db0b2afd1d5fc9
|
|
| MD5 |
c32ba8903a9fe24ae886f8d9b5171d14
|
|
| BLAKE2b-256 |
f45e52d899b7f1365c9e1c0a0e1ad978db0eb70f0351fcc8e8bcd154a277ae3a
|