Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
8df87c67d2 | |||
d318f9ea5e |
4
index.ts
4
index.ts
@ -251,7 +251,7 @@ const DEFAULT_HEADERS: Record<string, string> = {
|
||||
"Content-Type": "application/json",
|
||||
};
|
||||
if (IS_OLD) {
|
||||
DEFAULT_HEADERS["Private-Token"] = `Bearer ${GITLAB_PERSONAL_ACCESS_TOKEN}`;
|
||||
DEFAULT_HEADERS["Private-Token"] = `${GITLAB_PERSONAL_ACCESS_TOKEN}`;
|
||||
} else {
|
||||
DEFAULT_HEADERS["Authorization"] = `Bearer ${GITLAB_PERSONAL_ACCESS_TOKEN}`;
|
||||
}
|
||||
@ -2739,7 +2739,7 @@ async function getRepositoryTree(options: GetRepositoryTreeOptions): Promise<Git
|
||||
"Content-Type": "application/json",
|
||||
};
|
||||
if (IS_OLD) {
|
||||
headers["Private-Token"] = `Bearer ${GITLAB_PERSONAL_ACCESS_TOKEN}`;
|
||||
headers["Private-Token"] = `${GITLAB_PERSONAL_ACCESS_TOKEN}`;
|
||||
} else {
|
||||
headers["Authorization"] = `Bearer ${GITLAB_PERSONAL_ACCESS_TOKEN}`;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@zereight/mcp-gitlab",
|
||||
"version": "1.0.61",
|
||||
"version": "1.0.62",
|
||||
"description": "MCP server for using the GitLab API",
|
||||
"license": "MIT",
|
||||
"author": "zereight",
|
||||
|
Reference in New Issue
Block a user