Skip to content

Feature: Add Autonomous Workspace Context Provider (MCP + RAG) Agent #152

Description

@VenkateshBuddhi

Problem statement

The innovation lab currently has great foundational examples, but it would highly benefit from a dedicated example demonstrating how to integrate modern context-gating protocols like Anthropic's Model Context Protocol (MCP) alongside a local Retrieval-Augmented Generation (RAG) pipeline within the uagents framework. Currently, developers lack a blueprint showing how an agent can dynamically monitor local developer workspaces and serve that context seamlessly to external LLMs or other agents.

Proposed solution

I propose adding a new example in the repository called "workspace-mcp-context-provider".

The architecture consists of a self-contained multi-threaded agent environment:

  • File System Watcher : Utilizes "watchdog" to monitor a specified local directory for mutations ("on_created", "on_modified", "on_deleted").
  • Local RAG Engine : Leverages "ChromaDB" paired with a lightweight, local embedding model ("all-MiniLM-L6-v2") to parse and maintain updated vector indexes of local documents without external API overhead.
  • MCP Query Cycle : The uAgent implements an asynchronous query handler ("on_query"). When an external workspace or coding agent queries it, it executes a quick similarity lookup against the local vector store and sends the localized context payload back to the sender.

Scope and impact

  • Scope : The PR will add a self-contained folder ( "contributors/workspace-mcp-context-provider") containing the core agent logic, module dependencies in requirements.txt, .env.example file, and a clear README following the repository template guidelines.
  • Impact : As autonomous workflows increasingly require deep integration with a developer's local environment, this blueprint lowers the barrier to entry. It provides a real-world implementation demonstrating file orchestration, persistent vector indexing, and compliance with trending open-source interoperability standards (MCP).

Alternatives considered (optional)

  • Using Cloud Vector DBs : Considered using Pinecone or Milvus cloud instances, but local persistence via ChromaDB removes the requirement for external API keys, keeping the quickstart accessible and completely private for local codebase parsing.
  • Using Native File Reading on Every Query : Reading files directly during a query introduces immense latency and tokenizer limits for large folders. Implementing a RAG pipeline ensures that only the most relevant snippets are passed efficiently over the network.

Additional context (optional)

I am an active GSSoC '26 contributor specializing in the AI/Agents track. I already have this asynchronous RAG-watcher workflow . If assigned, I can have a clean, formatted, and fully documented Pull Request submitted within 48 hours.

Metadata

Metadata

Labels

enhancementNew feature or requestgssoc26GirlScript Summer of Code 2026 contributionlevel3GSSoC level 3 - advanced (highest points)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions