humanus.cpp/server
hkr04 6c746359aa python_execute: fix bugs in locks 2025-04-12 21:18:35 +08:00
..
CMakeLists.txt python_execute: fix bugs in locks 2025-04-12 21:18:35 +08:00
README.md add tokenizer (lack of test in use) and content_provider (just implementation, no use) 2025-04-06 16:32:51 +08:00
mcp_tool_server.cpp python_execute: fix bugs in locks 2025-04-12 21:18:35 +08:00
python_execute.cpp python_execute: fix bugs in locks 2025-04-12 21:18:35 +08:00

README.md

How to run the server

./build/bin/mcp_server <port> # default port is 8818

SWitch Python Environment

rm -rf build

#example
cmake -DPython3_ROOT_DIR=/opt/anaconda3/envs/pytorch \
      -DPython3_INCLUDE_DIR=/opt/anaconda3/envs/pytorch/include/python3.9 \
      -DPython3_LIBRARY=/opt/anaconda3/envs/pytorch/lib/libpython3.9.dylib \
      -B build

# replace with your own python environment path
cmake -DPython3_ROOT_DIR=/path/to/your/python/environment \
      -DPython3_INCLUDE_DIR=/path/to/your/python/environment/include/python<version> \
      -DPython3_LIBRARY=/path/to/your/python/environment/lib/libpython<version>.dylib \
      -B build