RepositoryRep

October 20, 2025 ยท View on GitHub

Example Usage

import { RepositoryRep } from "@launchdarkly/mcp-server/models/components";

let value: RepositoryRep = {
  name: "LaunchDarkly-Docs",
  sourceLink: "https://github.com/launchdarkly/LaunchDarkly-Docs",
  commitUrlTemplate:
    "https://github.com/launchdarkly/LaunchDarkly-Docs/commit/${sha}",
  hunkUrlTemplate:
    "https://github.com/launchdarkly/LaunchDarkly-Docs/blob/${sha}/${filePath}#L${lineNumber}",
  type: "github",
  defaultBranch: "main",
  enabled: true,
  version: 3,
  branches: [
    {
      name: "main",
      head: "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
      updateSequenceId: 25,
      syncTime: 342640,
      references: [
        {
          path: "/main/index.js",
          hint: "javascript",
          hunks: [],
        },
      ],
      links: {
        "key": "<value>",
      },
    },
  ],
  links: {
    "key": "<value>",
    "key1": "<value>",
    "key2": "<value>",
  },
  access: {
    denied: [],
    allowed: [],
  },
};

Fields

FieldTypeRequiredDescriptionExample
namestring:heavy_check_mark:The repository nameLaunchDarkly-Docs
sourceLinkstring:heavy_minus_sign:A URL to access the repositoryhttps://github.com/launchdarkly/LaunchDarkly-Docs
commitUrlTemplatestring:heavy_minus_sign:A template for constructing a valid URL to view the commithttps://github.com/launchdarkly/LaunchDarkly-Docs/commit/${sha}
hunkUrlTemplatestring:heavy_minus_sign:A template for constructing a valid URL to view the hunkhttps://github.com/launchdarkly/LaunchDarkly-Docs/blob/${sha}/${filePath}#L${lineNumber}
typecomponents.RepositoryRepType:heavy_check_mark:The type of repositorygithub
defaultBranchstring:heavy_check_mark:The repository's default branchmain
enabledboolean:heavy_check_mark:Whether or not a repository is enabled for code reference scanningtrue
versionnumber:heavy_check_mark:The version of the repository's saved information3
branchescomponents.BranchRep[]:heavy_minus_sign:An array of the repository's branches that have been scanned for code references
linksRecord<string, any>:heavy_check_mark:N/A
accesscomponents.Access:heavy_minus_sign:N/A