-
Notifications
You must be signed in to change notification settings - Fork 9
Add MCP server on both (systemd/launchd and docker) #243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
moarshy
wants to merge
14
commits into
main
Choose a base branch
from
feat/mpc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
460bacc
feat: Add MPC server port configuration to .env.example
moarshy 82f441a
feat: Add Naptha MPC server implementation with test tools
moarshy 7ac22da
feat: Add MPC server startup and stop functionality to launch and sto…
moarshy f274407
add setup_mcp.sh to .gitignore
moarshy 463919e
feat: Add MPC server Docker configuration and development setup
moarshy 9120ace
feat: Add MPC server service to docker-compose.yml
moarshy 132e30f
fix: Correct project root navigation in launch.sh for MPC service
moarshy 0ca05c4
refactor: Rename MPC to MCP across project configuration and scripts
moarshy 7ca0650
fix: Update uv.lock package name from naptha-mpc to naptha-mcp
moarshy 225e286
fix: Update MCP server port in .env.example from 8000 to 8001
moarshy 6758586
fix: Update MCP server port to 8001 and adjust volume configuration i…
moarshy 1d8de69
feat: Implement Naptha MCP client and enhance server with new tools
moarshy 2deb19c
feat: Enhance Naptha MCP server with new SSE endpoint and client conn…
moarshy 019a32f
feat: Add weather toolset to Naptha MCP server
moarshy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| FROM condaforge/miniforge3:24.9.2-0 | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # use bash instead of sh | ||
| SHELL ["/bin/bash", "-c"] | ||
|
|
||
| # install deps | ||
| RUN apt-get update | ||
| RUN apt-get install gcc curl git -y | ||
|
|
||
| # add conda install to path; use base environment | ||
| ENV PATH="/opt/conda/bin:${PATH}" | ||
| RUN conda create -y -n mpc python=3.12 | ||
| RUN echo "source activate mpc" > /root/.bashrc | ||
| ENV PATH="/opt/conda/envs/mpc/bin:$PATH" | ||
|
|
||
| # Install uv properly and add to PATH | ||
| RUN curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| ENV PATH="/root/.cargo/bin:/root/.local/bin:${PATH}" | ||
|
|
||
| # Copy MPC server code - copy to /app directly | ||
| COPY node/mpc . | ||
|
|
||
| # Create virtual environment with uv | ||
| RUN uv venv .venv | ||
|
|
||
| # Install pip explicitly in the virtual environment | ||
| RUN curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ | ||
| .venv/bin/python get-pip.py && \ | ||
| rm get-pip.py | ||
|
|
||
| # Install dependencies from pyproject.toml | ||
| RUN . .venv/bin/activate && \ | ||
| uv pip install -e . | ||
|
|
||
| ENV PYTHONPATH=/app | ||
|
|
||
| # Expose MPC server port | ||
| EXPOSE 8000 | ||
|
|
||
| # Command to run the server | ||
| CMD . .venv/bin/activate && \ | ||
| python server.py --port 8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mcp not mpc. we will need to change all of these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of course. thanks for spotting the blunder