Commit a102e94
agent
feat: add GITLAB_LOCK_PROJECT environment variable
Add ability to lock the MCP server to a single GitLab project by setting
GITLAB_LOCK_PROJECT=true. When enabled, the server will only allow access
to the project specified in GITLAB_PROJECT_ID and deny access to any other
projects with a clear error message.
This is useful for:
- Enhanced security by restricting access to a single project
- Preventing accidental operations on wrong projects
- Creating dedicated MCP instances for specific projects1 parent 1c7a62b commit a102e94
2 files changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
| 173 | + | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
| 829 | + | |
829 | 830 | | |
830 | 831 | | |
831 | 832 | | |
832 | 833 | | |
833 | 834 | | |
834 | 835 | | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
835 | 841 | | |
836 | 842 | | |
837 | 843 | | |
| |||
857 | 863 | | |
858 | 864 | | |
859 | 865 | | |
| 866 | + | |
860 | 867 | | |
861 | 868 | | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
862 | 878 | | |
863 | 879 | | |
864 | 880 | | |
| |||
0 commit comments