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 { PlayFabAdminAPI } from "../../config/playfab.js";
import { callPlayFabApi, addCustomTags } from "../../utils/playfab-wrapper.js";
import { PlayFabHandler } from "../../types/index.js";
import { SetTitleDataParams, SetTitleDataResult } from "../../types/handler-types.js";
export const SetTitleData: PlayFabHandler<SetTitleDataParams, SetTitleDataResult> = async (params) => {
// Convert Record<string, string> to TitleDataKeyValue[]
const keyValues = Object.entries(params.KeysAndValues).map(([key, value]) => ({
Key: key,
Value: value
}));
const request = addCustomTags({
KeyValues: keyValues
});
await callPlayFabApi(
PlayFabAdminAPI.SetTitleDataAndOverrides,
request,
'SetTitleData'
);
return {
success: true,
message: 'Title data updated successfully',
};
};