humanus.cpp/server
hkr04 7c797864dd add tokenizer (lack of test in use) and content_provider (just implementation, no use) 2025-04-06 16:32:51 +08:00
..
CMakeLists.txt add tokenizer (lack of test in use) and content_provider (just implementation, no use) 2025-04-06 16:32:51 +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_server_main.cpp add tokenizer (lack of test in use) and content_provider (just implementation, no use) 2025-04-06 16:32:51 +08:00
python_execute.cpp fix some bugs; planning flow on test 2025-03-19 18:44:54 +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