Skip to content

getEffectiveProjectId cannot return projectId passed into the function when GITLAB_ALLOWED_PROJECT_IDS is unspecified #298

@ricolo

Description

@ricolo

I want to retrieve the project ID of another project (different from GITLAB_PROJECT_ID) by the project path with namespace using get_project. It's supported by Gitlab project API: https://docs.gitlab.com/18.6/api/projects/#get-a-single-project

However, getEffectiveProjectId always returns GITLAB_PROJECT_ID when GITLAB_ALLOWED_PROJECT_IDS is unspecified. Can it have an option to return projectId passed into the function, or even let projectId have precedence over GITLAB_PROJECT_ID at https://github.com/zereight/gitlab-mcp/blob/v2.0.21/index.ts#L1307 ? Thanks.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions