@@ -191,12 +191,12 @@ How to use the local DiffPy MCP server
191191
192192An MCP server is a bundle of tools, skills, and prompts. To use the the MCP
193193server, users need to connect it to a LLM based-agent,
194- such as ``Claude Code Desktop ``, and the agent will decide when and how to
194+ such as ``Claude Desktop ``, and the agent will decide when and how to
195195interact with the MCP server in the conversation with users.
196196
197- Connect to Claude Code Desktop
198- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
199- 1. Install ``Claude Code Desktop `` (hereafter referred to as ``Claude ``).
197+ Connect to Claude Desktop
198+ ~~~~~~~~~~~~~~~~~~~~~~~~~
199+ 1. Install ``Claude Desktop `` (hereafter referred to as ``Claude ``).
2002002. Open ``Claude `` and open "Settings".
2012013. Navigate to the "Developer" section.
2022024. In the "Local MCP servers" region, click "Edit Config".
@@ -230,10 +230,44 @@ Connect to Claude Code Desktop
2302306. Go to the "Local MCP servers" section and verify that the
231231``diffpy.apps `` server is listed and active.
232232
233+ .. figure :: img/claude_screenshot.png
234+ :align: center
235+
236+ Figure 1: Screenshot of active ``diffpy.apps `` server in ``Claude ``.
237+
238+
239+ Connect to ChatGPT Desktop
240+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
241+ 1. Install ``ChatGPT Desktop `` (hereafter referred to as ``ChatGPT ``).
242+ 2. Open ``~/.codex/config.toml ``.
243+ 3. Add the following configuration:
244+
245+ .. code-block :: toml
246+
247+ [mcp_servers.diffpy_apps]
248+ command = "<path/to/python>"
249+ args = ["-m", "diffpy.apps.refinebase.refinement_server"]
250+
251+ Please see the section above on how to determine the correct
252+ ``<path/to/python> `` for your environment.
253+
254+ 4. Restart the ``ChatGPT ``.
255+
256+ 5. Open "Settings", and navigate to the "Integration" section. Open
257+ "Plugins" tab, and verify that the ``diffpy.apps `` server is listed in the
258+ "MCPs" field and active.
259+
260+ .. figure :: img/chatgpt_screenshot.png
261+ :align: center
262+
263+ Figure 2: Screenshot of active ``diffpy.apps `` server in ``ChatGPT ``.
264+
265+
233266How to use the MCP server
234267~~~~~~~~~~~~~~~~~~~~~~~~~
235- Once you have updated the configuration files successfully, ``Claude ``
236- will connect to the local DiffPy MCP server automatically whenever you open it.
268+ Once you have updated the configuration files successfully, agent like
269+ ``Claude `` or ``ChatGPT `` will connect to the local DiffPy MCP server
270+ automatically whenever you open it.
237271
238272Here is a simple example of conducting Ni structure refinement.
239273
0 commit comments