UNPKG

mcp-eth-test-subgraph-9

Version:

MCP server for ethereum_transactions_test subgraph - Track all Ethereum ERC20 transfers for testing

17 lines (16 loc) 702 B
// Helper function to safely access environment variables function getEnvVar(key, defaultValue) { if (typeof process !== 'undefined' && process.env) { return process.env[key] || defaultValue; } return defaultValue; } export const CONFIG = { SUBGRAPH_ID: getEnvVar('SUBGRAPH_ID', '98177761-64ca-4268-aa69-cba0b00768df'), SUBGRAPH_NAME: getEnvVar('SUBGRAPH_NAME', 'ethereum_transactions_test'), SUBGRAPH_DESCRIPTION: getEnvVar('SUBGRAPH_DESCRIPTION', 'Track all Ethereum ERC20 transfers for testing'), QUERY: { queryEndpoint: 'http://3.89.225.168:8000/api/query', subgraphId: getEnvVar('SUBGRAPH_ID', '98177761-64ca-4268-aa69-cba0b00768df'), }, };