Commit 5e498ed
Add support for mTLS & certificates (#51)
* Add support for mTLS & certificates
- Added support for Basic Authentication and mTLS in the README.md, detailing the required environment variables and configuration examples.
- Updated the `mcp_server.py` to include new command-line options for CA certificate and client certificate paths.
- Modified connection logic in `connection.py` to support mTLS authentication using client certificates, with appropriate error handling for missing files.
- Updated context management in `context.py` to include new certificate paths in the connection setup.
- Enhanced server status reporting in `server.py` to reflect the new authentication configurations.
* Add support for key in CLI arguments
- Revised README.md to add updated environment variable descriptions for mTLS authentication, including the addition of `CB_CLIENT_KEY_PATH`.
- Enhanced `mcp_server.py` to include a new command-line option for the client key path.
- Updated connection logic in `connection.py` to support both client certificate and key paths for mTLS authentication, with improved error handling for missing files.
- Modified context management in `context.py` to incorporate the new client key path in the connection setup.
- Improved server status reporting in `server.py` to reflect the new authentication configurations.
* Update README.md (#52)
* Update README.md
Removed CA_SERVER_CERT from the config examples as it is optional. Also updated "uv" example to indicate path to uv binary
* Update README.md to clarify configuration and troubleshooting instructions
- Simplified the command path for the `uv` binary in the configuration example.
- Corrected the wording in the environment variable table for `CB_CLIENT_KEY_PATH` to clarify its requirement for mTLS.
- Enhanced troubleshooting tips to specify the need for valid database credentials and permissions for at least one bucket.
* Clarify README.md environment variable requirements for mTLS authentication
- Updated the description for `CB_CLIENT_KEY_PATH` in the environment variable table to emphasize the requirement for mTLS authentication, ensuring consistency in the documentation.
---------
Co-authored-by: Nithish Raghunandanan <12782505+nithishr@users.noreply.github.com>
---------
Co-authored-by: Priya Rajagopal <rajagp@users.noreply.github.com>1 parent 37fe8e1 commit 5e498ed
File tree
5 files changed
+109
-17
lines changed- src
- tools
- utils
5 files changed
+109
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
59 | 81 | | |
60 | 82 | | |
61 | 83 | | |
| |||
100 | 122 | | |
101 | 123 | | |
102 | 124 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
113 | 140 | | |
114 | 141 | | |
115 | 142 | | |
| |||
370 | 397 | | |
371 | 398 | | |
372 | 399 | | |
373 | | - | |
| 400 | + | |
374 | 401 | | |
375 | | - | |
| 402 | + | |
376 | 403 | | |
377 | 404 | | |
378 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
80 | 98 | | |
81 | 99 | | |
82 | 100 | | |
| |||
116 | 134 | | |
117 | 135 | | |
118 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
119 | 140 | | |
120 | 141 | | |
121 | 142 | | |
| |||
127 | 148 | | |
128 | 149 | | |
129 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
130 | 154 | | |
131 | 155 | | |
132 | 156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
22 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
23 | 49 | | |
24 | 50 | | |
25 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
40 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
| |||
0 commit comments