# Schemas: t3/mcp

> T3 Code · channel `stable` · v0.1.14 @ [`c0eed7328db2`](https://github.com/pingdotgg/t3code/tree/c0eed7328db2609e5a535be704e90638aef1c111) · 2026-12-05 · generated by Everdoc from source (no LLM).

55 entries.

<a id="schema-acpmcpbridgeerror"></a>

## `AcpMcpBridgeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/AcpMcpStdioBridge.ts:22](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/AcpMcpStdioBridge.ts#L22-L30)
- Shape: `{ _tag: "AcpMcpBridgeError"; message: string; cause?: unknown; rpcError?: { code: number; message: string } }`

<a id="schema-checklogsresult"></a>

## `CheckLogsResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:846](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L846-L857)
- Shape: `{ host: string; repository: string; number: number; url: string; checks: { name: string; url: string | null; log: string | null; truncated: boolean; detail: string | null }[] }`

<a id="schema-createissueresult"></a>

## `CreateIssueResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:206](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L206-L209)
- Shape: `{ projectId: makeEntityId; tracker: IssueTrackerKind; host: ?; scope: ?; key: ?; url: string; displayKey: string }`

<a id="schema-createpullrequestresult"></a>

## `CreatePullRequestResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:633](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L633-L641)
- Shape: `{ host: string; repository: string; number: number; url: string; headBranch: string; created: boolean; note?: string; next?: string }`

<a id="schema-issueentry"></a>

## `IssueEntry`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:146](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L146-L156)
- Shape: `{ projectId: makeEntityId; tracker: IssueTrackerKind; host: ?; scope: ?; key: ?; url: string; displayKey: string; title: string; state: IssueState; author: string | null; assignees: string[]; labels: string[]; updatedAt: string; commentCount: number }`

<a id="schema-issuelinkfailederror"></a>

## `IssueLinkFailedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:111](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L111-L118)
- Shape: `{ _tag: "IssueLinkFailedError"; cause: unknown }`

<a id="schema-issueprojectnotfounderror"></a>

## `IssueProjectNotFoundError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:102](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L102-L109)
- Shape: `{ _tag: "IssueProjectNotFoundError"; projectId: string }`

<a id="schema-issueprojectrequirederror"></a>

## `IssueProjectRequiredError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:75](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L75-L82)
- Shape: `{ _tag: "IssueProjectRequiredError" }`

<a id="schema-issuetargetincompleteerror"></a>

## `IssueTargetIncompleteError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:66](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L66-L73)
- Shape: `{ _tag: "IssueTargetIncompleteError" }`

<a id="schema-issuetargetinput"></a>

## `IssueTargetInput`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:41](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L41-L57)
- Shape: `{ url?: TrimmedNonEmptyString; key?: TrimmedNonEmptyString; projectId?: makeEntityId }`

<a id="schema-issuethreadnotfounderror"></a>

## `IssueThreadNotFoundError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:93](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L93-L100)
- Shape: `{ _tag: "IssueThreadNotFoundError"; threadId: string }`

<a id="schema-issuethreadrequirederror"></a>

## `IssueThreadRequiredError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:84](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L84-L91)
- Shape: `{ _tag: "IssueThreadRequiredError" }`

<a id="schema-issuetoolerror"></a>

## `IssueToolError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:120](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L120-L131)
- Shape: `OrchestratorMcpFailure | McpCapabilityUnavailableError | IssueUnavailableError | IssueOperationError | IssueTargetIncompleteError | IssueProjectRequiredError | IssueThreadRequiredError | IssueThreadNotFoundError | IssueProjectNotFoundError | IssueLinkFailedError`

<a id="schema-issuewriteresult"></a>

## `IssueWriteResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:212](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L212)
- Shape: `{ projectId: makeEntityId; tracker: IssueTrackerKind; host: ?; scope: ?; key: ?; url?: string }`

<a id="schema-linkissueresult"></a>

## `LinkIssueResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:223](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L223-L228)
- Shape: `{ projectId: makeEntityId; tracker: IssueTrackerKind; host: ?; scope: ?; key: ?; url: string; alreadyLinked: boolean }`

<a id="schema-linkpullrequestresult"></a>

## `LinkPullRequestResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:234](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L234-L238)
- Shape: `{ host: string; repository: string; number: number; url: string; alreadyLinked: boolean; next?: string }`

<a id="schema-linkpullrequestsresult"></a>

## `LinkPullRequestsResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:249](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L249-L255)
- Shape: `{ linked: { host: string; repository: string; numbers: number[] }[]; alreadyLinked: { host: string; repository: string; numbers: number[] }[]; linkedCount: number; invalidUrls?: string[]; next?: string }`

<a id="schema-listissuesresult"></a>

## `ListIssuesResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:159](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L159-L164)
- Shape: `{ issues: IssueEntry[]; nextCursors: Record<string, string>; errors: { projectId: makeEntityId; message: string }[] }`

<a id="schema-listpullrequestsresult"></a>

## `ListPullRequestsResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:612](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L612-L630)
- Shape: `{ pullRequests: { number: number; title: string; url: string; author: string | null; headBranch: string; baseBranch: string; state: PullRequestState; isDraft: boolean; reviewDecision: PullRequestReviewDecision | null; checksState: PullRequestChecksState | null; updatedAt: string }[]; truncated: boolean; nextCursor: string | null }`

<a id="schema-listthreadissuesresult"></a>

## `ListThreadIssuesResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:239](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L239-L241)
- Shape: `{ issues: ThreadIssueEntry[] }`

<a id="schema-listthreadpullrequestsresult"></a>

## `ListThreadPullRequestsResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:320](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L320-L331)
- Shape: `{ pullRequests: ThreadPullRequestEntry[]; chains: { kind: "native" | "derived"; numbers: number[] }[]; nextCursor: string | null }`

<a id="schema-mcpattachmentinput"></a>

## `McpAttachmentInput`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/attachment/input.ts:6](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/attachment/input.ts#L6-L9)
- Shape: `omit | ChatFileAttachment`

<a id="schema-mcpclientoautherror"></a>

## `McpClientOAuthError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/McpClientOAuth.ts:23](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/McpClientOAuth.ts#L23-L33)
- Shape: `{ _tag: "McpClientOAuthError"; server: string; detail: string; untrusted?: boolean; rejected?: boolean }`

<a id="schema-mergepullrequestresult"></a>

## `MergePullRequestResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:651](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L651-L658)
- Shape: `{ host: string; repository: string; number: number; url: string; state: PullRequestState | null; note?: string }`

<a id="schema-previewevaluateresult"></a>

## `PreviewEvaluateResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/preview/tools.ts:183](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/preview/tools.ts#L183-L188)
- Shape: `{ toolIcon?: ToolActivityIcon; value: unknown }`

<a id="schema-previewscreenshotsaveerror"></a>

## `PreviewScreenshotSaveError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/McpHttpServer.ts:594](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/McpHttpServer.ts#L594-L601)
- Shape: `{ _tag: "PreviewScreenshotSaveError"; screenshotPath: string; cause: unknown }`

<a id="schema-pullrequestbranchhasnoneerror"></a>

## `PullRequestBranchHasNoneError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:172](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L172-L179)
- Shape: `{ _tag: "PullRequestBranchHasNoneError" }`

<a id="schema-pullrequestcursorinvaliderror"></a>

## `PullRequestCursorInvalidError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:181](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L181-L188)
- Shape: `{ _tag: "PullRequestCursorInvalidError" }`

<a id="schema-pullrequestforgeerror"></a>

## `PullRequestForgeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:155](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L155-L170)
- Shape: `{ _tag: "PullRequestForgeError"; detail?: string; reason?: SourceControlFailureReason; cause?: unknown }`

<a id="schema-pullrequestguidefailederror"></a>

## `PullRequestGuideFailedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:135](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L135-L142)
- Shape: `{ _tag: "PullRequestGuideFailedError"; detail: string; cause?: unknown }`

<a id="schema-pullrequestlinkfailederror"></a>

## `PullRequestLinkFailedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:99](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L99-L106)
- Shape: `{ _tag: "PullRequestLinkFailedError"; cause: unknown }`

<a id="schema-pullrequestlistfailederror"></a>

## `PullRequestListFailedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:117](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L117-L124)
- Shape: `{ _tag: "PullRequestListFailedError"; cause: unknown }`

<a id="schema-pullrequestnothingtodoerror"></a>

## `PullRequestNothingToDoError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:190](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L190-L197)
- Shape: `{ _tag: "PullRequestNothingToDoError"; detail: string }`

<a id="schema-pullrequestprojectnotfounderror"></a>

## `PullRequestProjectNotFoundError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:126](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L126-L133)
- Shape: `{ _tag: "PullRequestProjectNotFoundError"; repository: string }`

<a id="schema-pullrequestreadsection"></a>

## `PullRequestReadSection`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:528](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L528-L534)
- Shape: `"body" | "checks" | "threads" | "comments" | "diff"`

<a id="schema-pullrequesttargetinput"></a>

## `PullRequestTargetInput`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:64](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L64-L87)
- Shape: `{ environmentId: OrchestratorMcpEnvironmentTarget; threadId?: makeEntityId; url?: TrimmedNonEmptyString; repository?: TrimmedNonEmptyString; number?: PositiveInt; host?: TrimmedNonEmptyString }`

<a id="schema-pullrequestthreadrequirederror"></a>

## `PullRequestThreadRequiredError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:90](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L90-L97)
- Shape: `{ _tag: "PullRequestThreadRequiredError" }`

<a id="schema-pullrequesttoolerror"></a>

## `PullRequestToolError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:199](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L199-L220)
- Shape: `OrchestratorMcpFailure | McpCapabilityUnavailableError | PullRequestUrlInvalidError | PullRequestTargetIncompleteError | PullRequestHostRequiredError | PullRequestUrlUnavailableError | PullRequestRepositoryInvalidError | PullRequestThreadRequiredError | PullRequestLinkFailedError | PullRequestUnlinkFailedError | PullRequestListFailedError | PullRequestWatchFailedError | PullRequestUnavailableError | PullRequestWatchFromSubagentError | PullRequestProjectNotFoundError | PullRequestGuideFailedError | PullRequestForgeError | PullRequestBranchHasNoneError | PullRequestNothingToDoError | PullRequestCursorInvalidError`

<a id="schema-pullrequestunlinkfailederror"></a>

## `PullRequestUnlinkFailedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:108](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L108-L115)
- Shape: `{ _tag: "PullRequestUnlinkFailedError"; cause: unknown }`

<a id="schema-readissueresult"></a>

## `ReadIssueResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:167](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L167-L203)
- Shape: `{ projectId: makeEntityId; tracker: IssueTrackerKind; host: ?; scope: ?; key: ?; url: string; displayKey: string; title: string; state: IssueState; writable: boolean; capabilities: IssueCapabilities; states: IssueState[]; author: string | null; assignees: string[]; labels: string[]; createdAt: string; updatedAt: string; closedAt: string | null; body: string; comments: { id: string; author: string | null; body: string; createdAt: string; internal?: boolean }[]; commentsTruncated: boolean; linkedPullRequests: { url: string; title: string; state: string; closesIssue: boolean }[] }`

<a id="schema-readpullrequestguideresult"></a>

## `ReadPullRequestGuideResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:476](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L476-L484)
- Shape: `{ host: string; repository: string; number: number; url: string; guide: PullRequestReviewGuide | null; run: PullRequestReviewGuideRun | null; currentHeadSha: string | null; stale: boolean }`

<a id="schema-readpullrequestresult"></a>

## `ReadPullRequestResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:543](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L543-L609)
- Shape: `{ host: string; repository: string; number: number; url: string; title: string; state: PullRequestState; isDraft: boolean; visibility?: PullRequestVisibility; author: string | null; headBranch: string; baseBranch: string; headSha: string | null; mergeability: PullRequestMergeability; behindBy: number | null; autoMergeEnabled: boolean | null; checks: { passed: number; pending: number; failed: string[]; incomplete?: true }; unresolvedThreads: number; unresolvedThreadsTruncated?: true; body?: string; checkRuns?: PullRequestCheck[]; conversation?: { reviewThreads?: {…}[]; comments?: {…}[]; truncated: boolean; nextCursor: string | null }; diff?: { patch: string; truncated: boolean; nextCursor: string | null } }`

<a id="schema-rerunchecksresult"></a>

## `RerunChecksResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:860](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L860-L869)
- Shape: `{ host: string; repository: string; number: number; url: string; checks: { name: string; rerun: boolean; detail: string | null }[] }`

<a id="schema-respondtopullrequestresult"></a>

## `RespondToPullRequestResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:644](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L644-L648)
- Shape: `{ host: string; repository: string; number: number; url: string; replied: boolean; resolved: boolean | null }`

<a id="schema-reviewlinecomment"></a>

## `ReviewLineComment`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:783](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L783-L793)
- Shape: `{ path: TrimmedNonEmptyString; line: PositiveInt; startLine?: PositiveInt; side?: "new" | "old"; body: TrimmedNonEmptyString }`

<a id="schema-threadissueentry"></a>

## `ThreadIssueEntry`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:214](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L214-L220)
- Shape: `{ projectId: makeEntityId; tracker: IssueTrackerKind; host: ?; scope: ?; key: ?; url: string; source: ThreadIssueLinkSource; displayKey: string; title: string }`

<a id="schema-threadpullrequestentry"></a>

## `ThreadPullRequestEntry`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:300](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L300-L317)
- Shape: `{ host: string; repository: string; number: number; url: string; source: ThreadPullRequestLinkSource; watching: boolean; state: PullRequestState | null; title: string | null; headBranch: string | null; baseBranch: string | null; isDraft: boolean | null; stack: { kind: "native" | "derived"; position: number; size: number } | null }`

<a id="schema-threadpullrequestinput"></a>

## `ThreadPullRequestInput`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:521](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L521-L525)
- Shape: `{ environmentId: OrchestratorMcpEnvironmentTarget; number?: PositiveInt; repository?: TrimmedNonEmptyString }`

<a id="schema-unlinkissueresult"></a>

## `UnlinkIssueResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/issues/tools.ts:231](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/issues/tools.ts#L231-L236)
- Shape: `{ projectId: makeEntityId; tracker: IssueTrackerKind; host: ?; scope: ?; key: ?; url?: string; wasLinked: boolean }`

<a id="schema-unlinkpullrequestresult"></a>

## `UnlinkPullRequestResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:258](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L258-L263)
- Shape: `{ host: string; repository: string; number: number; wasLinked: boolean }`

<a id="schema-unlinkpullrequestsresult"></a>

## `UnlinkPullRequestsResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:266](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L266-L277)
- Shape: `{ unlinked: { host: string; repository: string; state: PullRequestState; numbers: number[] }[]; unlinkedCount: number; remaining: number }`

<a id="schema-watchpullrequestresult"></a>

## `WatchPullRequestResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:280](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L280-L291)
- Shape: `{ host: string; repository: string; number: number; url: string; watching: boolean; wasWatching: boolean; state?: "merged" | "closed"; checksState?: PullRequestChecksState; next?: string }`

<a id="schema-webhookaddressrejected"></a>

## `WebhookAddressRejected`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/McpWebhookTransport.ts:20](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/McpWebhookTransport.ts#L20-L23)
- Shape: `{ _tag: "WebhookAddressRejected"; message: string }`

<a id="schema-writepullrequestguidesresult"></a>

## `WritePullRequestGuidesResult`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/toolkits/pullRequests/tools.ts:471](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/toolkits/pullRequests/tools.ts#L471-L473)
- Shape: `{ guides: { host: string; repository: string; number: number; url: string; outcome: "started" | "running" | "failed"; detail: string | null }[] }`

<a id="schema-isthreadmanagementerror"></a>

## `isThreadManagementError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/mcp/OrchestratorMcpService.ts:273](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/apps/server/src/mcp/OrchestratorMcpService.ts#L273)
- Shape: `Schema.is`
