Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): request_secret can save a CLI token to a private file #24809

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/24809/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 13 changed files with 10 additions and 3 deletions (loading 10).

x
0 of 13 viewed, 13 left
2 additions and 2 deletionsapps/mobile/src/features/threads/SecretRequestCard.tsxModified
View file
@@ -1,9 +1,9 @@
import {
SECRET_REQUEST_DEFAULT_PLACEHOLDER,
- SECRET_REQUEST_PRIVACY_NOTE,
secretRequestAnswerInput,
secretRequestDisplay,
secretRequestFailureMessage,
+ secretRequestPrivacyNote,
type SecretRequestItem,
} from "@t3tools/client-runtime/secret-request";
import {
@@ -144,7 +144,7 @@
type="monochrome"
<Text className="flex-1 font-sans text-xs text-foreground-muted">
- {SECRET_REQUEST_PRIVACY_NOTE}
+ {secretRequestPrivacyNote(item)}
</Text>
</View>
<Button
1 addition and 1 deletionapps/server/src/mcp/toolkits/orchestrator/tools.tsModified
View file
@@ -189,7 +189,7 @@
​
const RequestSecretTool = Tool.make("request_secret", {
description:
- "Ask the user for a secret (a token, API key, signing secret, password) through a private card in this thread, and wait for them to answer. The value is kept by the app and NEVER returned to you or shown in the transcript. When saved, the result carries a secretRef: pass it to a tool that accepts one (e.g. schedule_task's signature.secretRef). It works once. Never ask for secrets in chat, and never invent one.",
+ "Ask the user for a secret (a token, API key, signing secret, password) through a private card in this thread, and wait for them to answer. The value is NEVER returned to you or shown in the transcript. By default the result carries a one-use secretRef for a tool that accepts one (e.g. schedule_task's signature.secretRef). For a shell CLI token, set delivery to file. Never ask for secrets in chat, and never invent one.",