We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/akiojin/playfab-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { PlayFabServerAPI } from "../../config/playfab.js";
import { callPlayFabApi, addCustomTags } from "../../utils/playfab-wrapper.js";
import { PlayFabHandler } from "../../types/index.js";
import { GetTitleNewsParams, GetTitleNewsResult } from "../../types/handler-types.js";
export const GetTitleNews: PlayFabHandler<GetTitleNewsParams, GetTitleNewsResult> = async (params) => {
const request = addCustomTags({
Count: params.Count || 10
});
const result = await callPlayFabApi(
PlayFabServerAPI.GetTitleNews,
request,
'GetTitleNews'
);
return {
success: true,
news: result.News?.map((item: any) => ({
NewsId: item.NewsId || '',
Title: item.Title || '',
Body: item.Body || '',
Timestamp: item.Timestamp || ''
})) || [],
};
};