Skip to content

Commit a7d9e5c

Browse files
committed
Refactored and simplified
1 parent 4922a95 commit a7d9e5c

File tree

24 files changed

+33
-2956
lines changed

24 files changed

+33
-2956
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
hooks:
2828
- id: black
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.15.1
30+
rev: v0.15.2
3131
hooks:
3232
- id: ruff
3333
types_or: [ python, pyi, jupyter ]

documentdb_mcp/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
__all__: List[str] = []
99

1010
CORE_MODULES = [
11-
"documentdb_mcp.documentdb_mcp",
11+
"documentdb_mcp.mcp",
1212
]
1313

1414
OPTIONAL_MODULES = {
15-
"documentdb_mcp.documentdb_agent": "a2a",
16-
"documentdb_mcp.documentdb_mcp": "mcp",
15+
"documentdb_mcp.agent": "agent",
16+
"documentdb_mcp.mcp": "mcp",
1717
}
1818

1919

@@ -47,12 +47,12 @@ def _expose_members(module):
4747
else:
4848
globals()[f"_{extra_name.upper()}_AVAILABLE"] = False
4949

50-
_MCP_AVAILABLE = OPTIONAL_MODULES.get("documentdb_mcp.documentdb_mcp") in [
50+
_MCP_AVAILABLE = OPTIONAL_MODULES.get("documentdb_mcp.mcp") in [
5151
m.__name__ for m in globals().values() if hasattr(m, "__name__")
5252
]
53-
_A2A_AVAILABLE = "documentdb_mcp.documentdb_agent" in globals()
53+
_AGENT_AVAILABLE = "documentdb_mcp.agent" in globals()
5454

55-
__all__.extend(["_MCP_AVAILABLE", "_A2A_AVAILABLE"])
55+
__all__.extend(["_MCP_AVAILABLE", "_AGENT_AVAILABLE"])
5656

5757

5858
"""

documentdb_mcp/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python
22
# coding: utf-8
3-
from documentdb_mcp.documentdb_mcp import documentdb_mcp
3+
from documentdb_mcp.mcp import documentdb_mcp
44

55
if __name__ == "__main__":
66
documentdb_mcp()

documentdb_mcp/agent/HEARTBEAT.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ You are running a scheduled heartbeat. Perform these checks and report results c
88
2. **Memory Review** — Read `MEMORY.md` and check for any pending follow-up tasks or action items. List any that are overdue.
99
3. **Cron Log** — Read `CRON_LOG.md` and check for recent errors (❌). Summarize any failures from the last 24 hours.
1010
4. **Peer Agents** — Read `AGENTS.md` and note if any registered peers need attention.
11-
5. **Self-Diagnostics** — Report your current model, available tool count, and any anomalies.
11+
5. **Domain-Specific Checks**:
12+
- **Database Connectivity**: Verify connection to all registered databases.
13+
- **Performance**: Identify any active slow queries or high connection counts.
14+
6. **Self-Diagnostics** — Report your current model, available tool count, and any anomalies.
1215

1316
## Response Format
1417

documentdb_mcp/agent/IDENTITY.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# IDENTITY.md - Who I Am, Core Personality, & Boundaries
22

3-
* **Name:** Documentdb Mcp Agent
4-
* **Role:** A research specialist agent for web search and information gathering using Documentdb Mcp.
5-
* **Emoji:** 🔍
6-
* **Vibe:** Precise, objective, concise
3+
## [default]
4+
* **Name:** DocumentDB Agent
5+
* **Role:** Management and analysis of DocumentDB/MongoDB databases.
6+
* **Emoji:** 🗃️
7+
* **Vibe:** Data-driven, technical, methodical
78

8-
## System Prompt
9-
You are a Research Specialist Agent for Documentdb Mcp.
10-
You have access to a powerful metasearch engine to find information on the web.
11-
Your responsibilities:
12-
1. Analyze the user's research topic or query.
13-
2. Use the 'web_search' tool (or related skills) to find relevant information.
14-
3. Synthesize the search results into a clear, concise, and well-cited answer.
15-
4. Be objective and provide multiple perspectives if the topic is complex.
16-
5. If initial results are insufficient, refine your search queries and try again.
17-
6. Always include the URLs of the sources you used.
18-
7. MEMORY: You have long-term memory in MEMORY.md. If the user says 'remember', 'recall', or mentions past interactions, read MEMORY.md to retrieve context. Save important decisions, outcomes, and user preferences to MEMORY.md using append_note_to_file.
9+
### System Prompt
10+
You are the DocumentDB Agent.
11+
Your goal is to assist the user with database operations on DocumentDB or MongoDB.
12+
You handle collection management, CRUD operations, database analysis, and user management.
13+
Help the user interact with their data efficiently and securely.
14+
You can:
15+
- List and manage databases and collections.
16+
- Perform CRUD operations on documents.
17+
- Analyze data structures and runs database commands.
18+
- Manage database users and permissions.

documentdb_mcp/agent/__init__.py

Whitespace-only changes.

documentdb_mcp/agent/skills/test-skill/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: test-skill
33
description: A test skill.
44
version: 0.1.0
5-
tags: [custom]
5+
tags: [test-skill]
66
input_modes: [text]
77
output_modes: [text]
88
---

0 commit comments

Comments
 (0)