jerryshao commented on code in PR #7905:
URL: https://github.com/apache/gravitino/pull/7905#discussion_r2259260065


##########
docs/gravitino-mcp-server.md:
##########
@@ -0,0 +1,74 @@
+---
+title: "Gravitino MCP server"
+slug: /gravitino-mcp-server
+keyword: Gravitino MCP metadata
+license: "This software is licensed under the Apache License version 2."
+---
+
+Gravitino MCP server provides the ability to manage Gravitino metadata for LLM.
+
+### Requirement:
+
+1. Python 3.10+
+2. uv is installed. You can install uv by following the [official 
guide](https://docs.astral.sh/uv/getting-started/installation/).
+
+### How to run:
+
+1. Clone the code from GitHub, and change to `mcp-server` directory
+2. Create virtual environment, `uv venv`
+3. Install the required Python packages. `uv pip install -e .`
+4. Add Gravitino MCP server to corresponding LLM tools. Take `cursor` for 
example, edit `~/.cursor/mcp.json`, use following configuration for local 
Gravitino MCP server:
+
+```json
+{
+  "mcpServers": {
+    "gravitino": {
+      "command": "uv",
+      "args": [
+        "--directory",
+        "$path/mcp-server",
+        "run",
+        "mcp_server",
+        "--metalake",
+        "test",
+        "--uri",
+        "http://127.0.0.1:8090";
+      ]
+    }
+  }
+}
+```
+
+Or start a HTTP MCP server by `uv run mcp_server --metalake test --uri 
http://127.0.0.1:8090 --transport http --mcp-url http://localhost:8000/mcp`, 
and use the configuration:
+
+```json
+{
+  "mcpServers": {
+    "gravitino": {
+      "url": "http://localhost:1234/mcp1";

Review Comment:
   How to configure the port of mcp server?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to