Skip to main content
Glama

Integration App MCP Server

Official
by membranehq
mock-integration-app-client.ts2.21 kB
import { Action } from '@integration-app/sdk/dist'; const mockActions = [ { id: 'test_action_id', key: 'create_event', name: 'Create Event', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Create a new event', }, }, }, integration: { id: 'google-calendar', key: 'google-calendar', name: 'Google Calendar', logoUri: 'https://example.com/logo.png', baseUri: 'https://example.com', }, }, { id: 'send-email', key: 'send_email', name: 'Send Email', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Test message', }, }, }, integration: { id: 'gmail', key: 'gmail', name: 'Gmail', logoUri: 'https://example.com/logo.png', baseUri: 'https://example.com', }, }, ]; // Mock IntegrationAppClient for test environment export class MockIntegrationAppClient { constructor(private token: string) {} actionInstance({ autoCreate, integrationKey, parentKey }: any) { return { run: async (args: any) => ({ output: 'You passed in' + JSON.stringify(args), }), }; } actions = { find: async ({ integrationId, cursor }: any) => ({ items: mockActions.filter(action => action.integration.id === integrationId), cursor: undefined, }), }; connections = { find: async (params: { integrationKey?: string }) => { const allConnections = [ { id: '1', integration: { id: 'google-calendar', key: 'google-calendar', }, }, { id: '2', integration: { id: 'gmail', key: 'gmail', }, }, ]; let filteredConnections = allConnections; if (params.integrationKey) { filteredConnections = allConnections.filter( connection => connection.integration.key === params.integrationKey ); } return { items: filteredConnections, cursor: undefined, }; }, }; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/membranehq/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server