Skip to content

add_repo

Directly add specific repositories to a running Polygraph session by slug, name, owner/repo full name, or repository id.

Use list_repos only when you need to discover or choose repositories.

NameTypeRequiredDescription
sessionIdstringyesThe Polygraph session ID, or a supported Polygraph app session URL. Supported URL paths are /s/<session-id> and /orgs/<org-id>/sessions/<session-id>. URL inputs are normalized to the session ID; the MCP always uses the current Polygraph API configuration.
repoIdsarrayyesSpecific repository refs to add directly to the session. Accepts a slug, name, owner/repo full name, or repository id. Do not call list_repos when the user already provided the repository ref; use list_repos only when you need to discover or choose repositories.