You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, ensure you have the `uv` executable installed. If not, you can install it by following the instructions [here](https://docs.astral.sh/uv/).
27
27
28
-
This Python package is not published to PyPI yet. Please clone this repo and run `uv sync` to install the dependencies.
29
-
30
28
1. Open the Claude Desktop configuration file located at:
31
29
- On macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
32
30
- On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
@@ -37,20 +35,17 @@ This Python package is not published to PyPI yet. Please clone this repo and run
37
35
{
38
36
"mcpServers": {
39
37
"mcp-timeplus": {
40
-
"command": "/path/to/uv",
41
-
"args": [
42
-
"run",
43
-
"--project",
44
-
"/path/to/repo/mcp-timeplus",
45
-
"--python",
46
-
"3.13",
47
-
"mcp-timeplus"
48
-
],
38
+
"command": "uvx",
39
+
"args": ["mcp-timeplus"],
49
40
"env": {
50
41
"TIMEPLUS_HOST": "<timeplus-host>",
51
42
"TIMEPLUS_PORT": "<timeplus-port>",
52
43
"TIMEPLUS_USER": "<timeplus-user>",
53
-
"TIMEPLUS_PASSWORD": "<timeplus-password>"
44
+
"TIMEPLUS_PASSWORD": "<timeplus-password>",
45
+
"TIMEPLUS_SECURE": "false",
46
+
"TIMEPLUS_VERIFY": "true",
47
+
"TIMEPLUS_CONNECT_TIMEOUT": "30",
48
+
"TIMEPLUS_SEND_RECEIVE_TIMEOUT": "30"
54
49
}
55
50
}
56
51
}
@@ -59,33 +54,9 @@ This Python package is not published to PyPI yet. Please clone this repo and run
59
54
60
55
Update the environment variables to point to your own Timeplus service.
61
56
62
-
3.Locate the command entry for `uv` and replace it with the absolute path to the `uv` executable. This ensures that the correct version of `uv` is used when starting the server. Also point to the absolute path to the `mcp-timeplus` directory. A sample configuration:
57
+
3.Restart Claude Desktop to apply the changes.
63
58
64
-
```json
65
-
{
66
-
"mcpServers": {
67
-
"mcp-timeplus": {
68
-
"command": "/opt/homebrew/bin/uv",
69
-
"args": [
70
-
"run",
71
-
"--project",
72
-
"/Users/jove/Dev/mcp-timeplus",
73
-
"--python",
74
-
"3.13",
75
-
"mcp-timeplus"
76
-
],
77
-
"env": {
78
-
"TIMEPLUS_HOST": "localhost",
79
-
"TIMEPLUS_PORT": "8123",
80
-
"TIMEPLUS_USER": "default",
81
-
"TIMEPLUS_PASSWORD": ""
82
-
}
83
-
}
84
-
}
85
-
}
86
-
```
87
-
88
-
4. Restart Claude Desktop to apply the changes.
59
+
You can also try this MCP server with other MCP clients, such as [5ire](https://github.com/nanbingxyz/5ire).
89
60
90
61
## Development
91
62
@@ -98,8 +69,41 @@ TIMEPLUS_HOST=localhost
98
69
TIMEPLUS_PORT=8123
99
70
TIMEPLUS_USER=default
100
71
TIMEPLUS_PASSWORD=
72
+
TIMEPLUS_SECURE=false
73
+
TIMEPLUS_VERIFY=true
74
+
TIMEPLUS_CONNECT_TIMEOUT=30
75
+
TIMEPLUS_SEND_RECEIVE_TIMEOUT=30
101
76
```
102
77
103
78
3. Run `uv sync` to install the dependencies. Then do `source .venv/bin/activate`.
104
79
105
80
4. For easy testing, you can run `fastmcp dev mcp_timeplus/mcp_server.py` to start the MCP server. Click the "Connect" button to connect the UI with the MCP server, then switch to the "Tools" tab to run the available tools: list_databases, list_tables, run_selected_query.
81
+
82
+
### Environment Variables
83
+
84
+
The following environment variables are used to configure the Timeplus connection:
85
+
86
+
#### Required Variables
87
+
*`TIMEPLUS_HOST`: The hostname of your Timeplus server
88
+
*`TIMEPLUS_USER`: The username for authentication
89
+
*`TIMEPLUS_PASSWORD`: The password for authentication
90
+
91
+
#### Optional Variables
92
+
*`TIMEPLUS_PORT`: The port number of your Timeplus server
93
+
- Default: `8443` if HTTPS is enabled, `8123` if disabled
94
+
- Usually doesn't need to be set unless using a non-standard port
0 commit comments