Skip to content

[MCP Bundle] (doc) add remote mcp server example #200

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
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions src/mcp-bundle/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,53 @@ Configuration
sse:
url: 'http://localhost:8000/sse' # URL to SSE endpoint of MCP server

Usage as a remote MCP server
----------------------------

If your local project runs in docker, it may be easier to run the server as a remote server, thanks to the node package ``mcp-remote``. Node is required.

Configuration for claude desktop:

.. code-block:: json

{
"mcpServers": {
"symfony": {
"command": "npx",
"args": [
"mcp-remote",
"https://127.0.0.1:8080"
]
}
}
}

Quick tips
..........

Self Signed certificates
~~~~~~~~~~~~~~~~~~~~~~~~
Add the following section:

.. code-block:: json

"env": {
"NODE_EXTRA_CA_CERTS": "full/path/to/cert_root.pem"
}

Allow http
~~~~~~~~~~
Add the argument ``--allow-http``:

.. code-block:: json

"args": [
"mcp-remote",
"https://127.0.0.1:8080",
"--allow-http"
]


.. _`Model Context Protocol`: https://modelcontextprotocol.io/
.. _`symfony/mcp-sdk`: https://github.com/symfony/mcp-sdk
.. _`Claude Desktop`: https://claude.ai/download
Expand Down