You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although it is green light but it reported error as below:
Processing request of type server.py:534 ListToolsRequest Processing request of type server.py:534 ListResourcesRequest Processing request of type server.py:534 ListResourceTemplatesRequest
console.ts:137 [Extension Host] Server "Basic Memory" stderr: /Users/wtfzambo/.asdf/installs/python/3.12.1/lib/python3.12/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 8 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
ERR [Extension Host] Server "Basic Memory" stderr: [04/04/25 13:08:17] INFO Processing request of type server.py:534
ListToolsRequest
And in fact the interface is not too happy with it:
but when I interact with it in the chat, it still works (prompt was: "Can you list the tools, resources and prompts of basic memory MCP ?")
Based on my analysis of the codebase and the error message, I can provide insights into Issue #74: "Error status with Roo Code MCP".
Problem Analysis
The issue involves the Basic Memory MCP server and Roo Code MCP integration. The error message shows:
Processing request of type server.py:534 ListToolsRequest Processing request of type server.py:534 ListResourcesRequest Processing request of type server.py:534 ListResourceTemplatesRequest
Key findings:
Basic Memory uses MCP (Model Context Protocol) v1.2.0+ as a dependency
The server.py in Basic Memory is minimal (only 12 lines) and delegates to an external MCP package
Line 534 mentioned in the error is from the external MCP package, not Basic Memory's code
"Roo Code" appears to be a third-party MCP client (likely similar to Claude Desktop)
The error occurs despite a "green light" status, suggesting a connection is established but requests aren't properly handled
Likely Causes
Version Mismatch: The Basic Memory MCP server (v1.2.0+) may not be fully compatible with the Roo Code MCP client
Request Handling Issue: The server might be logging these requests but not properly responding to them:
ListToolsRequest
ListResourcesRequest
ListResourceTemplatesRequest
Configuration Problem: Incorrect configuration in Roo Code's setup for connecting to Basic Memory
Protocol Implementation Gap: Basic Memory might not fully implement all MCP request types that Roo Code expects
Potential Fixes
Update MCP Package:
# in pyproject.tomldependencies = [
"mcp>=1.2.0", # Update to a newer version if available
]
Enhance Request Handling:
Modify src/basic_memory/mcp/server.py to properly handle the specific request types:
"""Enhanced FastMCP server instance for Basic Memory."""frommcp.server.fastmcpimportFastMCPfrommcp.server.fastmcp.utilities.loggingimportconfigure_logging# mcp console loggingconfigure_logging(level="INFO")
# Create the shared server instance with custom handlersmcp=FastMCP("Basic Memory")
# Potentially register custom handlers for the specific request types# This would require understanding the MCP protocol details
Add Resource Support:
Since the error includes ListResourcesRequest and ListResourceTemplatesRequest, Basic Memory might need to implement resource support:
# In src/basic_memory/mcp/main.py# Register resourcesfrombasic_memory.mcp.resourcesimportregister_resources# This would need to be createdregister_resources(mcp)
Better Error Handling:
# In src/basic_memory/mcp/server.pytry:
mcp=FastMCP("Basic Memory")
# Add error handlers or custom request processorsexceptExceptionase:
logger.error(f"Failed to initialize MCP server: {e}")
Roo Code Configuration Documentation:
Create specific documentation for Roo Code users in docs/ directory, similar to the Claude Desktop configuration instructions.
Files to Modify
src/basic_memory/mcp/server.py - Enhance the MCP server configuration
src/basic_memory/mcp/main.py - Add proper error handling and resource registration
README.md - Add section about Roo Code integration with specific configuration requirements
Create a new file src/basic_memory/mcp/resources/__init__.py to implement resource support
Additional Investigation Needed
To fully resolve this issue, more information would be helpful:
What is Roo Code MCP? (Documentation or specifications)
Which version of the MCP protocol does Roo Code implement?
What specific resources does Roo Code expect?
Are there differences in how Roo Code expects responses compared to Claude Desktop?
This appears to be an integration issue between the Basic Memory MCP server and the Roo Code MCP client. The logging shows requests being received but potentially not properly processed, despite the connection itself working (green light).
FYI, I was able to run the basic-memory mcp tools successfully in Cline v3.9.1 using the anthropic-3.7-sonnet model.
I've successfully tested all the basic-memory MCP tools:
project_info: Retrieved detailed statistics about the Basic Memory project, showing 315 entities, 932 observations, and 566 relations.
search: Searched for "LLM" in the knowledge base and found relevant content including notes about text-based knowledge systems and LLM interfaces.
write_note: Created a test note "Test Note for Basic Memory Tools" in the tests folder with tags.
read_note: Successfully read back the test note using its permalink.
recent_activity: Retrieved recent activity from the knowledge base, showing our test note and other recently created content.
build_context: Built context from a memory URI (memory://tests/test-note-for-basic-memory-tools), retrieving the note and its metadata.
read_content: Read the raw file content of our test note using its permalink.
canvas: Created a visualization canvas showing the relationships between different Basic Memory tools.
delete_note: Successfully deleted our test note.
access_mcp_resource: Accessed the AI assistant guide resource, which provides comprehensive documentation on how to effectively use Basic Memory tools.
All tools are functioning correctly and provide powerful capabilities for knowledge management, including creating, reading, searching, visualizing, and deleting content in the Basic Memory knowledge base.
Activity
phernandez commentedon Apr 4, 2025
Hi, @CaydeLKC. Thanks for submitting an issue. Can you share the config you used to setup the mcp? Any logs would be helpful also.
wtfzambo commentedon Apr 4, 2025
Been having a similar issue using Cline.
I get this error:
And in fact the interface is not too happy with it:
but when I interact with it in the chat, it still works (prompt was: "Can you list the tools, resources and prompts of basic memory MCP ?")
Here's my config:
(the values that you don't recognize is just Cline default boilerplate)
It does however work in Continue.dev:
phernandez commentedon Apr 5, 2025
claude: any hints about why roo code is not working for the user?
github-actions commentedon Apr 5, 2025
Claude Code Analysis
Based on my analysis of the codebase and the error message, I can provide insights into Issue #74: "Error status with Roo Code MCP".
Problem Analysis
The issue involves the Basic Memory MCP server and Roo Code MCP integration. The error message shows:
Key findings:
Likely Causes
Version Mismatch: The Basic Memory MCP server (v1.2.0+) may not be fully compatible with the Roo Code MCP client
Request Handling Issue: The server might be logging these requests but not properly responding to them:
Configuration Problem: Incorrect configuration in Roo Code's setup for connecting to Basic Memory
Protocol Implementation Gap: Basic Memory might not fully implement all MCP request types that Roo Code expects
Potential Fixes
Update MCP Package:
Enhance Request Handling:
Modify
src/basic_memory/mcp/server.pyto properly handle the specific request types:Add Resource Support:
Since the error includes ListResourcesRequest and ListResourceTemplatesRequest, Basic Memory might need to implement resource support:
Better Error Handling:
Roo Code Configuration Documentation:
Create specific documentation for Roo Code users in
docs/directory, similar to the Claude Desktop configuration instructions.Files to Modify
src/basic_memory/mcp/server.py- Enhance the MCP server configurationsrc/basic_memory/mcp/main.py- Add proper error handling and resource registrationREADME.md- Add section about Roo Code integration with specific configuration requirementssrc/basic_memory/mcp/resources/__init__.pyto implement resource supportAdditional Investigation Needed
To fully resolve this issue, more information would be helpful:
This appears to be an integration issue between the Basic Memory MCP server and the Roo Code MCP client. The logging shows requests being received but potentially not properly processed, despite the connection itself working (green light).
🤖 Generated with Claude Code GitHub Action
phernandez commentedon Apr 5, 2025
FYI, I was able to run the basic-memory mcp tools successfully in Cline v3.9.1 using the
anthropic-3.7-sonnetmodel.Here's the content of my
cline_mcp_settings.jsonphernandez commentedon Apr 5, 2025
It seems this is actually FastMCP outputting this to stderr for some reason. Not terribly helpful. This issue cline/cline#1272
indicates setting the log level to ERROR can help that. I'll give it a try.
phernandez commentedon Apr 6, 2025
claude-fix: lets change the startup to:
mcp = FastMCP("Basic Memory", log_level="ERROR")phernandez commentedon Apr 6, 2025
@CaydeLKC @wtfzambo FYI this issue has been fixed in the v0.12.0 release.