resolve_repo
Determine owner, repo, and base URL from git remotes (upstream, origin, others), stripping credentials from returned URLs. Call once at session start to establish repo context.
Instructions
Detect baseUrl/owner/repo from a git repository's remotes (SSH or HTTPS). Reads upstream first, then origin, then any other remote; all discovered remotes are returned, with userinfo stripped from every echoed URL so a credentialed remote never leaks its secret. path defaults to the current directory. Call ONCE at the start of a session to establish owner/repo for later calls instead of guessing. Errors if no parseable remote is found.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "resolve_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the git repository (defaults to current directory) |