We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Toru-Takagi/togello-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { httpClient } from '../../client.js';
export const activityItemListHandler = async (uri, _options) => {
try {
const activityItemList = await httpClient.fetchURL({
path: '/v2/integration/activity-items',
});
const enabledActivityItemList = activityItemList.filter((item) => item.enabled === 'true');
return {
contents: [
{
type: 'text',
uri: uri.href,
text: `The following is a single activity item represented in the order:
[activity item uuid, item name]`,
},
{
type: 'text',
uri: uri.href,
text: enabledActivityItemList
.map((item) => [item.activityItemUUID, item.itemName])
.join(','),
},
],
};
}
catch (error) {
console.error('Error in resource handler:', error);
return {
contents: [
{
type: 'text',
uri: uri.href,
text: `Error in resource handler: ${error}`,
},
],
};
}
};