Skip to content

Commit 3c12c52

Browse files
authored
Add version flag (#8)
1 parent 5fd36e0 commit 3c12c52

File tree

2 files changed

+32
-22
lines changed

2 files changed

+32
-22
lines changed

README.md

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ This is the simplest way to get started if you have [Docker](https://www.docker.
5959
}
6060
```
6161

62-
#### Method B: Direct Download
63-
Use this method if you prefer not to use Docker and a pre-compiled binary is available for your system.
64-
65-
**Steps:**
66-
1. Open the MCP server's [GitHub releases page](https://github.com/render-oss/render-mcp-server/releases/).
67-
2. Download the executable that corresponds to your system's architecture.
68-
3. Note the full path to where you saved the downloaded executable.
69-
4. Configure your MCP client with the following settings. Replace `/path/to/render-mcp-server` with the actual path to the executable and `<YOUR_API_KEY>` with your API key:
62+
#### Method B: Using the install script (Linux/MacOS only)
63+
1. Run the following command:
64+
```shell
65+
curl -fsSL https://raw.githubusercontent.com/render-oss/render-mcp-server/refs/heads/main/bin/install.sh | sh
66+
```
67+
2. Note the full path where the install script saved the downloaded executable. It should have a directory where it was installed e.g., `✨ Successfully installed Render MCP Server to /Users/example/.local/bin/render-mcp-server`
68+
2. Configure your MCP client with the following settings. Replace `/path/to/render-mcp-server` with the actual path to the executable and `<YOUR_API_KEY>` with your API key:
7069
```json
7170
{
7271
"mcpServers": {
@@ -79,9 +78,18 @@ Use this method if you prefer not to use Docker and a pre-compiled binary is ava
7978
}
8079
}
8180
```
81+
82+
#### Method C: Direct Download
83+
Use this method if you prefer not to use Docker and a pre-compiled binary is available for your system.
84+
85+
**Steps:**
86+
1. Open the MCP server's [GitHub releases page](https://github.com/render-oss/render-mcp-server/releases/).
87+
2. Download the executable that corresponds to your system's architecture.
88+
3. Note the full path to where you saved the downloaded executable.
89+
4. Configure your MCP client with the same settings as Method B.
8290
> **macOS Users**: If you run the binary directly on macOS, you may need to grant an exception for it to run. See the [Limitations](#limitations) section for more details and a link to Apple's support page.
8391
84-
#### Method C: Build from Source
92+
#### Method D: Build from Source
8593
Choose this method if no pre-compiled binary suits your system, you want to build from the latest code, or you are a developer modifying the server. You will need [Go (Golang)](https://go.dev/doc/install) installed.
8694

8795
**Steps:**
@@ -94,19 +102,7 @@ Choose this method if no pre-compiled binary suits your system, you want to buil
94102
```
95103
This will create a `render-mcp-server` executable in the `render-mcp-server` directory.
96104
3. Note the full path to this newly built executable (e.g., `./render-mcp-server` if you are in the directory, or the full absolute path).
97-
4. Configure your MCP client with the following settings. Replace `/path/to/render-mcp-server` with the actual path to the executable and `<YOUR_API_KEY>` with your API key:
98-
```json
99-
{
100-
"mcpServers": {
101-
"render": {
102-
"command": "/path/to/render-mcp-server",
103-
"env": {
104-
"RENDER_API_KEY": "<YOUR_API_KEY>"
105-
}
106-
}
107-
}
108-
}
109-
```
105+
4. Configure your MCP client with the same settings as Method B.
110106

111107
## Limitations
112108

main.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ package main
22

33
import (
44
"flag"
5+
"fmt"
6+
"os"
57

68
"github.com/render-oss/render-mcp-server/cmd"
9+
"github.com/render-oss/render-mcp-server/pkg/cfg"
710
"github.com/render-oss/render-mcp-server/pkg/config"
811
)
912

@@ -16,7 +19,18 @@ func main() {
1619
"potentially sensitive information such as environment variables or database credentials "+
1720
"in your LLM context.",
1821
)
22+
23+
versionFlag := flag.Bool("version", false, "Print version information and exit")
24+
flag.BoolVar(versionFlag, "v", false, "Print version information and exit")
25+
1926
flag.Parse()
27+
28+
// Print version and exit if version flag is provided
29+
if *versionFlag {
30+
fmt.Println("render-mcp-server version", cfg.Version)
31+
os.Exit(0)
32+
}
33+
2034
config.InitRuntimeConfig(*includeSensitiveInfo)
2135

2236
// Start the server

0 commit comments

Comments
 (0)