fix: mcp return

This commit is contained in:
Harshith Mullapudi 2025-09-02 20:14:18 +05:30
parent 96c5800807
commit ef73a61035
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,5 @@
import type { User } from "~/models/user.server";
import { createWorkspace } from "~/models/workspace.server";
import { singleton } from "~/utils/singleton";
export async function postAuthentication({
user,

View File

@ -111,7 +111,7 @@ export async function callMemoryTool(
// Handler for memory_ingest
async function handleMemoryIngest(args: any) {
try {
const response = addToQueue(
const response = await addToQueue(
{
episodeBody: args.message,
referenceTime: new Date().toISOString(),
@ -124,7 +124,10 @@ async function handleMemoryIngest(args: any) {
content: [
{
type: "text",
text: JSON.stringify(response),
text: JSON.stringify({
success: true,
id: response.id,
}),
},
],
};