Conversation
| CMAKE_OPTIONS="${MR_CMAKE_OPTIONS}" ${SCRIPT_DIR}/thirdparty/nlohmann-json.sh "$MESHLIB_THIRDPARTY_DIR/nlohmann-json" | ||
| # Build cpp-httplib separately. It is header-only, this just installs it. It is a dependency of fastmcpp. | ||
| CMAKE_OPTIONS="${MR_CMAKE_OPTIONS}" ${SCRIPT_DIR}/thirdparty/cpp-httplib.sh "$MESHLIB_THIRDPARTY_DIR/cpp-httplib" |
There was a problem hiding this comment.
Could they be parts of the thirdparty/CMakeLists.txt?
| export HOME=${RUNNER_TEMP} | ||
| git config --global --add safe.directory ${GITHUB_WORKSPACE} | ||
| git submodule update --init --recursive --depth 1 thirdparty/imgui thirdparty/mrbind-pybind11 thirdparty/mrbind | ||
| git submodule update --init --recursive --depth 1 thirdparty/imgui thirdparty/mrbind-pybind11 thirdparty/mrbind thirdparty/fastmcpp thirdparty/nlohmann-json thirdparty/cpp-httplib |
There was a problem hiding this comment.
Can we use nlohmann-json and cpp-httplib versions from vcpkg?
| run: | | ||
| # Download sub-submodules for certain submodules. We don't recurse above in Checkout to improve build performance. See: https://github.com/actions/checkout/issues/1779 | ||
| git submodule update --init --recursive --depth 1 thirdparty/mrbind | ||
| git submodule update --init --recursive --depth 1 thirdparty/mrbind thirdparty/fastmcpp thirdparty/nlohmann-json thirdparty/cpp-httplib |
There was a problem hiding this comment.
Can we use nlohmann-json and cpp-httplib versions from vcpkg?
| // NOTE: Consult `docs/testing_mcp.md` for how to test your tool. | ||
| MRMCP_API bool addTool( std::string id, std::string name, std::string desc, Schema::Base inputSchema, Schema::Base outputSchema, ToolFunc func ); | ||
|
|
||
| [[nodiscard]] MRMCP_API Params getParams() const; |
There was a problem hiding this comment.
It might not be initialized yet, in which case I return default-constructed params.
There was a problem hiding this comment.
is Server singleton or we expecting more then one? why store params_ in State while we can store it directly in Server? (in general why have two separate classes?)
| // Returns true on success, including if the server is already running and you're trying to start it again. | ||
| // Stopping always returns true. | ||
| MRMCP_API bool setRunning( bool enable ); |
There was a problem hiding this comment.
Then run( false ) looks weird to me.
There was a problem hiding this comment.
mb toggle(bool on) or enable(bool) (we have enable in other places)
There was a problem hiding this comment.
should this file also contain addition of default MCP tools?
There was a problem hiding this comment.
Join this file wtih MRSetupMCP.cpp?
There was a problem hiding this comment.
I'd rather keep them separate.
No description provided.