We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { useThreadList } from "src/api/openapi-client/threads";
import { ThreadListResult } from "src/api/openapi-schema";
export type Props = {
query?: string;
page?: number;
threads: ThreadListResult;
};
export function useThreadIndexScreen(props: Props) {
const { data, mutate, error } = useThreadList(
{
q: props.query,
page: props.page?.toString(),
},
{
swr: {
fallbackData: props.threads,
},
},
);
if (!data) {
return {
ready: false as const,
error,
};
}
return {
ready: true as const,
data,
mutate,
};
}