pull/717/head
Travis Fischer 2025-07-01 04:42:58 -05:00
rodzic 58f923b247
commit 256898d5ec
4 zmienionych plików z 14 dodań i 4 usunięć

Wyświetl plik

@ -88,6 +88,7 @@ export function registerV1CreateDeployment(
// Used to simplify recreating the demo `@agentic/search` project during
// development while we're frequently resetting the database
const secret =
projectIdentifier === '@dev/search' ||
projectIdentifier === '@agentic/search'
? env.AGENTIC_SEARCH_PROXY_SECRET
: await sha256()

Wyświetl plik

@ -67,6 +67,7 @@ export function registerV1CreateProject(
// Used to simplify recreating the demo `@agentic/search` project during
// development while we're frequently resetting the database
const secret =
projectIdentifier === '@dev/search' ||
projectIdentifier === '@agentic/search'
? env.AGENTIC_SEARCH_PROXY_SECRET
: await sha256()

Wyświetl plik

@ -76,6 +76,12 @@ export class DurableMcpClientBase extends DurableObject<RawEnv> {
}): Promise<string> {
await this.ensureClientConnection()
// console.log('DurableMcpClient.callTool', {
// name,
// args,
// metadata
// })
const toolCallResponse = await this.client!.callTool({
name,
arguments: args,

Wyświetl plik

@ -78,10 +78,12 @@ export default {
parsedEnv.AGENTIC_PROXY_SECRET
) {
return {
content: [],
structuredContent: {
error: 'Invalid request'
}
content: [
{
type: 'text',
text: 'Invalid request: must come from Agentic MCP proxy'
}
]
}
}