Skip to main content
Glama

Last9 Observability MCP

Official
Apache 2.0
122
46
  • Apple
test-mcp.sh985 B
#!/bin/bash set -e DOCKER_IMAGE="last9/mcp-server:latest" # Load environment variables if [ -f .env ]; then source .env fi # Function to run MCP command run_mcp() { local message="$1" echo "Testing: $message" echo "$message" | docker run --rm -i --env-file .env "$DOCKER_IMAGE" echo -e "\n---\n" } echo "=== Last9 MCP Server Docker Tests ===" # Test 1: Tools list run_mcp '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' # Test 2: Initialize run_mcp '{"jsonrpc":"2.0","id":2,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"tools":{}},"clientInfo":{"name":"test-client","version":"1.0.0"}}}' # Test 3: Get environments run_mcp '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"get_service_environments","arguments":{}}}' # Test 4: Get service summary run_mcp '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"get_service_summary","arguments":{"env":""}}}' echo "All tests completed!"

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/last9/last9-mcp-server'

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