@structured-world/gitlab-mcp 10.1.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/README.md.in +2 -2
- package/dist/src/accounts/chat-accounts.d.ts +17 -0
- package/dist/src/accounts/chat-accounts.js +245 -0
- package/dist/src/accounts/chat-accounts.js.map +1 -0
- package/dist/src/accounts/instance-tokens.d.ts +2 -0
- package/dist/src/accounts/instance-tokens.js +43 -0
- package/dist/src/accounts/instance-tokens.js.map +1 -0
- package/dist/src/accounts/link.d.ts +16 -0
- package/dist/src/accounts/link.js +469 -0
- package/dist/src/accounts/link.js.map +1 -0
- package/dist/src/accounts/token-account.d.ts +6 -0
- package/dist/src/accounts/token-account.js +13 -0
- package/dist/src/accounts/token-account.js.map +1 -0
- package/dist/src/channel-gateway/format.js +7 -1
- package/dist/src/channel-gateway/format.js.map +1 -1
- package/dist/src/channel-gateway/forwarding.d.ts +3 -0
- package/dist/src/channel-gateway/forwarding.js +8 -1
- package/dist/src/channel-gateway/forwarding.js.map +1 -1
- package/dist/src/channel-gateway/gateway.d.ts +7 -0
- package/dist/src/channel-gateway/gateway.js +80 -16
- package/dist/src/channel-gateway/gateway.js.map +1 -1
- package/dist/src/cli/docker/container-runtime.d.ts +1 -0
- package/dist/src/cli/docker/container-runtime.js +37 -5
- package/dist/src/cli/docker/container-runtime.js.map +1 -1
- package/dist/src/cli/docker/docker-command.js +11 -2
- package/dist/src/cli/docker/docker-command.js.map +1 -1
- package/dist/src/cli/docker/docker-utils.d.ts +1 -0
- package/dist/src/cli/docker/docker-utils.js +137 -27
- package/dist/src/cli/docker/docker-utils.js.map +1 -1
- package/dist/src/cli/docker/oauth-issuer-prompt.d.ts +2 -0
- package/dist/src/cli/docker/oauth-issuer-prompt.js +47 -0
- package/dist/src/cli/docker/oauth-issuer-prompt.js.map +1 -0
- package/dist/src/cli/docker/types.d.ts +18 -4
- package/dist/src/cli/docker/types.js.map +1 -1
- package/dist/src/cli/init/config-generator.d.ts +3 -2
- package/dist/src/cli/init/config-generator.js +15 -0
- package/dist/src/cli/init/config-generator.js.map +1 -1
- package/dist/src/cli/init/types.d.ts +7 -2
- package/dist/src/cli/init/types.js +9 -0
- package/dist/src/cli/init/types.js.map +1 -1
- package/dist/src/cli/init/wizard.js +31 -1
- package/dist/src/cli/init/wizard.js.map +1 -1
- package/dist/src/cli/install/codex.d.ts +25 -0
- package/dist/src/cli/install/codex.js +261 -0
- package/dist/src/cli/install/codex.js.map +1 -0
- package/dist/src/cli/install/detector.js +22 -0
- package/dist/src/cli/install/detector.js.map +1 -1
- package/dist/src/cli/install/index.d.ts +2 -1
- package/dist/src/cli/install/index.js +3 -1
- package/dist/src/cli/install/index.js.map +1 -1
- package/dist/src/cli/install/install-command.d.ts +5 -2
- package/dist/src/cli/install/install-command.js +52 -8
- package/dist/src/cli/install/install-command.js.map +1 -1
- package/dist/src/cli/install/installers.d.ts +8 -8
- package/dist/src/cli/install/installers.js +18 -3
- package/dist/src/cli/install/installers.js.map +1 -1
- package/dist/src/cli/install/notes.d.ts +2 -0
- package/dist/src/cli/install/notes.js +8 -0
- package/dist/src/cli/install/notes.js.map +1 -0
- package/dist/src/cli/install/types.d.ts +1 -0
- package/dist/src/cli/install/types.js +12 -0
- package/dist/src/cli/install/types.js.map +1 -1
- package/dist/src/cli/list-tools.js +14 -35
- package/dist/src/cli/list-tools.js.map +1 -1
- package/dist/src/cli/plugin/build.d.ts +23 -0
- package/dist/src/cli/plugin/build.js +165 -0
- package/dist/src/cli/plugin/build.js.map +1 -0
- package/dist/src/cli/plugin/command.d.ts +4 -0
- package/dist/src/cli/plugin/command.js +89 -0
- package/dist/src/cli/plugin/command.js.map +1 -0
- package/dist/src/cli/plugin/index.d.ts +5 -0
- package/dist/src/cli/plugin/index.js +15 -0
- package/dist/src/cli/plugin/index.js.map +1 -0
- package/dist/src/cli/plugin/listing.d.ts +21 -0
- package/dist/src/cli/plugin/listing.js +44 -0
- package/dist/src/cli/plugin/listing.js.map +1 -0
- package/dist/src/cli/plugin/validate.d.ts +21 -0
- package/dist/src/cli/plugin/validate.js +496 -0
- package/dist/src/cli/plugin/validate.js.map +1 -0
- package/dist/src/cli/plugin/zip.d.ts +6 -0
- package/dist/src/cli/plugin/zip.js +83 -0
- package/dist/src/cli/plugin/zip.js.map +1 -0
- package/dist/src/cli/setup/flows/configure-existing.js +5 -0
- package/dist/src/cli/setup/flows/configure-existing.js.map +1 -1
- package/dist/src/cli/setup/flows/local-setup.js +3 -0
- package/dist/src/cli/setup/flows/local-setup.js.map +1 -1
- package/dist/src/cli/setup/flows/server-setup.js +15 -0
- package/dist/src/cli/setup/flows/server-setup.js.map +1 -1
- package/dist/src/cli-utils.d.ts +2 -0
- package/dist/src/cli-utils.js +6 -0
- package/dist/src/cli-utils.js.map +1 -1
- package/dist/src/config/instances-loader.js +17 -3
- package/dist/src/config/instances-loader.js.map +1 -1
- package/dist/src/config/instances-schema.d.ts +8 -3
- package/dist/src/config/instances-schema.js +12 -6
- package/dist/src/config/instances-schema.js.map +1 -1
- package/dist/src/config.js.map +1 -1
- package/dist/src/configuration/caller.d.ts +10 -0
- package/dist/src/configuration/caller.js +39 -0
- package/dist/src/configuration/caller.js.map +1 -0
- package/dist/src/configuration/composed-feeds.d.ts +31 -0
- package/dist/src/configuration/composed-feeds.js +698 -0
- package/dist/src/configuration/composed-feeds.js.map +1 -0
- package/dist/src/configuration/composed-listings.d.ts +14 -0
- package/dist/src/configuration/composed-listings.js +157 -0
- package/dist/src/configuration/composed-listings.js.map +1 -0
- package/dist/src/configuration/groups.d.ts +8 -0
- package/dist/src/configuration/groups.js +39 -0
- package/dist/src/configuration/groups.js.map +1 -0
- package/dist/src/configuration/index.d.ts +6 -0
- package/dist/src/configuration/index.js +87 -0
- package/dist/src/configuration/index.js.map +1 -0
- package/dist/src/configuration/policy.d.ts +34 -0
- package/dist/src/configuration/policy.js +122 -0
- package/dist/src/configuration/policy.js.map +1 -0
- package/dist/src/configuration/scope-ids.d.ts +7 -0
- package/dist/src/configuration/scope-ids.js +78 -0
- package/dist/src/configuration/scope-ids.js.map +1 -0
- package/dist/src/configuration/scope-projects.d.ts +5 -0
- package/dist/src/configuration/scope-projects.js +76 -0
- package/dist/src/configuration/scope-projects.js.map +1 -0
- package/dist/src/configuration/scope-targets.d.ts +26 -0
- package/dist/src/configuration/scope-targets.js +307 -0
- package/dist/src/configuration/scope-targets.js.map +1 -0
- package/dist/src/configuration/scoped-execution.d.ts +6 -0
- package/dist/src/configuration/scoped-execution.js +577 -0
- package/dist/src/configuration/scoped-execution.js.map +1 -0
- package/dist/src/configuration/scoped-feeds.d.ts +22 -0
- package/dist/src/configuration/scoped-feeds.js +136 -0
- package/dist/src/configuration/scoped-feeds.js.map +1 -0
- package/dist/src/configuration/service.d.ts +52 -0
- package/dist/src/configuration/service.js +169 -0
- package/dist/src/configuration/service.js.map +1 -0
- package/dist/src/configuration/settings-store.d.ts +20 -0
- package/dist/src/configuration/settings-store.js +228 -0
- package/dist/src/configuration/settings-store.js.map +1 -0
- package/dist/src/configuration/types.d.ts +30 -0
- package/dist/src/configuration/types.js +20 -0
- package/dist/src/configuration/types.js.map +1 -0
- package/dist/src/contracts/storage.d.ts +3 -2
- package/dist/src/dashboard/html-template.js +8 -15
- package/dist/src/dashboard/html-template.js.map +1 -1
- package/dist/src/dashboard/metrics.d.ts +1 -1
- package/dist/src/entities/context/accounts.d.ts +19 -0
- package/dist/src/entities/context/accounts.js +115 -0
- package/dist/src/entities/context/accounts.js.map +1 -0
- package/dist/src/entities/context/connection-check.d.ts +64 -0
- package/dist/src/entities/context/connection-check.js +117 -0
- package/dist/src/entities/context/connection-check.js.map +1 -0
- package/dist/src/entities/context/context-manager.d.ts +10 -23
- package/dist/src/entities/context/context-manager.js +101 -282
- package/dist/src/entities/context/context-manager.js.map +1 -1
- package/dist/src/entities/context/handlers.d.ts +5 -5
- package/dist/src/entities/context/handlers.js +11 -14
- package/dist/src/entities/context/handlers.js.map +1 -1
- package/dist/src/entities/context/output-schema.d.ts +320 -0
- package/dist/src/entities/context/output-schema.js +210 -0
- package/dist/src/entities/context/output-schema.js.map +1 -0
- package/dist/src/entities/context/profile.d.ts +29 -0
- package/dist/src/entities/context/profile.js +72 -0
- package/dist/src/entities/context/profile.js.map +1 -0
- package/dist/src/entities/context/registry.js +140 -3
- package/dist/src/entities/context/registry.js.map +1 -1
- package/dist/src/entities/context/schema.d.ts +32 -14
- package/dist/src/entities/context/schema.js +36 -13
- package/dist/src/entities/context/schema.js.map +1 -1
- package/dist/src/entities/context/scope-search.d.ts +49 -0
- package/dist/src/entities/context/scope-search.js +71 -0
- package/dist/src/entities/context/scope-search.js.map +1 -0
- package/dist/src/entities/context/settings-panel.d.ts +13 -0
- package/dist/src/entities/context/settings-panel.js +508 -0
- package/dist/src/entities/context/settings-panel.js.map +1 -0
- package/dist/src/entities/context/settings.d.ts +78 -0
- package/dist/src/entities/context/settings.js +239 -0
- package/dist/src/entities/context/settings.js.map +1 -0
- package/dist/src/entities/context/types.d.ts +3 -4
- package/dist/src/entities/context/whoami.js +39 -31
- package/dist/src/entities/context/whoami.js.map +1 -1
- package/dist/src/entities/core/registry.js +34 -33
- package/dist/src/entities/core/registry.js.map +1 -1
- package/dist/src/entities/core/schema-readonly.d.ts +4 -4
- package/dist/src/entities/environments/schema-readonly.d.ts +4 -4
- package/dist/src/entities/files/registry.js +3 -2
- package/dist/src/entities/files/registry.js.map +1 -1
- package/dist/src/entities/iterations/registry.js +3 -2
- package/dist/src/entities/iterations/registry.js.map +1 -1
- package/dist/src/entities/mrs/registry.js +6 -4
- package/dist/src/entities/mrs/registry.js.map +1 -1
- package/dist/src/entities/mrs/schema-readonly.d.ts +2 -2
- package/dist/src/entities/mrs/schema-readonly.js +19 -2
- package/dist/src/entities/mrs/schema-readonly.js.map +1 -1
- package/dist/src/entities/mrs/schema.d.ts +1 -1
- package/dist/src/entities/pipelines/registry.js +23 -31
- package/dist/src/entities/pipelines/registry.js.map +1 -1
- package/dist/src/entities/pipelines/schema-readonly.d.ts +11 -11
- package/dist/src/entities/pipelines/schema-readonly.js +5 -2
- package/dist/src/entities/pipelines/schema-readonly.js.map +1 -1
- package/dist/src/entities/pipelines/trace.d.ts +20 -0
- package/dist/src/entities/pipelines/trace.js +156 -0
- package/dist/src/entities/pipelines/trace.js.map +1 -0
- package/dist/src/entities/runners/project-access.d.ts +14 -0
- package/dist/src/entities/runners/project-access.js +64 -0
- package/dist/src/entities/runners/project-access.js.map +1 -0
- package/dist/src/entities/runners/registry.js +54 -26
- package/dist/src/entities/runners/registry.js.map +1 -1
- package/dist/src/entities/search/schema-readonly.d.ts +28 -28
- package/dist/src/graphql/runners.d.ts +26 -1
- package/dist/src/graphql/runners.js +43 -6
- package/dist/src/graphql/runners.js.map +1 -1
- package/dist/src/graphql/vulnerabilities.d.ts +3 -0
- package/dist/src/graphql/vulnerabilities.js +1 -0
- package/dist/src/graphql/vulnerabilities.js.map +1 -1
- package/dist/src/handlers.js +351 -190
- package/dist/src/handlers.js.map +1 -1
- package/dist/src/main.js +23 -5
- package/dist/src/main.js.map +1 -1
- package/dist/src/mcp-apps.d.ts +6 -0
- package/dist/src/mcp-apps.js +8 -0
- package/dist/src/mcp-apps.js.map +1 -0
- package/dist/src/mcp-server-context.d.ts +3 -0
- package/dist/src/mcp-server-context.js +13 -0
- package/dist/src/mcp-server-context.js.map +1 -0
- package/dist/src/middleware/mcp-auth-routes.d.ts +3 -0
- package/dist/src/middleware/mcp-auth-routes.js +9 -0
- package/dist/src/middleware/mcp-auth-routes.js.map +1 -0
- package/dist/src/middleware/oauth-auth.js +87 -24
- package/dist/src/middleware/oauth-auth.js.map +1 -1
- package/dist/src/middleware/rate-limiter.js +11 -10
- package/dist/src/middleware/rate-limiter.js.map +1 -1
- package/dist/src/oauth/authorization-response.d.ts +1 -0
- package/dist/src/oauth/authorization-response.js +14 -0
- package/dist/src/oauth/authorization-response.js.map +1 -0
- package/dist/src/oauth/client-auth.d.ts +16 -0
- package/dist/src/oauth/client-auth.js +73 -0
- package/dist/src/oauth/client-auth.js.map +1 -0
- package/dist/src/oauth/code-exchange.d.ts +7 -0
- package/dist/src/oauth/code-exchange.js +38 -0
- package/dist/src/oauth/code-exchange.js.map +1 -0
- package/dist/src/oauth/config.d.ts +2 -0
- package/dist/src/oauth/config.js +37 -0
- package/dist/src/oauth/config.js.map +1 -1
- package/dist/src/oauth/endpoints/authorize.d.ts +1 -0
- package/dist/src/oauth/endpoints/authorize.js +361 -102
- package/dist/src/oauth/endpoints/authorize.js.map +1 -1
- package/dist/src/oauth/endpoints/callback.js +76 -41
- package/dist/src/oauth/endpoints/callback.js.map +1 -1
- package/dist/src/oauth/endpoints/index.d.ts +1 -0
- package/dist/src/oauth/endpoints/index.js +3 -1
- package/dist/src/oauth/endpoints/index.js.map +1 -1
- package/dist/src/oauth/endpoints/metadata.d.ts +1 -1
- package/dist/src/oauth/endpoints/metadata.js +23 -8
- package/dist/src/oauth/endpoints/metadata.js.map +1 -1
- package/dist/src/oauth/endpoints/register.d.ts +3 -2
- package/dist/src/oauth/endpoints/register.js +70 -19
- package/dist/src/oauth/endpoints/register.js.map +1 -1
- package/dist/src/oauth/endpoints/revoke.d.ts +2 -0
- package/dist/src/oauth/endpoints/revoke.js +78 -0
- package/dist/src/oauth/endpoints/revoke.js.map +1 -0
- package/dist/src/oauth/endpoints/token.js +136 -62
- package/dist/src/oauth/endpoints/token.js.map +1 -1
- package/dist/src/oauth/gitlab-device-flow.d.ts +27 -8
- package/dist/src/oauth/gitlab-device-flow.js +119 -57
- package/dist/src/oauth/gitlab-device-flow.js.map +1 -1
- package/dist/src/oauth/gitlab-request-bound.d.ts +1 -0
- package/dist/src/oauth/gitlab-request-bound.js +6 -0
- package/dist/src/oauth/gitlab-request-bound.js.map +1 -0
- package/dist/src/oauth/gitlab-token-refresh.d.ts +7 -0
- package/dist/src/oauth/gitlab-token-refresh.js +147 -0
- package/dist/src/oauth/gitlab-token-refresh.js.map +1 -0
- package/dist/src/oauth/grant-revocation.d.ts +10 -0
- package/dist/src/oauth/grant-revocation.js +179 -0
- package/dist/src/oauth/grant-revocation.js.map +1 -0
- package/dist/src/oauth/granted-scopes.d.ts +1 -0
- package/dist/src/oauth/granted-scopes.js +7 -0
- package/dist/src/oauth/granted-scopes.js.map +1 -0
- package/dist/src/oauth/index.d.ts +2 -2
- package/dist/src/oauth/index.js +4 -2
- package/dist/src/oauth/index.js.map +1 -1
- package/dist/src/oauth/instance-app.d.ts +4 -0
- package/dist/src/oauth/instance-app.js +45 -0
- package/dist/src/oauth/instance-app.js.map +1 -0
- package/dist/src/oauth/issued-tokens.d.ts +1 -0
- package/dist/src/oauth/issued-tokens.js +24 -0
- package/dist/src/oauth/issued-tokens.js.map +1 -0
- package/dist/src/oauth/oauth-app.d.ts +9 -0
- package/dist/src/oauth/oauth-app.js +14 -0
- package/dist/src/oauth/oauth-app.js.map +1 -0
- package/dist/src/oauth/request-params.d.ts +1 -0
- package/dist/src/oauth/request-params.js +17 -0
- package/dist/src/oauth/request-params.js.map +1 -0
- package/dist/src/oauth/resource.d.ts +12 -0
- package/dist/src/oauth/resource.js +66 -0
- package/dist/src/oauth/resource.js.map +1 -0
- package/dist/src/oauth/routes.d.ts +2 -0
- package/dist/src/oauth/routes.js +31 -0
- package/dist/src/oauth/routes.js.map +1 -0
- package/dist/src/oauth/session-store.d.ts +51 -36
- package/dist/src/oauth/session-store.js +156 -251
- package/dist/src/oauth/session-store.js.map +1 -1
- package/dist/src/oauth/storage/factory.js +1 -1
- package/dist/src/oauth/storage/factory.js.map +1 -1
- package/dist/src/oauth/storage/file.d.ts +29 -2
- package/dist/src/oauth/storage/file.js +194 -42
- package/dist/src/oauth/storage/file.js.map +1 -1
- package/dist/src/oauth/storage/memory.d.ts +35 -2
- package/dist/src/oauth/storage/memory.js +327 -32
- package/dist/src/oauth/storage/memory.js.map +1 -1
- package/dist/src/oauth/storage/types.d.ts +37 -1
- package/dist/src/oauth/storage/types.js +6 -1
- package/dist/src/oauth/storage/types.js.map +1 -1
- package/dist/src/oauth/tool-auth.d.ts +12 -0
- package/dist/src/oauth/tool-auth.js +108 -0
- package/dist/src/oauth/tool-auth.js.map +1 -0
- package/dist/src/oauth/types.d.ts +41 -0
- package/dist/src/profiles/scope-enforcer.d.ts +8 -0
- package/dist/src/profiles/scope-enforcer.js +86 -24
- package/dist/src/profiles/scope-enforcer.js.map +1 -1
- package/dist/src/profiles/types.js +4 -1
- package/dist/src/profiles/types.js.map +1 -1
- package/dist/src/registry-manager.d.ts +16 -4
- package/dist/src/registry-manager.js +122 -33
- package/dist/src/registry-manager.js.map +1 -1
- package/dist/src/server.js +82 -50
- package/dist/src/server.js.map +1 -1
- package/dist/src/services/AdminDetector.d.ts +1 -1
- package/dist/src/services/AdminDetector.js +4 -4
- package/dist/src/services/AdminDetector.js.map +1 -1
- package/dist/src/services/ConnectionManager.d.ts +2 -2
- package/dist/src/services/ConnectionManager.js +43 -70
- package/dist/src/services/ConnectionManager.js.map +1 -1
- package/dist/src/services/HealthMonitor.js +4 -2
- package/dist/src/services/HealthMonitor.js.map +1 -1
- package/dist/src/services/NamespaceTierDetector.js +26 -27
- package/dist/src/services/NamespaceTierDetector.js.map +1 -1
- package/dist/src/services/TokenScopeDetector.d.ts +6 -2
- package/dist/src/services/TokenScopeDetector.js +22 -3
- package/dist/src/services/TokenScopeDetector.js.map +1 -1
- package/dist/src/session-manager.d.ts +3 -1
- package/dist/src/session-manager.js +43 -10
- package/dist/src/session-manager.js.map +1 -1
- package/dist/src/types.d.ts +3 -2
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/bounded-map.d.ts +1 -0
- package/dist/src/utils/bounded-map.js +23 -0
- package/dist/src/utils/bounded-map.js.map +1 -0
- package/dist/src/utils/fetch.d.ts +1 -2
- package/dist/src/utils/fetch.js +12 -17
- package/dist/src/utils/fetch.js.map +1 -1
- package/dist/src/utils/gitlab-api.js +2 -1
- package/dist/src/utils/gitlab-api.js.map +1 -1
- package/dist/src/utils/gitlab-base-url.d.ts +2 -0
- package/dist/src/utils/gitlab-base-url.js +34 -0
- package/dist/src/utils/gitlab-base-url.js.map +1 -0
- package/dist/src/utils/html.d.ts +1 -0
- package/dist/src/utils/html.js +12 -0
- package/dist/src/utils/html.js.map +1 -0
- package/dist/src/utils/namespace.d.ts +1 -0
- package/dist/src/utils/namespace.js +72 -24
- package/dist/src/utils/namespace.js.map +1 -1
- package/dist/src/utils/schema-utils.d.ts +5 -3
- package/dist/src/utils/schema-utils.js +50 -22
- package/dist/src/utils/schema-utils.js.map +1 -1
- package/dist/src/utils/smart-user-search.js +2 -1
- package/dist/src/utils/smart-user-search.js.map +1 -1
- package/dist/src/utils/sync-directory.d.ts +1 -0
- package/dist/src/utils/sync-directory.js +49 -0
- package/dist/src/utils/sync-directory.js.map +1 -0
- package/dist/src/utils/tool-result.d.ts +4 -0
- package/dist/src/utils/tool-result.js +41 -0
- package/dist/src/utils/tool-result.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +74 -21
- package/plugin/assets/composer-icon-dark.png +0 -0
- package/plugin/assets/composer-icon-dark.svg +17 -0
- package/plugin/assets/composer-icon.png +0 -0
- package/plugin/assets/composer-icon.svg +17 -0
- package/plugin/assets/logo.png +0 -0
- package/plugin/assets/screenshot-1.png +0 -0
- package/plugin/assets/screenshot-2.png +0 -0
- package/plugin/schemas/mcp.schema.json +120 -0
- package/plugin/schemas/plugin.schema.json +65 -0
- package/skills/gitlab-ci/SKILL.md +16 -0
- package/skills/gitlab-discovery/SKILL.md +15 -0
- package/skills/gitlab-review/SKILL.md +16 -0
- package/skills/gitlab-setup/SKILL.md +16 -0
- package/skills/gitlab-work-items/SKILL.md +16 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PLUGIN_USAGE = void 0;
|
|
4
|
+
exports.parsePluginArgs = parsePluginArgs;
|
|
5
|
+
exports.runPluginCommand = runPluginCommand;
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const build_1 = require("./build");
|
|
8
|
+
const listing_1 = require("./listing");
|
|
9
|
+
const validate_1 = require("./validate");
|
|
10
|
+
exports.PLUGIN_USAGE = `Usage: gitlab-mcp plugin build --endpoint <url> [options]
|
|
11
|
+
|
|
12
|
+
Builds the GitLab MCP plugin package for an MCP endpoint you operate.
|
|
13
|
+
|
|
14
|
+
Options:
|
|
15
|
+
--endpoint <url> MCP endpoint, e.g. https://mcp.example.com/mcp (required)
|
|
16
|
+
--out <dir> Output directory (default: ./gitlab-mcp-plugin)
|
|
17
|
+
--public Apply directory submission rules: a public HTTPS host and
|
|
18
|
+
the privacy and terms links are required
|
|
19
|
+
--privacy-url <url> Privacy policy of the endpoint operator
|
|
20
|
+
--terms-url <url> Terms of service of the endpoint operator
|
|
21
|
+
`;
|
|
22
|
+
function parsePluginArgs(args) {
|
|
23
|
+
if (args[0] !== 'build')
|
|
24
|
+
throw new Error(exports.PLUGIN_USAGE);
|
|
25
|
+
const options = {
|
|
26
|
+
flavor: 'private',
|
|
27
|
+
outDir: (0, node_path_1.resolve)('gitlab-mcp-plugin'),
|
|
28
|
+
};
|
|
29
|
+
const valueOf = (i, flag) => {
|
|
30
|
+
const value = args[i + 1];
|
|
31
|
+
if (value === undefined || value.startsWith('--'))
|
|
32
|
+
throw new Error(`${flag} needs a value`);
|
|
33
|
+
return value;
|
|
34
|
+
};
|
|
35
|
+
for (let i = 1; i < args.length; i++) {
|
|
36
|
+
const arg = args[i];
|
|
37
|
+
switch (arg) {
|
|
38
|
+
case '--endpoint':
|
|
39
|
+
options.endpoint = valueOf(i++, arg);
|
|
40
|
+
break;
|
|
41
|
+
case '--out':
|
|
42
|
+
options.outDir = (0, node_path_1.resolve)(valueOf(i++, arg));
|
|
43
|
+
break;
|
|
44
|
+
case '--privacy-url':
|
|
45
|
+
options.privacyPolicyUrl = valueOf(i++, arg);
|
|
46
|
+
break;
|
|
47
|
+
case '--terms-url':
|
|
48
|
+
options.termsOfServiceUrl = valueOf(i++, arg);
|
|
49
|
+
break;
|
|
50
|
+
case '--public':
|
|
51
|
+
options.flavor = 'public';
|
|
52
|
+
break;
|
|
53
|
+
default:
|
|
54
|
+
throw new Error(`Unknown option ${arg}\n\n${exports.PLUGIN_USAGE}`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (!options.endpoint)
|
|
58
|
+
throw new Error(`--endpoint is required\n\n${exports.PLUGIN_USAGE}`);
|
|
59
|
+
return options;
|
|
60
|
+
}
|
|
61
|
+
function runPluginCommand(args, out = console.log, err = console.error) {
|
|
62
|
+
let options;
|
|
63
|
+
try {
|
|
64
|
+
options = parsePluginArgs(args);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
err(error.message);
|
|
68
|
+
return 2;
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
const result = (0, build_1.buildPlugin)(options);
|
|
72
|
+
out(`Built gitlab-mcp plugin ${result.version} for ${options.endpoint}`);
|
|
73
|
+
out(` Plugin folder: ${result.pluginDir}`);
|
|
74
|
+
out(` Marketplace: ${result.marketplacePath}`);
|
|
75
|
+
out(` ZIP: ${result.zipPath}`);
|
|
76
|
+
out(` SHA-256: ${result.sha256}`);
|
|
77
|
+
out('');
|
|
78
|
+
out(options.flavor === 'public'
|
|
79
|
+
? 'Upload the ZIP in the OpenAI platform dashboard to submit it to the Plugins Directory.'
|
|
80
|
+
: `Add the marketplace with: codex plugin marketplace add "${options.outDir}"\n` +
|
|
81
|
+
`then install ${listing_1.LISTING.displayName} from the Plugins Directory.`);
|
|
82
|
+
return 0;
|
|
83
|
+
}
|
|
84
|
+
catch (error) {
|
|
85
|
+
err(error instanceof validate_1.PluginValidationError ? error.message : `Error: ${error.message}`);
|
|
86
|
+
return 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=command.js.map
|
|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,CAAC,MAAM,EAAE,CAAC,CAAC;QACzC,GAAG,CAAC,EAAE,CAAC,CAAC;QACR,GAAG,CACD,OAAO,CAAC,MAAM,KAAK,QAAQ;YACzB,CAAC,CAAC,wFAAwF;YAC1F,CAAC,CAAC,2DAA2D,OAAO,CAAC,MAAM,KAAK;gBAC5E,gBAAgB,iBAAO,CAAC,WAAW,8BAA8B,CACxE,CAAC;QACF,OAAO,CAAC,CAAC;IACX,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CACD,KAAK,YAAY,gCAAqB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,UAAW,KAAe,CAAC,OAAO,EAAE,CAC9F,CAAC;QACF,OAAO,CAAC,CAAC;IACX,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { buildPlugin, findPackageRoot } from './build';
|
|
2
|
+
export type { PluginBuildOptions, PluginBuildResult } from './build';
|
|
3
|
+
export { parsePluginArgs, runPluginCommand, PLUGIN_USAGE } from './command';
|
|
4
|
+
export { validateEndpoint, validatePackage, PluginValidationError } from './validate';
|
|
5
|
+
export type { PluginFlavor } from './validate';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PluginValidationError = exports.validatePackage = exports.validateEndpoint = exports.PLUGIN_USAGE = exports.runPluginCommand = exports.parsePluginArgs = exports.findPackageRoot = exports.buildPlugin = void 0;
|
|
4
|
+
var build_1 = require("./build");
|
|
5
|
+
Object.defineProperty(exports, "buildPlugin", { enumerable: true, get: function () { return build_1.buildPlugin; } });
|
|
6
|
+
Object.defineProperty(exports, "findPackageRoot", { enumerable: true, get: function () { return build_1.findPackageRoot; } });
|
|
7
|
+
var command_1 = require("./command");
|
|
8
|
+
Object.defineProperty(exports, "parsePluginArgs", { enumerable: true, get: function () { return command_1.parsePluginArgs; } });
|
|
9
|
+
Object.defineProperty(exports, "runPluginCommand", { enumerable: true, get: function () { return command_1.runPluginCommand; } });
|
|
10
|
+
Object.defineProperty(exports, "PLUGIN_USAGE", { enumerable: true, get: function () { return command_1.PLUGIN_USAGE; } });
|
|
11
|
+
var validate_1 = require("./validate");
|
|
12
|
+
Object.defineProperty(exports, "validateEndpoint", { enumerable: true, get: function () { return validate_1.validateEndpoint; } });
|
|
13
|
+
Object.defineProperty(exports, "validatePackage", { enumerable: true, get: function () { return validate_1.validatePackage; } });
|
|
14
|
+
Object.defineProperty(exports, "PluginValidationError", { enumerable: true, get: function () { return validate_1.PluginValidationError; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cli/plugin/index.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AAA9C,oGAAA,WAAW,OAAA;AAAE,wGAAA,eAAe,OAAA;AAErC,qCAA4E;AAAnE,0GAAA,eAAe,OAAA;AAAE,2GAAA,gBAAgB,OAAA;AAAE,uGAAA,YAAY,OAAA;AACxD,uCAAsF;AAA7E,4GAAA,gBAAgB,OAAA;AAAE,2GAAA,eAAe,OAAA;AAAE,iHAAA,qBAAqB,OAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const PLUGIN_NAME = "gitlab-mcp";
|
|
2
|
+
export declare const MCP_SERVER_NAME = "gitlab-sw";
|
|
3
|
+
export declare const ONBOARDING_SKILL = "gitlab-setup";
|
|
4
|
+
export declare const PLUGIN_KEYWORDS: readonly ["gitlab", "merge-requests", "code-review", "ci-cd", "pipelines", "issues", "devops"];
|
|
5
|
+
export declare const LOGO_SOURCE = "plugin/assets/logo.png";
|
|
6
|
+
export declare const LISTING_ASSETS: {
|
|
7
|
+
readonly composerIcon: "plugin/assets/composer-icon.png";
|
|
8
|
+
readonly composerIconDark: "plugin/assets/composer-icon-dark.png";
|
|
9
|
+
readonly screenshots: readonly ["plugin/assets/screenshot-1.png", "plugin/assets/screenshot-2.png"];
|
|
10
|
+
};
|
|
11
|
+
export declare const LISTING: {
|
|
12
|
+
readonly displayName: "GitLab by Structured World";
|
|
13
|
+
readonly shortDescription: "GitLab projects, MRs and CI";
|
|
14
|
+
readonly longDescription: string;
|
|
15
|
+
readonly developerName: "Structured World";
|
|
16
|
+
readonly category: "Developer Tools";
|
|
17
|
+
readonly capabilities: readonly ["Interactive", "Read", "Write"];
|
|
18
|
+
readonly defaultPrompt: readonly ["Show my open merge requests and which ones wait for my review", "Why did the latest pipeline on main fail?", "Summarize the issues assigned to me in this milestone"];
|
|
19
|
+
readonly brandColor: "#6B4FBB";
|
|
20
|
+
readonly brandColorDark: "#B197FC";
|
|
21
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LISTING = exports.LISTING_ASSETS = exports.LOGO_SOURCE = exports.PLUGIN_KEYWORDS = exports.ONBOARDING_SKILL = exports.MCP_SERVER_NAME = exports.PLUGIN_NAME = void 0;
|
|
4
|
+
exports.PLUGIN_NAME = 'gitlab-mcp';
|
|
5
|
+
exports.MCP_SERVER_NAME = 'gitlab-sw';
|
|
6
|
+
exports.ONBOARDING_SKILL = 'gitlab-setup';
|
|
7
|
+
exports.PLUGIN_KEYWORDS = [
|
|
8
|
+
'gitlab',
|
|
9
|
+
'merge-requests',
|
|
10
|
+
'code-review',
|
|
11
|
+
'ci-cd',
|
|
12
|
+
'pipelines',
|
|
13
|
+
'issues',
|
|
14
|
+
'devops',
|
|
15
|
+
];
|
|
16
|
+
exports.LOGO_SOURCE = 'plugin/assets/logo.png';
|
|
17
|
+
exports.LISTING_ASSETS = {
|
|
18
|
+
composerIcon: 'plugin/assets/composer-icon.png',
|
|
19
|
+
composerIconDark: 'plugin/assets/composer-icon-dark.png',
|
|
20
|
+
screenshots: ['plugin/assets/screenshot-1.png', 'plugin/assets/screenshot-2.png'],
|
|
21
|
+
};
|
|
22
|
+
exports.LISTING = {
|
|
23
|
+
displayName: 'GitLab by Structured World',
|
|
24
|
+
shortDescription: 'GitLab projects, MRs and CI',
|
|
25
|
+
longDescription: 'Work with GitLab from chat: browse projects and repositories, review and manage merge requests, ' +
|
|
26
|
+
'triage issues, epics and other work items, inspect and run CI/CD pipelines, and manage releases, ' +
|
|
27
|
+
'wiki pages, labels and milestones. Every call runs with the permissions of the GitLab account ' +
|
|
28
|
+
'the server connects with: your own when the server signs you in with GitLab, or the token a ' +
|
|
29
|
+
'local server is started with. The account settings page limits the tools, projects and groups ' +
|
|
30
|
+
'a chat can use or keeps it read-only. Works with GitLab.com and self-managed GitLab 16.0 or later, ' +
|
|
31
|
+
'as the endpoint operator configures. Features GitLab does not offer on an instance or tier stay ' +
|
|
32
|
+
'unavailable there.',
|
|
33
|
+
developerName: 'Structured World',
|
|
34
|
+
category: 'Developer Tools',
|
|
35
|
+
capabilities: ['Interactive', 'Read', 'Write'],
|
|
36
|
+
defaultPrompt: [
|
|
37
|
+
'Show my open merge requests and which ones wait for my review',
|
|
38
|
+
'Why did the latest pipeline on main fail?',
|
|
39
|
+
'Summarize the issues assigned to me in this milestone',
|
|
40
|
+
],
|
|
41
|
+
brandColor: '#6B4FBB',
|
|
42
|
+
brandColorDark: '#B197FC',
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=listing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listing.js","sourceRoot":"","sources":["../../../../src/cli/plugin/listing.ts"],"names":[],"mappings":";;;AASa,QAAA,WAAW,GAAG,YAAY,CAAC;AAO3B,QAAA,eAAe,GAAG,WAAW,CAAC;AAG9B,QAAA,gBAAgB,GAAG,cAAc,CAAC;AAGlC,QAAA,eAAe,GAAG;IAC7B,QAAQ;IACR,gBAAgB;IAChB,aAAa;IACb,OAAO;IACP,WAAW;IACX,QAAQ;IACR,QAAQ;CACA,CAAC;AAGE,QAAA,WAAW,GAAG,wBAAwB,CAAC;AAQvC,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,iCAAiC;IAC/C,gBAAgB,EAAE,sCAAsC;IACxD,WAAW,EAAE,CAAC,gCAAgC,EAAE,gCAAgC,CAAC;CACzE,CAAC;AAEE,QAAA,OAAO,GAAG;IACrB,WAAW,EAAE,4BAA4B;IACzC,gBAAgB,EAAE,6BAA6B;IAC/C,eAAe,EACb,kGAAkG;QAClG,mGAAmG;QACnG,gGAAgG;QAChG,8FAA8F;QAC9F,gGAAgG;QAChG,qGAAqG;QACrG,kGAAkG;QAClG,oBAAoB;IACtB,aAAa,EAAE,kBAAkB;IACjC,QAAQ,EAAE,iBAAiB;IAC3B,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC;IAC9C,aAAa,EAAE;QACb,+DAA+D;QAC/D,2CAA2C;QAC3C,uDAAuD;KACxD;IAED,UAAU,EAAE,SAAS;IAErB,cAAc,EAAE,SAAS;CACjB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type PluginFlavor = 'public' | 'private';
|
|
2
|
+
export type PackageFiles = ReadonlyMap<string, Buffer>;
|
|
3
|
+
export interface ValidationIssue {
|
|
4
|
+
file: string;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class PluginValidationError extends Error {
|
|
8
|
+
readonly issues: ValidationIssue[];
|
|
9
|
+
constructor(issues: ValidationIssue[]);
|
|
10
|
+
}
|
|
11
|
+
export declare function isNonPublicHost(hostname: string): boolean;
|
|
12
|
+
export declare function validateEndpoint(raw: string, flavor: PluginFlavor): URL;
|
|
13
|
+
export declare function contrastRatio(first: string, second: string): number;
|
|
14
|
+
export declare function pngSize(data: Buffer): {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
} | undefined;
|
|
18
|
+
export declare function validatePackage(files: PackageFiles, schemas: {
|
|
19
|
+
plugin: object;
|
|
20
|
+
mcp: object;
|
|
21
|
+
}, flavor: PluginFlavor): void;
|