check_forges

Ask every connected forge whether its credential still works, the way its method allows, and record the answer on each connection.

Forgewritesnot idempotentMCP tool

A refusal marks the connection as refused until a person connects it again.

Calling it#

curl -X POST http://127.0.0.1:8787/forge.v1.ForgeService/CheckForges \
  -H 'Content-Type: application/json' \
  -d '{}'

Request#

Empty#

No fields.

Response#

CheckForgesResponse#

FieldTypeDescription
checkslist of ForgeCheck

One entry per connection, in the order list_forges gives them.

Types#

ForgeCheck#

FieldTypeDescription
forgeForge

The connection.

problemstring

What the forge answered, empty when it accepted the credential.

problemKindstring

Which kind of trouble it is when problem is set: refused, no_credential or unreachable.

Forge#

FieldTypeDescription
idstring

The connection's own id.

kindstring

Which forge the host runs, github or gitlab.

hoststring

The host agents' remotes name, such as github.com.

apiUrlstring

Where an enterprise host answers API calls, empty for the public forge.

methodstring

How the credential was obtained, token or github_app.

loginstring

Who the forge said the credential belongs to, a user login or an App's name.

verifiedAtstring

When the forge last confirmed the credential, in RFC 3339, unset once it refused.

hasCredentialbool

Whether this machine still holds what the connection needs to speak, which for a token is its file and for an App is always so.

createdAtstring

When the connection was made, in RFC 3339.