Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata tagging #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Metadata tagging #1

wants to merge 4 commits into from

Conversation

pasevin
Copy link

@pasevin pasevin commented Mar 10, 2025

Add Project-Specific Metadata Tagging to MCP Server.

This PR introduces main_metadata_tagging.py, an enhanced version of our MCP server that adds project-specific metadata tagging capabilities to the mem0 coding preferences system. This enables better organization and retrieval of stored code snippets and programming knowledge by associating them with specific projects.

Key Features

  • Project-Specific Storage: Add a new project parameter to all tools, allowing users to tag memories with project identifiers
  • Filtered Retrieval: Retrieve coding preferences filtered by project name
  • Scoped Semantic Search: Limit searches to code snippets within a specific project context
  • Enhanced Memory Organization: Improves knowledge management for teams working across multiple projects or domains

Implementation Details

  • Extends the core MCP tools with project metadata filtering capabilities
  • Updates the mem0 client implementation to include metadata in memory storage
  • Maintains full backward compatibility with the existing API
  • Implements custom instructions for structuring stored code knowledge

How to Use

Run the server with:

uv run main_metadata_tagging.py --host 0.0.0.0 --port 8080

Example usage with project tagging:

Please save this utility function in the "backend-utils" project:
[code snippet here]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant