Skip to main content
Glama

Zanny's Persistent Memory Manager

# Smithery.ai Deployment Fixes This document outlines the changes made to fix deployment issues with Smithery.ai. ## Issue Summary The original error message from Smithery.ai indicated that our server was not properly implementing the required MCP (Model Capabilities Provider) specification. Specifically: - The server was implemented as a REST API rather than a JSON-RPC service - Required MCP endpoints like `tools/list` and `tools/call` were missing - Server logs contained non-JSON formatted output that interfered with MCP JSON-RPC initialization - Automatic build config generation failed ## Changes Made ### 1. Added JSON-RPC Support - Implemented JSON-RPC request/response handling with proper validation - Added interfaces for `JsonRpcRequest` and `JsonRpcResponse` - Created proper error handling for JSON-RPC responses ### 2. Implemented Required MCP Endpoints - Added `/tools/list` endpoint to expose available tools - Added `/tools/call` endpoint to execute tool operations - Defined tool schema for each memory operation (store, retrieve, search, delete, etc.) - Maintained backward compatibility with existing REST API endpoints ### 3. Fixed Logging Format - Updated logger configuration to ensure all logs are in JSON format - Replaced string template literals with structured JSON objects in log calls - Made console and file logging consistent to avoid JSON parsing issues ### 4. Added Smithery.ai Configuration - Created `smithery.json` with proper MCP configuration - Included tool definitions that match the server implementation - Specified build and start commands for deployment ### 5. Updated Documentation - Updated README.md to include information about JSON-RPC endpoints - Added deployment instructions for Smithery.ai - Clarified the purpose of each component in the project ## Testing Before deploying to Smithery.ai again, you can test the JSON-RPC endpoints locally: ### Test tools/list endpoint: ```bash curl -X POST http://localhost:3000/tools/list \ -H "Content-Type: application/json" \ -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' ``` ### Test tools/call endpoint: ```bash curl -X POST http://localhost:3000/tools/call \ -H "Content-Type: application/json" \ -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "list_memories", "parameters": {}}}' ``` ## Next Steps 1. Rebuild the project with `npm run build` 2. Test locally to ensure JSON-RPC endpoints work correctly 3. Deploy the updated version to Smithery.ai 4. Check deployment logs for any remaining issues

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/zannyonear1h1/mcp-memory-bank-1'

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