Remogram

v0.2.0-beta.4
io.github.attebury/remogram Checked 17 hours ago Published 5 months ago

SCM & forge boundary MCP: normalized, typed JSON from attributed Gitea, GitLab, and GitHub providers

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

doctor

Read-only provider readiness diagnostics for config, remote trust, auth, capabilities, and checks.

ParameterTypeDescription
livebooleanWhen true, perform a bounded live forge API reachability probe

provider_capabilities

Structured provider capability facts for commands, auth, checks, host binding, pagination, and write support.

ParameterTypeDescription
repostringOverride forge repo as owner/name on the same host

repo_status

Forge repo status facts (auth, capabilities, default branch).

ParameterTypeDescription
repostringOverride forge repo as owner/name on the same host

ref_compare

Compare two refs with exact SHAs and ahead/behind counts.

ParameterTypeDescription
base *stringBase ref
head *stringHead ref
repostringOverride forge repo as owner/name on the same host

ref_inventory

List repository refs with SHAs, default branch hint, and optional ancestry hints.

ParameterTypeDescription
repostringOverride forge repo as owner/name on the same host

cr_inventory

Aggregate open change requests with checks and merge-plan facts into a semantic-diff slice.

ParameterTypeDescription
cursorstringOpaque cursor from prior cr_inventory next_cursor
limitintegerMax open CR entries (default 3)
slice_refstringOptional slice ref label for consumers
sortstringOpen-list slice sort preset (default number_asc)

issue_inventory

Aggregate open issues into a semantic-diff inventory slice with pagination cursors.

ParameterTypeDescription
cursorstringOpaque cursor from prior issue_inventory next_cursor
limitintegerMax open issue entries (default 3)
slice_refstringOptional slice ref label for consumers
sortstringOpen-list slice sort preset (default number_asc)

cr_open

Open a change request (pull request) on the configured forge.

ParameterTypeDescription
base *stringBase branch ref
head *stringHead branch ref
title *stringChange request title
actor_idstringCaller actor id; requires session_id when set
bodystringOptional change request body
body_filestringPath to body file (mutually exclusive with body); use - for stdin
dedupe_keystringDurable cross-process dedupe key (24h XDG store)
idempotencystringIdempotency scan mode when forge open-pull scan is incomplete
idempotency_keystringOptional agent idempotency key for retry-safe writes
repostringOverride forge repo as owner/name on the same host
session_idstringCaller session id; requires actor_id when set (untrusted correlation only)

status_set

Set a commit status (check context) on the configured forge.

ParameterTypeDescription
context *stringStatus context name
sha *string40-character commit SHA
state *stringStatus state
actor_idstringCaller actor id; requires session_id when set
descriptionstringOptional status description
idempotency_keystringOptional agent idempotency key for retry-safe writes
notestringAdditional attestation note
proof_hashstringAttestation proof hash (sha256:...)
proof_urlstringAttestation proof URL
session_idstringCaller session id; requires actor_id when set (untrusted correlation only)
target_urlstringOptional target URL for the status
verifierstringVerifier identity label

issue_open

Open a forge issue on the configured repository (Gitea v1).

ParameterTypeDescription
title *stringIssue title
actor_idstringCaller actor id; requires session_id when set
bodystringOptional issue body (inline cap; use body_file for larger bodies)
body_filestringPath to body file for bodies above inline cap (mutually exclusive with body); use - for stdin
idempotency_keystringOptional agent idempotency key for retry-safe writes
session_idstringCaller session id; requires actor_id when set (untrusted correlation only)

issue_close

Close an open forge issue on the configured repository.

ParameterTypeDescription
number *integer
actor_idstringCaller actor id; requires session_id when set
idempotency_keystring
session_idstringCaller session id; requires actor_id when set (untrusted correlation only)

issue_comment

Post a comment on a forge issue.

ParameterTypeDescription
number *integer
actor_idstringCaller actor id; requires session_id when set
bodystring
body_filestring
idempotency_keystring
session_idstringCaller session id; requires actor_id when set (untrusted correlation only)

issue_view

Issue metadata facts with optional linked change request snapshot.

ParameterTypeDescription
number *integer

issue_comments

Issue comments (sanitized bodies, truncation-aware).

ParameterTypeDescription
number *integer

pr_status

PR metadata and mergeability facts.

ParameterTypeDescription
number *integer

pr_checks

CI/check conclusions for a PR number or git ref.

merge_plan

Merge readiness facts: mergeability, checks, blockers.

ParameterTypeDescription
number *integer
allowed_pathsarray

whoami

Authenticated forge identity facts (login, can_write, token scope/expiry signals).

branch_protection

Branch protection policy facts: required status contexts, protected rules, approvals signal.

ParameterTypeDescription
branch_ref *string

cr_files

Changed file paths for a change request (bounded, truncation-aware).

ParameterTypeDescription
number *integer

cr_comments

Review comments for a change request (sanitized bodies, truncation-aware).

ParameterTypeDescription
number *integer

cr_body

Change request description body with close_keywords helper.

ParameterTypeDescription
number *integer

cr_edit

Update change request title and/or body on the configured forge.

ParameterTypeDescription
number *integer
actor_idstringCaller actor id; requires session_id when set
bodystring
body_filestring
idempotency_keystring
session_idstringCaller session id; requires actor_id when set (untrusted correlation only)
titlestring

cr_close

Close an open change request on the configured forge without merging.

ParameterTypeDescription
number *integer
actor_idstringCaller actor id; requires session_id when set
idempotency_keystring
session_idstringCaller session id; requires actor_id when set (untrusted correlation only)

forge_changes

Forge activity events since an observed_at boundary (PR lifecycle, head SHA moves, check conclusions).

ParameterTypeDescription
cursorstringOpaque cursor from prior forge_changes next_cursor
include_issuesbooleanInclude issue open/close lifecycle events
limitintegerEvents per page (default 64)
log_pathstringOverride forge event log path
sincestringISO-8601 observed_at boundary (required on first page)
sourcestringEvent source preference

forge_queue_snapshot

Composed forge queue snapshot (repo status, CR slice, merge summaries).

ParameterTypeDescription
base_refstring
cr_limitinteger
include_issuesboolean
include_refsboolean
integration_refstring

observer_snapshot

Deprecated alias for forge_queue_snapshot — prefer forge_queue_snapshot.

ParameterTypeDescription
cr_limitinteger
include_issuesboolean
include_refsboolean
integration_refstring

semantic_diff

Composed semantic diff since a time or git ref boundary.

forge_log_ingest

Ingest a Gitea webhook JSON payload into the local forge event log.

ParameterTypeDescription
filestring
log_pathstring
stdinboolean

forge_log_read

Read normalized events from the local forge event log.

ParameterTypeDescription
since *string
limitinteger
log_pathstring

attestation_read

Read commit status attestation bindings for a SHA.

ParameterTypeDescription
sha *string
contextstring

verify_bind

Create a verify_bind packet bound to a target SHA and optional proof metadata.

ParameterTypeDescription
target_sha *string40-character verified target SHA
notestringOptional verification notes
proof_urlstringVerification proof URL
verifierstringVerifier identity or lane label

review_bundle

Create a review_bundle packet for reviewed head/base, decision, and summary facts.

ParameterTypeDescription
number *integer
decisionstring
reviewed_base_shastring
reviewed_head_shastring
summarystring

issue_bundle

Create an issue_bundle packet for issue lifecycle and linked review context.

ParameterTypeDescription
issue_number *integer
linked_printeger
statestring
titlestring
urlstring

merge_execute

Execute a forge merge for an open change request after SHA-bound preflight.

ParameterTypeDescription
expected_base_sha *stringExpected base SHA (40 hex chars)
expected_head_sha *stringExpected head SHA (40 hex chars)
number *integer
actor_idstringCaller actor id; requires session_id when set
methodstringMerge method (v1: merge only)
session_idstringCaller session id; requires actor_id when set (untrusted correlation only)

sync_plan

Local vs remote sync facts and divergent-remote blockers.

ParameterTypeDescription
remotestring

publish_plan

Plan branch publication to the configured git remote before opening a change request.

ParameterTypeDescription
head *stringLocal branch name to publish
remotestringGit remote (must match configured config.remote)

publish_execute

Push a local branch to the configured git remote (requires publish_branch write_commands).

ParameterTypeDescription
head *stringLocal branch name to publish
remotestringGit remote (must match configured config.remote)

command_contract_export

Read command contract metadata for all commands or one command key.

ParameterTypeDescription
commandstringOptional command key, for example "issue inventory"

plugin_boundary

Read forge plugin boundary metadata (emit surfaces, denied claims, contract export linkage).