Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions client/dashboard/src/hooks/useObservabilityMcpConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,9 @@ export function useObservabilityMcpConfig({
const isLocal = process.env.NODE_ENV === "development";
const { session } = useSession();

// For local development, look up the gram-seed toolset in the ecommerce-api project
const { data: toolsets } = useListToolsets(
{
gramProject: "ecommerce-api",
},
undefined,
{
enabled: isLocal,
headers: {
"gram-project": "ecommerce-api",
},
},
);
const { data: toolsets } = useListToolsets(undefined, undefined, {
enabled: isLocal && !!projectSlug,
});

const getSession = useCallback(async (): Promise<string> => {
const res = await chatSessionsCreate(
Expand Down