[PATCH 23/23] mcp-server: Use relative path in .mcp.json and add example for installation

John Kacur <[email protected]>
Newsgroups org.kernel.vger.linux-rt-users
Message-ID <[email protected]>
Change .mcp.json to use a relative path (./rteval_mcp/rteval-mcp-server)
instead of an absolute path. This allows developers to work from any git
checkout location without hardcoded paths.

Add mcp.json.example for packagers and system installations. This file
documents how to configure the MCP server when rteval-mcp-server is
installed to a system path like /usr/bin. Packagers can install this
example to /usr/share/doc/rteval/ or similar location.

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: John Kacur <[email protected]>
---
 .mcp.json        |  5 +----
 mcp.json.example | 11 +++++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)
 create mode 100644 mcp.json.example

diff --git a/.mcp.json b/.mcp.json
index 5e1a5d789c9b..5fe18084cf68 100644
--- a/.mcp.json
+++ b/.mcp.json
@@ -1,10 +1,7 @@
 {
   "mcpServers": {
     "rteval-mcp": {
-      "command": "python3",
-      "args": [
-        "/home/jkacur/src/rteval/mcp-server/server.py"
-      ]
+      "command": "./rteval_mcp/rteval-mcp-server"
     }
   }
 }
\ No newline at end of file
diff --git a/mcp.json.example b/mcp.json.example
new file mode 100644
index 000000000000..093188fc323c
--- /dev/null
+++ b/mcp.json.example
@@ -0,0 +1,11 @@
+{
+  "_comment": "Example MCP server configuration for rteval-mcp",
+  "_installation": "When rteval is installed system-wide, this file should be copied to ~/.config/mcp/mcp.json or merged with existing MCP configuration",
+  "_usage": "The rteval-mcp-server command will be installed to /usr/bin or a similar system path",
+
+  "mcpServers": {
+    "rteval-mcp": {
+      "command": "rteval-mcp-server"
+    }
+  }
+}
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.