Skip to main content
Glama

Neon MCP Server

by fefergrgrgrg
index.js1.17 kB
'use strict'; var TRANSACTION_DISPLAYED = 10; var BLOCKS_DISPLAYED = 5; angular.module('insight.system').controller('IndexController', function($scope, Global, getSocket, Blocks) { $scope.global = Global; var _getBlocks = function() { Blocks.get({ limit: BLOCKS_DISPLAYED }, function(res) { $scope.blocks = res.blocks; $scope.blocksLength = res.length; }); }; var socket = getSocket($scope); var _startSocket = function() { socket.emit('subscribe', 'inv'); socket.on('tx', function(tx) { $scope.txs.unshift(tx); if (parseInt($scope.txs.length, 10) >= parseInt(TRANSACTION_DISPLAYED, 10)) { $scope.txs = $scope.txs.splice(0, TRANSACTION_DISPLAYED); } }); socket.on('block', function() { _getBlocks(); }); }; socket.on('connect', function() { _startSocket(); }); $scope.humanSince = function(time) { var m = moment.unix(time); return m.max().fromNow(); }; $scope.index = function() { _getBlocks(); _startSocket(); }; $scope.txs = []; $scope.blocks = []; });

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/fefergrgrgrg/neon-mcp'

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