coderegistry

v1.0.0
io.github.hellosg/coderegistry Checked 1 day ago Published 10 months ago

Enterprise code intelligence for M&A, security audits, and tech debt.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_account

Creates a new Code Registry account and returns API credentials. Required fields: email (account owner's email), name (account owner's full name), team_name (team or company name). All three must be provided or the call will fail. Cold starts can cause the first request to time out; retry with backoff. No API key required.

ParameterTypeDescription
email *stringAccount owner's email.
name *stringAccount owner's name.
team_name *stringTeam or company name.
integrator_idstringOptional integrator identifier (used for API key scoping).
integrator_namestringOptional integrator display name.

list_projects

Lists all projects for the authenticated team. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.

get_project

Returns a specific project by id. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
project_id *stringProject id.
api_keystringOptional API key for clients that cannot set X-API-Key headers.

create_project

Creates a project for a team user. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
name *stringProject name.
user_id *stringUser id (from create_account or get_account).
api_keystringOptional API key for clients that cannot set X-API-Key headers.
descriptionstringOptional project description.

delete_project

Deletes a project and its vaults. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
project_id *stringProject id.
api_keystringOptional API key for clients that cannot set X-API-Key headers.

list_vaults

Lists vaults within a project. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
project_id *stringProject id.
api_keystringOptional API key for clients that cannot set X-API-Key headers.

get_vault

Returns a specific vault by id. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
vault_id *stringVault id.
api_keystringOptional API key for clients that cannot set X-API-Key headers.

create-code-vault

Creates a code vault and queues the initial analysis. Choose source_type based on what is available in your environment: (1) LOCAL_AGENT — preferred when Docker is available; runs a local container, source code never leaves the machine. The response includes next_steps.commands that MUST be executed to start the agent. (2) FILE_ARCHIVE — use this when Docker is NOT available (e.g. sandboxed/browser environments). This requires uploading the project's source code to a third-party file host, so you MUST first explain this to the user and get their explicit confirmation before zipping or uplo…

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
branchstringOptional source branch name (GIT only).
descriptionstringOptional vault description.
namestringVault name.
passwordstringSource password or personal access token (required for private GIT repos; must have read access).
project_idstringProject id (from create_project).
source_typestringCode source type. Use LOCAL_AGENT when Docker is available (preferred — source code stays local). Use FILE_ARCHIVE when Docker is NOT available, but only after the user has explicitly confirmed they…
source_urlstringRepository or archive URL (required for GIT/FILE_ARCHIVE; ignored for LOCAL_AGENT/AGENT). For FILE_ARCHIVE: only after the user has explicitly confirmed the upload, zip the project and upload it to a…
user_idstringUser id (from create_account or get_account).
usernamestringSource username (required for private GIT repos; must have read access).

reanalyze-code-vault

Creates a new analysis version for an existing code vault using its existing source settings. For LOCAL_AGENT, the response includes next_steps.commands and the local agent must be run again. For GIT/FILE_ARCHIVE, the re-analysis of the original code source is queued automatically. Note: summary/results/report tools always return the latest version only, so reanalysis replaces access to prior version data. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
vault_id *stringVault id (from create-code-vault or list_vaults).
api_keystringOptional API key for clients that cannot set X-API-Key headers.
authorstringOptional author name override.
commentstringOptional version comment.
user_idstringOptional user id for attribution (from create_account or get_account).

delete-code-vault

Deletes a code vault and related analysis data. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
vault_id *stringVault id (from create-code-vault or list_vaults).
api_keystringOptional API key for clients that cannot set X-API-Key headers.

get-code-vault-summary

Returns the latest version/status info for a vault. Analysis is async; if status is 'processing', poll with exponential backoff (5s, 10s, 20s, 40s, max 60s). Analysis can be as quick as 20-30 minutes for under 500,000 lines of code. Larger codebases can take much longer, especially with the security scan. This endpoint always returns the latest version only; once reanalysis starts, prior versions are no longer accessible here. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
vault_id *stringVault id (from create-code-vault or list_vaults).
api_keystringOptional API key for clients that cannot set X-API-Key headers.

get-code-vault-results

Returns analysis results for a vault. Free-tier teams receive summary-only results; paid teams receive full facet data and AI insights. Analysis is async; if status is 'processing', poll with exponential backoff (5s, 10s, 20s, 40s, max 60s). Analysis can be as quick as 20-30 minutes for under 500,000 lines of code. Larger codebases can take much longer, especially with the security scan. Facet meanings are documented in resources://docs/facets; AI Quotient is a code-quality metric (not AI-generated code). AI insights can take a few minutes after analysis completes; if ai_insights is empty, pol…

ParameterTypeDescription
vault_id *stringVault id (from create-code-vault or list_vaults).
api_keystringOptional API key for clients that cannot set X-API-Key headers.

get-code-vault-reports

Returns report URLs (snapshot/comparison) for a vault. Completion rules: if version is 1.0.0, snapshot indicates completion and comparison is null; for versions above 1.0.0, comparison indicates completion. If not ready, retry with exponential backoff (5s, 10s, 20s, 40s, max 60s). This endpoint always returns the latest version only; once reanalysis starts, prior versions are no longer accessible here. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
vault_id *stringVault id (from create-code-vault or list_vaults).
api_keystringOptional API key for clients that cannot set X-API-Key headers.

get_account

Returns the team owner account information. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.

delete_account

Deletes the team account plus all projects and vaults. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
confirm *booleanSet true to confirm deletion.
api_keystringOptional API key for clients that cannot set X-API-Key headers.

rotate_api_key

Issues a fresh integrator API key. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
integrator_idstringOptional integrator identifier (defaults to existing integrator or 'default').
integrator_namestringOptional integrator display name.

get-security-issues

Returns deduplicated security findings for a project (all vaults) or a single vault. Provide exactly one of project_id or vault_id. Requires full data access (a paid plan; verification-only plans are not included). Every issue always includes these keys (null when not set): cwe, owasp, package_name, package_version, package_ecosystem, lockfile_path, advisory_id, cve_id, ghsa_id, cvss_score, cvss_version, cvss_vector, fix_versions, reachability. Code findings (issue_type 'code') only carry cwe and owasp; dependency findings (issue_type 'dependency') may carry any of them; findings from older sc…

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
check_idstringFilter: exact match on the security check id.
filestringFilter: substring match on file path.
issue_idstringReturn only this specific issue id.
limitintegerMax results to return (default 50, max 200).
offsetintegerNumber of results to skip, for pagination.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
severityarrayFilter to one or more severities (e.g. ERROR, WARNING, INFO).
statusstringFilter: triage status (e.g. open, resolved, ignored).
tagstringFilter: triage tag name.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.

get-code-smells

Returns code smell findings for a project (all vaults) or a single vault. Provide exactly one of project_id or vault_id. Requires full data access (a paid plan; verification-only plans are not included). Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
filestringFilter: substring match on file path.
issue_idstringReturn only this specific code smell id.
issue_typestringFilter: exact match on issue type.
limitintegerMax results to return (default 50, max 200).
offsetintegerNumber of results to skip, for pagination.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.

get-git-history

Returns git commit history for a project (all vaults) or a single vault. Provide exactly one of project_id or vault_id. Requires full data access (a paid plan; verification-only plans are not included). Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
authorstringFilter: exact match on commit author (case-insensitive).
branchstringFilter: exact match on branch name.
date_fromstringFilter: commits on or after this date (YYYY-MM-DD).
date_tostringFilter: commits on or before this date (YYYY-MM-DD).
limitintegerMax results to return (default 50, max 200).
offsetintegerNumber of results to skip, for pagination.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.

get-contributors

Returns aggregated contributor stats (commit count, lines added/deleted, first/last commit) for a project (all vaults) or a single vault. Provide exactly one of project_id or vault_id. Requires full data access (a paid plan; verification-only plans are not included). Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
authorstringFilter: exact match on commit author (case-insensitive).
branchstringFilter: exact match on branch name.
date_fromstringFilter: commits on or after this date (YYYY-MM-DD).
date_tostringFilter: commits on or before this date (YYYY-MM-DD).
limitintegerMax results to return (default 50, max 200).
offsetintegerNumber of results to skip, for pagination.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.

get-components

Returns detected open-source/CMS components for a project (all vaults) or a single vault. Provide exactly one of project_id or vault_id. Requires full data access (a paid plan; verification-only plans are not included). A component is outdated only when current_version and latest_version are both set and differ. current_version is null with version_pinned: false when the version isn't pinned: the dependency is declared as a version range with no lockfile and the latest release is within that range, so a fresh install gets the latest release. Do not describe such components as outdated or as an…

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
limitintegerMax results to return (default 50, max 200).
namestringFilter: substring match on component name.
offsetintegerNumber of results to skip, for pagination.
only_outdatedbooleanOnly return outdated components: current_version and latest_version both set and different. Components with a null current_version (not pinned) are never outdated.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
sort_by_sizebooleanSort by total_lines_of_code descending instead of by name.
urlstringFilter: substring match on component URL.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.
vendorstringFilter: substring match on vendor.

get-component-usage

Where is an open-source component used? Returns every file in the customer's code matched to components whose name contains `component` (case-insensitive), with match type, matched line ranges, matched %, the component version matched against, and licences. Provide exactly one of project_id or vault_id. Requires full data access (a paid plan; verification-only plans are not included). A component is outdated only when current_version and latest_version are both set and differ. current_version is null with version_pinned: false when the version isn't pinned: the dependency is declared as a vers…

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
componentstringComponent name or part of it (case-insensitive), as listed by get-components.
limitintegerMax results to return (default 50, max 200).
match_typestringOptional: only this match type. Components pulled in as dependencies can have thousands of 'dependency' rows; use 'file' or 'snippet' to see copied code only.
offsetintegerNumber of results to skip, for pagination.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.

get-copied-code

Which of the customer's code came from open source? Returns every partial-copy ('snippet') match, highest matched % first: the customer's file and line ranges, the open-source file and line ranges it matches, the component and version, and licences. Includes components that were only found this way (snippet_only_component: true), which get-components does not list. Each match has `copyleft` set to the strongest copyleft licence involved: 'network' (AGPL-style: obligations apply even when the software is only offered as an online service), 'strong' (GPL-style: the combined work may have to be r…

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
componentstringOptional: substring match on component name (case-insensitive).
copyleft_onlybooleanOnly matches involving a copyleft licence (GPL, AGPL, LGPL, MPL, EPL, CDDL, etc.).
licensestringOptional: only matches whose file or component carries this licence (case-insensitive; 'GPL' also matches 'GPL-2.0-only' and 'GPL-3.0+', but not 'LGPL-2.1').
limitintegerMax results to return (default 50, max 200).
min_matched_percentnumberOptional: only matches where at least this % of the customer's file matched.
offsetintegerNumber of results to skip, for pagination.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.

get-file-open-source-matches

Is there open-source code in a given file or folder? Returns every open-source match for a file path (exact) or folder (every file under it), relative to the code root, with component, match type, line ranges and licences. Requires vault_id and full data access (a paid plan; verification-only plans are not included). An empty `matches` list with file_detail.status 'available' means no open-source matches were found for that path. Match types, in plain language: 'file' = the whole file is a copy of a file from the open-source project; 'snippet' = part of the file was copied (`lines` gives the c…

ParameterTypeDescription
path *stringFile path or folder relative to the code root, e.g. 'app/Foo.php' or 'app/Http'.
vault_id *stringVault id (from create-code-vault or list_vaults).
api_keystringOptional API key for clients that cannot set X-API-Key headers.
limitintegerMax results to return (default 50, max 200).
offsetintegerNumber of results to skip, for pagination.

get-license-evidence

Why do you say we use a licence? For a licence name (case-insensitive; 'GPL' also matches 'GPL-2.0-only' but not 'LGPL-2.1'), returns the matching licence names, its copyleft level, the components that declare it (component_level), counts of file-level evidence per source (file_evidence_by_source), and a paginated list of that evidence (file_evidence) ordered by source. Sources, in plain language: file_header = a licence comment at the top of the matched file; scancode = licence wording detected in the file's text; license_file = the open-source project's own LICENSE file; underlying_license_f…

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
licensestringLicence name or SPDX id, e.g. 'GPL-2.0' or 'MIT'.
limitintegerMax results to return (default 50, max 200).
offsetintegerNumber of results to skip, for pagination.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.

get-code-iq-automated-queries

Returns trimmed Code IQ automated analyses (architecture, scalability, EOL, AI functionality, etc.) for a project (aggregated) or a single vault. Excludes The Code Score — use get-the-code-score for that, and do not pass analysis_key=code_score here (404). Only cached results are returned; this never triggers a fresh analysis. Provide exactly one of project_id or vault_id. Requires full data access (a paid plan; verification-only plans are not included). Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
analysis_keystringOptional: return only this analysis (e.g. project_architecture). Omit for all.
api_keystringOptional API key for clients that cannot set X-API-Key headers.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.

get-the-code-score

Returns The Code Score (security/code-quality/dependencies, 1000 points) for a project (aggregated) or a single vault. Provide exactly one of project_id or vault_id. Requires full data access (a paid plan; verification-only plans are not included). If the plan doesn't include Code Score access, or it hasn't been generated yet, returns the same response shape with empty sections/priorities rather than an error. Requires X-API-Key (existing users can generate an API key in the web app). If headers aren't supported, pass api_key in arguments.

ParameterTypeDescription
api_keystringOptional API key for clients that cannot set X-API-Key headers.
project_idstringProject id (from create_project). Returns data aggregated across all vaults in the project.
vault_idstringVault id (from create-code-vault or list_vaults). Returns data for this vault only.