Unable to connect k8s hosted cipher MCP to curosr
Bug Description
Cursor not able to load the cipher tools, while connecting with /sse.
Steps to Reproduce
Steps to reproduce the behavior:
- Build image via docker file
- Convert docker compose to k8s setup
- expose the mcp server
Expected Behavior
Curosr should be able to get the cipher tool, but stuck at loading
Screenshots
connecting like this in cursor:
{
"mcpServers": {
"cipher-sse": { "url": "https://memory.ha.ai/sse" }
}
}
Environment Information
- OS: Linux (GKE)
Logs and Error Messages
Please provide any relevant logs, error messages, or console output:
23:01:43 INFO: Loading agent config from /app/memAgent/cipher.ymler-api-deployment-5ccb4f9df7-z4fbs
23:01:43 INFO: MCP Manager: MCPManager initialized
23:01:43 INFO: MCP Manager: Initializing 0 servers (0 disabled)
23:01:43 INFO: MCP Manager: Initialization complete
23:01:43 INFO: [EMBEDDING:MANAGER] Embedder registered successfully from YAML
23:01:43 INFO: Embedding manager initialized successfully
23:01:43 INFO: [VectorStoreFactory] Creating vector storage from environment
23:01:43 INFO: [VectorStoreManager] Vector storage system connected
23:01:43 INFO: [VectorStoreFactory] Vector storage system created successfully
23:01:43 INFO: [KG-Factory] Knowledge graph is disabled in environment
23:01:43 INFO: LLM service initialized successfully
23:01:43 INFO: InternalToolRegistry: Initializing...
23:01:43 INFO: InternalToolRegistry: Initialized successfully
23:01:43 INFO: Internal tools registration completed
23:01:43 INFO: SessionManager: Initializing persistence storage...
23:01:43 INFO: [StorageManager] Initialized with configuration
23:01:43 INFO: [StorageManager] Starting connection attempt 1
23:01:43 INFO: InMemoryBackend connected
23:01:43 INFO: [StorageManager:Cache] Connected successfully
23:01:43 INFO: Connecting to PostgreSQL database
23:01:43 INFO: PostgreSQL backend connected successfully
23:01:43 INFO: [StorageManager:Database] Connected successfully
23:01:43 INFO: [StorageManager] Storage system connected
23:01:43 INFO: SessionManager: PostgreSQL persistence storage initialized successfully
23:01:43 INFO: SessionManager: Storage initialized with database backend: postgres
23:01:43 INFO: Starting API server on 0.0.0.0:3000
23:01:43 INFO: [API Server] Using API prefix: '/api'
23:01:43 INFO: [API Server] Setting up MCP server with transport type: sse
23:01:43 INFO: [API Server] MCP server mode: default
23:01:43 INFO: [MCP Handler] Initializing MCP server with agent capabilities (mode: default)
23:01:43 INFO: [MCP Handler] Registering 1 MCP tools: ask_cipher
23:01:43 INFO: [MCP Handler] MCP server initialized successfully (mode: default)
23:01:43 INFO: [MCP Handler] Agent is now available as MCP server for external clients
23:01:43 INFO: [API Server] MCP SSE (GET /api/mcp/sse) and POST (/api/mcp?sessionId=...) routes registered.
23:01:43 INFO: [API Server] MCP server setup completed successfully
23:01:43 INFO: Starting WebSocket event subscription
23:01:43 INFO: WebSocket event subscriptions established
23:01:43 INFO: [API Server] WebSocket server initialized
23:01:43 INFO: API Server started on 0.0.0.0:3000
23:01:43 INFO: [API Server] MCP SSE endpoints available at /api/mcp/sse and /api/mcp
23:01:43 INFO: [API Server] WebSocket server available at ws://0.0.0.0:3000/ws
23:01:43 INFO: API server is running and ready to accept requests
health staus:
{"status":"healthy","timestamp":"2025-08-28T23:02:04.483Z","uptime":22.744398165,"version":"unknown","websocket":{"enabled":true,"active":true,"stats":{"connections":{"totalConnections":0,"activeConnections":0,"totalSessions":0,"activeSessions":0,"totalMessagesReceived":0,"totalMessagesSent":0,"averageConnectionDuration":0},"events":{"isActive":true,"totalEventsReceived":0,"totalEventsBroadcast":0,"lastEventTime":0,"eventTypeStats":{},"subscribedSessionCount":0,"connectionStats":{"totalConnections":0,"activeConnections":0,"totalSessions":0,"activeSessions":0,"totalMessagesReceived":0,"totalMessagesSent":0,"averageConnectionDuration":0}},"router":{"messagesProcessed":0,"errorsHandled":0,"activeSessions":0}}}}
Additional Context
---
apiVersion: v1
kind: ConfigMap
metadata:
name: cipher-app-config
namespace: heyayra-cipher
data:
# Application settings
BUILD_UI: "true"
NODE_ENV: "development"
CIPHER_LOG_LEVEL: "info"
REDACT_SECRETS: "true"
# Storage Configuration
STORAGE_CACHE_TYPE: "in-memory"
STORAGE_DATABASE_TYPE: "in-memory"
CIPHER_MULTI_BACKEND: "1"
CIPHER_PG_URL: "postgres://r"
CIPHER_WAL_FLUSH_INTERVAL: "5000"
# Memory Search Configuration
SEARCH_MEMORY_TYPE: "both"
# Vector Store Configuration
VECTOR_STORE_TYPE: "in-memory"
VECTOR_STORE_COLLECTION: "knowledge_memory"
VECTOR_STORE_DIMENSION: "1536"
VECTOR_STORE_DISTANCE: "Cosine"
VECTOR_STORE_ON_DISK: "false"
# Reflection Memory Configuration
REFLECTION_VECTOR_STORE_COLLECTION: "reflection_memory"
DISABLE_REFLECTION_MEMORY: "true"
ENABLE_QUERY_REFINEMENT: "true"
apiVersion: v1
kind: ConfigMap
metadata:
name: cipher-mem-agent-config
namespace: heyayra-cipher
data:
cipher.yml: |
mcpServers: {}
llm:
provider: gemini
model: gemini-2.5-flash
apiKey:
maxIterations: 50
embedding:
type: gemini
apiKey:
model: gemini-embedding-001
systemPrompt:
enabled: true
content: |
You are an AI programming assistant focused on coding and reasoning tasks. You excel at:
- Writing clean, efficient code
- Debugging and problem-solving
- Code review and optimization
- Explaining complex technical concepts
- Reasoning through programming challenges
apiVersion: apps/v1
kind: Deployment
metadata:
name: cipher-api-deployment
namespace: heyayra-cipher
labels:
app: cipher-api
spec:
replicas: 1
selector:
matchLabels:
app: cipher-api
template:
metadata:
labels:
app: cipher-api
spec:
containers:
- name: cipher-api
image: gcr.io/aizamd/cipher-memory:1
ports:
- containerPort: 3000
env:
envFrom:
- configMapRef:
name: cipher-app-config
command: ["sh", "-c"]
args:
- "node dist/src/app/index.cjs --mode api --port 3000 --host 0.0.0.0 --agent /app/memAgent/cipher.yml --mcp-transport-type sse"
volumeMounts:
- name: mem-agent-config-volume
mountPath: /app/memAgent/cipher.yml
subPath: cipher.yml
readOnly: true
- name: cipher-data-volume
mountPath: /app/.cipher
volumes:
- name: mem-agent-config-volume
configMap:
name: cipher-mem-agent-config
- name: cipher-data-volume
persistentVolumeClaim:
claimName: cipher-data-pvc
Possible Solution
We need to test if our hosted solution is working or not, initially trying to connect via cursor as a remote cipher mcp
Checklist
- [x] I have searched for similar issues before creating this one
- [x] I have provided all the requested information above
- [x] I have tested this on the latest version
Thanks for your feedback. I'll look at it soon
This repository has been archived. No further work will be done. For production use, please visit https://byterover.dev/
Hey @saadk546, sorry for the very late follow-up on this.
Looking at your logs and Cursor config, the issue appears to be the SSE endpoint URL. Your config uses:
{ "url": "https://memory.ha.ai/sse" }
But the actual SSE endpoint is at /api/mcp/sse (your own server logs confirm this: MCP SSE (GET /api/mcp/sse)). So the correct config should be:
{ "url": "https://memory.ha.ai/api/mcp/sse" }
Additionally, since your report we merged PR #272 which added reverse proxy support for k8s deployments — you can now set X-Forwarded-Prefix header in your ingress or use the PROXY_CONTEXT_PATH env var if your setup requires a custom path prefix.
Are you still experiencing this issue? If so, could you try with the corrected URL and let us know?
Closing due to inactivity. The SSE endpoint URL should be /api/mcp/sse (not /sse), and PR #272 added reverse proxy support for k8s deployments. If you're still experiencing issues with the corrected URL on the latest version, feel free to reopen.