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
Copy file name to clipboardExpand all lines: README.md
+37-35Lines changed: 37 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,58 +31,67 @@
31
31
}
32
32
```
33
33
34
-
#### Example: Using Login/Password Authentication
34
+
###Via pipx
35
35
36
-
To use login/password authentication, specify the `--ydb-auth-mode`, `--ydb-login`, and `--ydb-password` arguments:
36
+
[pipx](https://pipx.pypa.io/stable/) allows you to run various applications from PyPI without explicitly installing each one. However, it must be [installed](https://pipx.pypa.io/stable/#install-pipx) first. Below are examples of how to configure YDB MCP using `pipx`.
37
+
38
+
#### Example: Using Anonymous Authentication
37
39
38
40
```json
39
41
{
40
42
"mcpServers": {
41
43
"ydb": {
42
-
"command": "uvx",
44
+
"command": "pipx",
43
45
"args": [
44
-
"ydb-mcp",
45
-
"--ydb-endpoint", "grpc://localhost:2136/local",
46
-
"--ydb-auth-mode", "login-password",
47
-
"--ydb-login", "<your-username>",
48
-
"--ydb-password", "<your-password>"
46
+
"run", "ydb-mcp",
47
+
"--ydb-endpoint", "grpc://localhost:2136/local"
49
48
]
50
49
}
51
50
}
52
51
}
53
52
```
54
53
55
-
### Via pipx
54
+
### Via pip
56
55
57
-
[pipx](https://pipx.pypa.io/stable/) allows you to run various applications from PyPI without explicitly installing each one. However, it must be [installed](https://pipx.pypa.io/stable/#install-pipx) first. Below are examples of how to configure YDB MCP using `pipx`.
56
+
YDB MCP can be installed using `pip`, [Python's package installer](https://pypi.org/project/pip/). The package is [available on PyPI](https://pypi.org/project/ydb-mcp/) and includes all necessary dependencies.
57
+
58
+
```bash
59
+
pip install ydb-mcp
60
+
```
61
+
62
+
To get started with YDB MCP, you'll need to configure your MCP client to communicate with the YDB instance. Below are example configuration files that you can customize according to your setup and then put into MCP client's settings. Path to the Python interpreter might also need to be adjusted to the correct virtual environment that has the `ydb-mcp` package installed.
58
63
59
64
#### Example: Using Anonymous Authentication
60
65
61
66
```json
62
67
{
63
68
"mcpServers": {
64
69
"ydb": {
65
-
"command": "pipx",
70
+
"command": "python3",
66
71
"args": [
67
-
"run", "ydb-mcp",
72
+
"-m", "ydb_mcp",
68
73
"--ydb-endpoint", "grpc://localhost:2136/local"
69
74
]
70
75
}
71
76
}
72
77
}
73
78
```
74
79
75
-
#### Example: Using Login/Password Authentication
80
+
### Authentication
81
+
82
+
Regardless of the usage method (`uvx`, `pipx` or `pip`), you can configure authentication for your YDB installation. To do this, pass special command line arguments.
83
+
84
+
#### Using Login/Password Authentication
76
85
77
86
To use login/password authentication, specify the `--ydb-auth-mode`, `--ydb-login`, and `--ydb-password` arguments:
78
87
79
88
```json
80
89
{
81
90
"mcpServers": {
82
91
"ydb": {
83
-
"command": "pipx",
92
+
"command": "uvx",
84
93
"args": [
85
-
"run", "ydb-mcp",
94
+
"ydb-mcp",
86
95
"--ydb-endpoint", "grpc://localhost:2136/local",
87
96
"--ydb-auth-mode", "login-password",
88
97
"--ydb-login", "<your-username>",
@@ -93,47 +102,40 @@ To use login/password authentication, specify the `--ydb-auth-mode`, `--ydb-logi
93
102
}
94
103
```
95
104
96
-
### Via pip
97
-
98
-
YDB MCP can be installed using `pip`, [Python's package installer](https://pypi.org/project/pip/). The package is [available on PyPI](https://pypi.org/project/ydb-mcp/) and includes all necessary dependencies.
105
+
#### Using Access Token Authentication
99
106
100
-
```bash
101
-
pip install ydb-mcp
102
-
```
103
-
104
-
To get started with YDB MCP, you'll need to configure your MCP client to communicate with the YDB instance. Below are example configuration files that you can customize according to your setup and then put into MCP client's settings. Path to the Python interpreter might also need to be adjusted to the correct virtual environment that has the `ydb-mcp` package installed.
105
-
106
-
#### Example: Using Anonymous Authentication
107
+
To use access token authentication, specify the `--ydb-auth-mode` and `--ydb-access-token` arguments:
107
108
108
109
```json
109
110
{
110
111
"mcpServers": {
111
112
"ydb": {
112
-
"command": "python3",
113
+
"command": "uvx",
113
114
"args": [
114
-
"-m", "ydb_mcp",
115
-
"--ydb-endpoint", "grpc://localhost:2136/local"
115
+
"ydb-mcp",
116
+
"--ydb-endpoint", "grpc://localhost:2136/local",
117
+
"--ydb-auth-mode", "access-token",
118
+
"--ydb-access-token", "qwerty123"
116
119
]
117
120
}
118
121
}
119
122
}
120
123
```
121
124
122
-
#### Example: Using Login/Password Authentication
125
+
#### Using Service Account Authentication
123
126
124
-
To use login/password authentication, specify the `--ydb-auth-mode`, `--ydb-login`, and `--ydb-password` arguments:
127
+
To use service account authentication, specify the `--ydb-auth-mode`and `--ydb-sa-key-file` arguments:
0 commit comments