We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { createAction } from '@activepieces/pieces-framework';
import { mysqlConnect, mysqlGetTableNames } from '../common';
import { mysqlAuth } from '../..';
export default createAction({
auth: mysqlAuth,
name: 'get_tables',
displayName: 'Get Tables',
description: 'Returns a list of tables in the database',
props: {},
async run(context) {
const conn = await mysqlConnect(context.auth, context.propsValue);
try {
const tables = await mysqlGetTableNames(conn);
return { tables };
} finally {
await conn.end();
}
},
});