omnispindle 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- omnispindle-1.0.0/.gitignore +83 -0
- omnispindle-1.0.0/PKG-INFO +291 -0
- omnispindle-1.0.0/README.md +242 -0
- omnispindle-1.0.0/pyproject.toml +133 -0
- omnispindle-1.0.0/requirements.txt +12 -0
- omnispindle-1.0.0/src/Omnispindle/__init__.py +187 -0
- omnispindle-1.0.0/src/Omnispindle/__main__.py +121 -0
- omnispindle-1.0.0/src/Omnispindle/ai_assistant.py +422 -0
- omnispindle-1.0.0/src/Omnispindle/api_client.py +275 -0
- omnispindle-1.0.0/src/Omnispindle/api_tools.py +395 -0
- omnispindle-1.0.0/src/Omnispindle/auth.py +117 -0
- omnispindle-1.0.0/src/Omnispindle/auth0_actions/custom_token_exchange.js +78 -0
- omnispindle-1.0.0/src/Omnispindle/auth_flow.py +173 -0
- omnispindle-1.0.0/src/Omnispindle/auth_setup.py +240 -0
- omnispindle-1.0.0/src/Omnispindle/auth_utils.py +80 -0
- omnispindle-1.0.0/src/Omnispindle/chat-to-create-todos-from-work.txt +2018 -0
- omnispindle-1.0.0/src/Omnispindle/context.py +16 -0
- omnispindle-1.0.0/src/Omnispindle/database.py +164 -0
- omnispindle-1.0.0/src/Omnispindle/http_server.py +99 -0
- omnispindle-1.0.0/src/Omnispindle/hybrid_tools.py +407 -0
- omnispindle-1.0.0/src/Omnispindle/mcp_handler.py +60 -0
- omnispindle-1.0.0/src/Omnispindle/middleware.py +194 -0
- omnispindle-1.0.0/src/Omnispindle/models/__init__.py +1 -0
- omnispindle-1.0.0/src/Omnispindle/models/config.py +11 -0
- omnispindle-1.0.0/src/Omnispindle/mqtt.py +80 -0
- omnispindle-1.0.0/src/Omnispindle/patches.py +233 -0
- omnispindle-1.0.0/src/Omnispindle/requirements.txt +371 -0
- omnispindle-1.0.0/src/Omnispindle/scheduler.py +756 -0
- omnispindle-1.0.0/src/Omnispindle/server.py +282 -0
- omnispindle-1.0.0/src/Omnispindle/sse_handler.py +169 -0
- omnispindle-1.0.0/src/Omnispindle/stdio_http_server.py +73 -0
- omnispindle-1.0.0/src/Omnispindle/stdio_server.py +528 -0
- omnispindle-1.0.0/src/Omnispindle/todo_log_service.py +423 -0
- omnispindle-1.0.0/src/Omnispindle/token_exchange.py +174 -0
- omnispindle-1.0.0/src/Omnispindle/tools.py +1166 -0
- omnispindle-1.0.0/src/Omnispindle/utils.py +258 -0
- omnispindle-1.0.0/src/Omnispindle/verify_token.py +43 -0
- omnispindle-1.0.0/src/run_todo_log_service.py +60 -0
- omnispindle-1.0.0/src/start_uvicorn.py +45 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Environment and credentials
|
|
2
|
+
.env*
|
|
3
|
+
.env.local
|
|
4
|
+
.env.production
|
|
5
|
+
.env.development
|
|
6
|
+
AUTH0_TOKEN*
|
|
7
|
+
*_secrets.json
|
|
8
|
+
*client_secrets*
|
|
9
|
+
*.key
|
|
10
|
+
*.pem
|
|
11
|
+
*.p12
|
|
12
|
+
*.pfx
|
|
13
|
+
config/*.json
|
|
14
|
+
config/*secrets*
|
|
15
|
+
*.credentials
|
|
16
|
+
|
|
17
|
+
# Python
|
|
18
|
+
__pycache__/
|
|
19
|
+
*.pyc
|
|
20
|
+
*.pyo
|
|
21
|
+
*.pyd
|
|
22
|
+
.Python
|
|
23
|
+
build/
|
|
24
|
+
develop-eggs/
|
|
25
|
+
dist/
|
|
26
|
+
downloads/
|
|
27
|
+
eggs/
|
|
28
|
+
.eggs/
|
|
29
|
+
lib/
|
|
30
|
+
lib64/
|
|
31
|
+
parts/
|
|
32
|
+
sdist/
|
|
33
|
+
var/
|
|
34
|
+
wheels/
|
|
35
|
+
*.egg-info/
|
|
36
|
+
.installed.cfg
|
|
37
|
+
*.egg
|
|
38
|
+
MANIFEST
|
|
39
|
+
/venv/
|
|
40
|
+
|
|
41
|
+
# IDE and editor files
|
|
42
|
+
.vscode/
|
|
43
|
+
.idea/
|
|
44
|
+
/src/fastmcp_todo_server/.idea
|
|
45
|
+
/src/Omnispindle/.idea
|
|
46
|
+
.cursor/
|
|
47
|
+
.cursorrules
|
|
48
|
+
*.swp
|
|
49
|
+
*.swo
|
|
50
|
+
*~
|
|
51
|
+
|
|
52
|
+
# Testing and cache
|
|
53
|
+
.pytest_cache/
|
|
54
|
+
.coverage
|
|
55
|
+
htmlcov/
|
|
56
|
+
.tox/
|
|
57
|
+
.cache
|
|
58
|
+
|
|
59
|
+
# Logs
|
|
60
|
+
*.log
|
|
61
|
+
logs/
|
|
62
|
+
|
|
63
|
+
# OS generated files
|
|
64
|
+
.DS_Store
|
|
65
|
+
.DS_Store?
|
|
66
|
+
._*
|
|
67
|
+
.Spotlight-V100
|
|
68
|
+
.Trashes
|
|
69
|
+
ehthumbs.db
|
|
70
|
+
Thumbs.db
|
|
71
|
+
|
|
72
|
+
# Node.js (from previous experiments)
|
|
73
|
+
/node_modules
|
|
74
|
+
/omnispindle-auth/node_modules
|
|
75
|
+
/omnispindle-auth/src-tauri
|
|
76
|
+
|
|
77
|
+
# SpecStory
|
|
78
|
+
/.specstory
|
|
79
|
+
.specstory/.what-is-this.md
|
|
80
|
+
|
|
81
|
+
# Temporary files
|
|
82
|
+
*.tmp
|
|
83
|
+
*.temp
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: omnispindle
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: API-first MCP Todo Server for AI agents with Auth0 integration
|
|
5
|
+
Project-URL: Homepage, https://github.com/DanEdens/Omnispindle
|
|
6
|
+
Project-URL: Repository, https://github.com/DanEdens/Omnispindle.git
|
|
7
|
+
Project-URL: Issues, https://github.com/DanEdens/Omnispindle/issues
|
|
8
|
+
Project-URL: Documentation, https://github.com/DanEdens/Omnispindle/blob/main/README.md
|
|
9
|
+
Author-email: Dan Edens <danedens31@gmail.com>
|
|
10
|
+
Maintainer-email: Dan Edens <danedens31@gmail.com>
|
|
11
|
+
License: MIT
|
|
12
|
+
Keywords: ai-agents,api-first,auth0,fastmcp,madness-interactive,mcp,model-context-protocol,task-management,todo
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Environment :: Web Environment
|
|
16
|
+
Classifier: Framework :: FastAPI
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
25
|
+
Classifier: Topic :: Office/Business :: Scheduling
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
27
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
28
|
+
Requires-Python: >=3.11
|
|
29
|
+
Requires-Dist: fastmcp>=0.1.0
|
|
30
|
+
Requires-Dist: httpx>=0.23.0
|
|
31
|
+
Requires-Dist: numpy>=1.20.0
|
|
32
|
+
Requires-Dist: paho-mqtt>=2.0.0
|
|
33
|
+
Requires-Dist: pymongo>=4.0.0
|
|
34
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
35
|
+
Requires-Dist: python-dotenv>=0.19.0
|
|
36
|
+
Requires-Dist: python-jose>=3.3.0
|
|
37
|
+
Requires-Dist: starlette>=0.17.1
|
|
38
|
+
Requires-Dist: uvicorn>=0.17.0
|
|
39
|
+
Provides-Extra: ai
|
|
40
|
+
Requires-Dist: lmstudio; extra == 'ai'
|
|
41
|
+
Requires-Dist: scikit-learn>=1.0.0; extra == 'ai'
|
|
42
|
+
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: black>=22.0.0; extra == 'dev'
|
|
44
|
+
Requires-Dist: isort>=5.10.0; extra == 'dev'
|
|
45
|
+
Requires-Dist: mypy>=1.0.0; extra == 'dev'
|
|
46
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
|
|
47
|
+
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
|
48
|
+
Description-Content-Type: text/markdown
|
|
49
|
+
|
|
50
|
+
# Omnispindle
|
|
51
|
+
|
|
52
|
+
**FastMCP-based task and knowledge management system for AI agents**
|
|
53
|
+
|
|
54
|
+
Omnispindle is the coordination layer of the Madness Interactive ecosystem. It provides standardized MCP tools for todo management, lesson capture, and cross-project coordination that AI agents can use to actually get work done.
|
|
55
|
+
|
|
56
|
+
## What it does
|
|
57
|
+
|
|
58
|
+
**For AI Agents:**
|
|
59
|
+
- Add, query, update, and complete todos with full audit logging
|
|
60
|
+
- Capture and search lessons learned across projects
|
|
61
|
+
- Access project-aware context and explanations
|
|
62
|
+
- Coordinate work across the Madness Interactive ecosystem
|
|
63
|
+
|
|
64
|
+
**For Humans:**
|
|
65
|
+
- Visual dashboard through [Inventorium](../Inventorium)
|
|
66
|
+
- Real-time updates via MQTT
|
|
67
|
+
- Claude Desktop integration via MCP
|
|
68
|
+
- Project-aware working directories
|
|
69
|
+
|
|
70
|
+
**For the Future:**
|
|
71
|
+
- Terraria mod integration (tools as inventory items - yes, really)
|
|
72
|
+
- SwarmDesk 3D workspace coordination
|
|
73
|
+
- Game-like AI context management for all skill levels
|
|
74
|
+
|
|
75
|
+
## Installation
|
|
76
|
+
|
|
77
|
+
### 📦 PyPI Installation (Recommended)
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Install from PyPI
|
|
81
|
+
pip install omnispindle
|
|
82
|
+
|
|
83
|
+
# Run the MCP stdio server
|
|
84
|
+
omnispindle-stdio
|
|
85
|
+
|
|
86
|
+
# Or run the web server
|
|
87
|
+
omnispindle
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Available CLI commands after installation:
|
|
91
|
+
- `omnispindle` - Web server for authenticated endpoints
|
|
92
|
+
- `omnispindle-server` - Alias for web server
|
|
93
|
+
- `omnispindle-stdio` - MCP stdio server for Claude Desktop
|
|
94
|
+
|
|
95
|
+
### 🚀 Claude Desktop Integration (Zero Config!)
|
|
96
|
+
|
|
97
|
+
Add to your `claude_desktop_config.json`:
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"mcpServers": {
|
|
102
|
+
"omnispindle": {
|
|
103
|
+
"command": "omnispindle-stdio",
|
|
104
|
+
"env": {
|
|
105
|
+
"OMNISPINDLE_MODE": "api",
|
|
106
|
+
"OMNISPINDLE_TOOL_LOADOUT": "basic",
|
|
107
|
+
"MCP_USER_EMAIL": "your-email@example.com"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**That's it!** The first time you use an Omnispindle tool:
|
|
115
|
+
|
|
116
|
+
1. 🌐 Your browser opens automatically for Auth0 login
|
|
117
|
+
2. 🔐 Log in with Google (or Auth0 credentials)
|
|
118
|
+
3. ✅ Token is saved locally for future use
|
|
119
|
+
4. 🎯 All MCP tools work seamlessly with your authenticated context
|
|
120
|
+
|
|
121
|
+
No tokens to copy, no manual config files, no complex setup!
|
|
122
|
+
|
|
123
|
+
### 🛠 Development Installation
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Clone the repository
|
|
127
|
+
git clone https://github.com/DanEdens/Omnispindle.git
|
|
128
|
+
cd Omnispindle
|
|
129
|
+
|
|
130
|
+
# Install dependencies
|
|
131
|
+
pip install -r requirements.txt
|
|
132
|
+
|
|
133
|
+
# Run the MCP server
|
|
134
|
+
python -m src.Omnispindle.stdio_server
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
For more details, see the [MCP Client Auth Guide](./docs/MCP_CLIENT_AUTH.md).
|
|
138
|
+
|
|
139
|
+
## Architecture
|
|
140
|
+
|
|
141
|
+
Omnispindle v1.0.0 features a modern API-first architecture:
|
|
142
|
+
|
|
143
|
+
### 🏗 Core Components
|
|
144
|
+
- **FastMCP Server** - High-performance MCP implementation with stdio/HTTP transports
|
|
145
|
+
- **API-First Design** - HTTP calls to `madnessinteractive.cc/api` (recommended)
|
|
146
|
+
- **Hybrid Mode** - API-first with local database fallback for reliability
|
|
147
|
+
- **Zero-Config Auth** - Automatic Auth0 device flow authentication
|
|
148
|
+
- **Tool Loadouts** - Configurable tool sets to reduce AI agent token usage
|
|
149
|
+
|
|
150
|
+
### 🔄 Operation Modes
|
|
151
|
+
- **`api`** - HTTP API calls only (recommended for production)
|
|
152
|
+
- **`hybrid`** - API-first with MongoDB fallback (default)
|
|
153
|
+
- **`local`** - Direct MongoDB connections (legacy mode)
|
|
154
|
+
- **`auto`** - Automatically choose best performing mode
|
|
155
|
+
|
|
156
|
+
### 🔐 Authentication & Security
|
|
157
|
+
- **Auth0 Integration** - JWT tokens from device flow authentication
|
|
158
|
+
- **API Key Support** - Alternative authentication method
|
|
159
|
+
- **User Isolation** - All data scoped to authenticated user context
|
|
160
|
+
- **Git-secrets Protection** - Automated credential scanning and prevention
|
|
161
|
+
|
|
162
|
+
## Configuration
|
|
163
|
+
|
|
164
|
+
### 🎛 Environment Variables
|
|
165
|
+
|
|
166
|
+
**Operation Mode**:
|
|
167
|
+
- `OMNISPINDLE_MODE` - `api`, `hybrid`, `local`, `auto` (default: `hybrid`)
|
|
168
|
+
- `OMNISPINDLE_TOOL_LOADOUT` - Tool loadout configuration (default: `full`)
|
|
169
|
+
- `OMNISPINDLE_FALLBACK_ENABLED` - Enable fallback in hybrid mode (default: `true`)
|
|
170
|
+
|
|
171
|
+
**Authentication**:
|
|
172
|
+
- `MADNESS_API_URL` - API base URL (default: `https://madnessinteractive.cc/api`)
|
|
173
|
+
- `MADNESS_AUTH_TOKEN` - JWT token from Auth0 device flow
|
|
174
|
+
- `MADNESS_API_KEY` - API key alternative authentication
|
|
175
|
+
- `MCP_USER_EMAIL` - User email for context isolation
|
|
176
|
+
|
|
177
|
+
**Local Database (hybrid/local modes)**:
|
|
178
|
+
- `MONGODB_URI` - MongoDB connection string
|
|
179
|
+
- `MONGODB_DB` - Database name (default: `swarmonomicon`)
|
|
180
|
+
- `MQTT_HOST` / `MQTT_PORT` - MQTT broker settings
|
|
181
|
+
|
|
182
|
+
### 🎯 Tool Loadouts
|
|
183
|
+
|
|
184
|
+
Configure `OMNISPINDLE_TOOL_LOADOUT` to control available functionality:
|
|
185
|
+
|
|
186
|
+
- **`full`** - All 22 tools available (default)
|
|
187
|
+
- **`basic`** - Essential todo management (7 tools)
|
|
188
|
+
- **`minimal`** - Core functionality only (4 tools)
|
|
189
|
+
- **`lessons`** - Knowledge management focus (7 tools)
|
|
190
|
+
- **`admin`** - Administrative tools (6 tools)
|
|
191
|
+
- **`hybrid_test`** - Testing hybrid functionality (6 tools)
|
|
192
|
+
|
|
193
|
+
## Integration
|
|
194
|
+
|
|
195
|
+
Part of the Madness Interactive ecosystem:
|
|
196
|
+
- **Inventorium** - Web dashboard and 3D workspace
|
|
197
|
+
- **SwarmDesk** - Project-specific AI environments
|
|
198
|
+
- **Terraria Integration** - Game-based AI interaction (coming soon)
|
|
199
|
+
|
|
200
|
+
## Development
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
# Run tests
|
|
204
|
+
pytest tests/
|
|
205
|
+
|
|
206
|
+
# Start STDIO MCP server (for Claude Desktop)
|
|
207
|
+
python stdio_main.py
|
|
208
|
+
|
|
209
|
+
# Start HTTP MCP server (for remote access)
|
|
210
|
+
python -m src.Omnispindle
|
|
211
|
+
|
|
212
|
+
# Check tool registration
|
|
213
|
+
python -c "from src.Omnispindle.stdio_server import OmniSpindleStdioServer; print(len(OmniSpindleStdioServer().server._tools))"
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Production Deployment
|
|
217
|
+
|
|
218
|
+
### Option 1: Local STDIO (Claude Desktop)
|
|
219
|
+
|
|
220
|
+
For local development and use with clients like Claude Desktop, the `stdio` server is recommended. It now supports secure authentication via Auth0 tokens.
|
|
221
|
+
|
|
222
|
+
1. **Get Your Auth0 Token**: Follow the instructions in the [MCP Client Auth Guide](./docs/MCP_CLIENT_AUTH.md).
|
|
223
|
+
|
|
224
|
+
2. **Configure Claude Desktop**: Update your `claude_desktop_config.json`:
|
|
225
|
+
|
|
226
|
+
```json
|
|
227
|
+
{
|
|
228
|
+
"mcpServers": {
|
|
229
|
+
"omnispindle": {
|
|
230
|
+
"command": "python",
|
|
231
|
+
"args": ["-m", "src.Omnispindle.stdio_server"],
|
|
232
|
+
"cwd": "/path/to/Omnispindle",
|
|
233
|
+
"env": {
|
|
234
|
+
"AUTH0_TOKEN": "your_auth0_token_here",
|
|
235
|
+
"OMNISPINDLE_TOOL_LOADOUT": "basic"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
This is now the preferred and most secure way to use Omnispindle with local MCP clients.
|
|
243
|
+
|
|
244
|
+
### Option 2: Remote HTTP (Cloudflare Protected)
|
|
245
|
+
```bash
|
|
246
|
+
# Start HTTP server
|
|
247
|
+
python -m src.Omnispindle
|
|
248
|
+
|
|
249
|
+
# Deploy infrastructure
|
|
250
|
+
cd OmniTerraformer/
|
|
251
|
+
./deploy.sh
|
|
252
|
+
```
|
|
253
|
+
Configure MCP client:
|
|
254
|
+
```json
|
|
255
|
+
{
|
|
256
|
+
"mcpServers": {
|
|
257
|
+
"omnispindle": {
|
|
258
|
+
"command": "mcp-remote",
|
|
259
|
+
"args": ["https://madnessinteractive.cc/mcp/"]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
## Privacy & Security
|
|
266
|
+
|
|
267
|
+
**This repository contains sensitive configurations:**
|
|
268
|
+
- Auth0 client credentials and domain settings
|
|
269
|
+
- Database connection strings and API endpoints
|
|
270
|
+
- MCP tool implementations with business logic
|
|
271
|
+
- Infrastructure as Code with account identifiers
|
|
272
|
+
|
|
273
|
+
**For production use:**
|
|
274
|
+
- Fork this repository for your own organization
|
|
275
|
+
- Update all authentication providers and credentials
|
|
276
|
+
- Configure your own domain and SSL certificates
|
|
277
|
+
- Review and modify tool permissions as needed
|
|
278
|
+
|
|
279
|
+
**Not recommended for public deployment without modification.**
|
|
280
|
+
|
|
281
|
+
## Philosophy
|
|
282
|
+
|
|
283
|
+
We build tools that make AI agents actually useful for real work. Simple interfaces, robust backends, and enough ambition to make it interesting.
|
|
284
|
+
|
|
285
|
+
The todo management works today. The Terraria integration will make your kids better at prompt engineering than most adults. The 3D workspace will make remote work feel like science fiction.
|
|
286
|
+
|
|
287
|
+
But first: get your todos managed properly.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
*"Simple tools for complex minds, complex tools for simple minds"*
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# Omnispindle
|
|
2
|
+
|
|
3
|
+
**FastMCP-based task and knowledge management system for AI agents**
|
|
4
|
+
|
|
5
|
+
Omnispindle is the coordination layer of the Madness Interactive ecosystem. It provides standardized MCP tools for todo management, lesson capture, and cross-project coordination that AI agents can use to actually get work done.
|
|
6
|
+
|
|
7
|
+
## What it does
|
|
8
|
+
|
|
9
|
+
**For AI Agents:**
|
|
10
|
+
- Add, query, update, and complete todos with full audit logging
|
|
11
|
+
- Capture and search lessons learned across projects
|
|
12
|
+
- Access project-aware context and explanations
|
|
13
|
+
- Coordinate work across the Madness Interactive ecosystem
|
|
14
|
+
|
|
15
|
+
**For Humans:**
|
|
16
|
+
- Visual dashboard through [Inventorium](../Inventorium)
|
|
17
|
+
- Real-time updates via MQTT
|
|
18
|
+
- Claude Desktop integration via MCP
|
|
19
|
+
- Project-aware working directories
|
|
20
|
+
|
|
21
|
+
**For the Future:**
|
|
22
|
+
- Terraria mod integration (tools as inventory items - yes, really)
|
|
23
|
+
- SwarmDesk 3D workspace coordination
|
|
24
|
+
- Game-like AI context management for all skill levels
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
### 📦 PyPI Installation (Recommended)
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# Install from PyPI
|
|
32
|
+
pip install omnispindle
|
|
33
|
+
|
|
34
|
+
# Run the MCP stdio server
|
|
35
|
+
omnispindle-stdio
|
|
36
|
+
|
|
37
|
+
# Or run the web server
|
|
38
|
+
omnispindle
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Available CLI commands after installation:
|
|
42
|
+
- `omnispindle` - Web server for authenticated endpoints
|
|
43
|
+
- `omnispindle-server` - Alias for web server
|
|
44
|
+
- `omnispindle-stdio` - MCP stdio server for Claude Desktop
|
|
45
|
+
|
|
46
|
+
### 🚀 Claude Desktop Integration (Zero Config!)
|
|
47
|
+
|
|
48
|
+
Add to your `claude_desktop_config.json`:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"mcpServers": {
|
|
53
|
+
"omnispindle": {
|
|
54
|
+
"command": "omnispindle-stdio",
|
|
55
|
+
"env": {
|
|
56
|
+
"OMNISPINDLE_MODE": "api",
|
|
57
|
+
"OMNISPINDLE_TOOL_LOADOUT": "basic",
|
|
58
|
+
"MCP_USER_EMAIL": "your-email@example.com"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**That's it!** The first time you use an Omnispindle tool:
|
|
66
|
+
|
|
67
|
+
1. 🌐 Your browser opens automatically for Auth0 login
|
|
68
|
+
2. 🔐 Log in with Google (or Auth0 credentials)
|
|
69
|
+
3. ✅ Token is saved locally for future use
|
|
70
|
+
4. 🎯 All MCP tools work seamlessly with your authenticated context
|
|
71
|
+
|
|
72
|
+
No tokens to copy, no manual config files, no complex setup!
|
|
73
|
+
|
|
74
|
+
### 🛠 Development Installation
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Clone the repository
|
|
78
|
+
git clone https://github.com/DanEdens/Omnispindle.git
|
|
79
|
+
cd Omnispindle
|
|
80
|
+
|
|
81
|
+
# Install dependencies
|
|
82
|
+
pip install -r requirements.txt
|
|
83
|
+
|
|
84
|
+
# Run the MCP server
|
|
85
|
+
python -m src.Omnispindle.stdio_server
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
For more details, see the [MCP Client Auth Guide](./docs/MCP_CLIENT_AUTH.md).
|
|
89
|
+
|
|
90
|
+
## Architecture
|
|
91
|
+
|
|
92
|
+
Omnispindle v1.0.0 features a modern API-first architecture:
|
|
93
|
+
|
|
94
|
+
### 🏗 Core Components
|
|
95
|
+
- **FastMCP Server** - High-performance MCP implementation with stdio/HTTP transports
|
|
96
|
+
- **API-First Design** - HTTP calls to `madnessinteractive.cc/api` (recommended)
|
|
97
|
+
- **Hybrid Mode** - API-first with local database fallback for reliability
|
|
98
|
+
- **Zero-Config Auth** - Automatic Auth0 device flow authentication
|
|
99
|
+
- **Tool Loadouts** - Configurable tool sets to reduce AI agent token usage
|
|
100
|
+
|
|
101
|
+
### 🔄 Operation Modes
|
|
102
|
+
- **`api`** - HTTP API calls only (recommended for production)
|
|
103
|
+
- **`hybrid`** - API-first with MongoDB fallback (default)
|
|
104
|
+
- **`local`** - Direct MongoDB connections (legacy mode)
|
|
105
|
+
- **`auto`** - Automatically choose best performing mode
|
|
106
|
+
|
|
107
|
+
### 🔐 Authentication & Security
|
|
108
|
+
- **Auth0 Integration** - JWT tokens from device flow authentication
|
|
109
|
+
- **API Key Support** - Alternative authentication method
|
|
110
|
+
- **User Isolation** - All data scoped to authenticated user context
|
|
111
|
+
- **Git-secrets Protection** - Automated credential scanning and prevention
|
|
112
|
+
|
|
113
|
+
## Configuration
|
|
114
|
+
|
|
115
|
+
### 🎛 Environment Variables
|
|
116
|
+
|
|
117
|
+
**Operation Mode**:
|
|
118
|
+
- `OMNISPINDLE_MODE` - `api`, `hybrid`, `local`, `auto` (default: `hybrid`)
|
|
119
|
+
- `OMNISPINDLE_TOOL_LOADOUT` - Tool loadout configuration (default: `full`)
|
|
120
|
+
- `OMNISPINDLE_FALLBACK_ENABLED` - Enable fallback in hybrid mode (default: `true`)
|
|
121
|
+
|
|
122
|
+
**Authentication**:
|
|
123
|
+
- `MADNESS_API_URL` - API base URL (default: `https://madnessinteractive.cc/api`)
|
|
124
|
+
- `MADNESS_AUTH_TOKEN` - JWT token from Auth0 device flow
|
|
125
|
+
- `MADNESS_API_KEY` - API key alternative authentication
|
|
126
|
+
- `MCP_USER_EMAIL` - User email for context isolation
|
|
127
|
+
|
|
128
|
+
**Local Database (hybrid/local modes)**:
|
|
129
|
+
- `MONGODB_URI` - MongoDB connection string
|
|
130
|
+
- `MONGODB_DB` - Database name (default: `swarmonomicon`)
|
|
131
|
+
- `MQTT_HOST` / `MQTT_PORT` - MQTT broker settings
|
|
132
|
+
|
|
133
|
+
### 🎯 Tool Loadouts
|
|
134
|
+
|
|
135
|
+
Configure `OMNISPINDLE_TOOL_LOADOUT` to control available functionality:
|
|
136
|
+
|
|
137
|
+
- **`full`** - All 22 tools available (default)
|
|
138
|
+
- **`basic`** - Essential todo management (7 tools)
|
|
139
|
+
- **`minimal`** - Core functionality only (4 tools)
|
|
140
|
+
- **`lessons`** - Knowledge management focus (7 tools)
|
|
141
|
+
- **`admin`** - Administrative tools (6 tools)
|
|
142
|
+
- **`hybrid_test`** - Testing hybrid functionality (6 tools)
|
|
143
|
+
|
|
144
|
+
## Integration
|
|
145
|
+
|
|
146
|
+
Part of the Madness Interactive ecosystem:
|
|
147
|
+
- **Inventorium** - Web dashboard and 3D workspace
|
|
148
|
+
- **SwarmDesk** - Project-specific AI environments
|
|
149
|
+
- **Terraria Integration** - Game-based AI interaction (coming soon)
|
|
150
|
+
|
|
151
|
+
## Development
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Run tests
|
|
155
|
+
pytest tests/
|
|
156
|
+
|
|
157
|
+
# Start STDIO MCP server (for Claude Desktop)
|
|
158
|
+
python stdio_main.py
|
|
159
|
+
|
|
160
|
+
# Start HTTP MCP server (for remote access)
|
|
161
|
+
python -m src.Omnispindle
|
|
162
|
+
|
|
163
|
+
# Check tool registration
|
|
164
|
+
python -c "from src.Omnispindle.stdio_server import OmniSpindleStdioServer; print(len(OmniSpindleStdioServer().server._tools))"
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Production Deployment
|
|
168
|
+
|
|
169
|
+
### Option 1: Local STDIO (Claude Desktop)
|
|
170
|
+
|
|
171
|
+
For local development and use with clients like Claude Desktop, the `stdio` server is recommended. It now supports secure authentication via Auth0 tokens.
|
|
172
|
+
|
|
173
|
+
1. **Get Your Auth0 Token**: Follow the instructions in the [MCP Client Auth Guide](./docs/MCP_CLIENT_AUTH.md).
|
|
174
|
+
|
|
175
|
+
2. **Configure Claude Desktop**: Update your `claude_desktop_config.json`:
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"mcpServers": {
|
|
180
|
+
"omnispindle": {
|
|
181
|
+
"command": "python",
|
|
182
|
+
"args": ["-m", "src.Omnispindle.stdio_server"],
|
|
183
|
+
"cwd": "/path/to/Omnispindle",
|
|
184
|
+
"env": {
|
|
185
|
+
"AUTH0_TOKEN": "your_auth0_token_here",
|
|
186
|
+
"OMNISPINDLE_TOOL_LOADOUT": "basic"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
This is now the preferred and most secure way to use Omnispindle with local MCP clients.
|
|
194
|
+
|
|
195
|
+
### Option 2: Remote HTTP (Cloudflare Protected)
|
|
196
|
+
```bash
|
|
197
|
+
# Start HTTP server
|
|
198
|
+
python -m src.Omnispindle
|
|
199
|
+
|
|
200
|
+
# Deploy infrastructure
|
|
201
|
+
cd OmniTerraformer/
|
|
202
|
+
./deploy.sh
|
|
203
|
+
```
|
|
204
|
+
Configure MCP client:
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"mcpServers": {
|
|
208
|
+
"omnispindle": {
|
|
209
|
+
"command": "mcp-remote",
|
|
210
|
+
"args": ["https://madnessinteractive.cc/mcp/"]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Privacy & Security
|
|
217
|
+
|
|
218
|
+
**This repository contains sensitive configurations:**
|
|
219
|
+
- Auth0 client credentials and domain settings
|
|
220
|
+
- Database connection strings and API endpoints
|
|
221
|
+
- MCP tool implementations with business logic
|
|
222
|
+
- Infrastructure as Code with account identifiers
|
|
223
|
+
|
|
224
|
+
**For production use:**
|
|
225
|
+
- Fork this repository for your own organization
|
|
226
|
+
- Update all authentication providers and credentials
|
|
227
|
+
- Configure your own domain and SSL certificates
|
|
228
|
+
- Review and modify tool permissions as needed
|
|
229
|
+
|
|
230
|
+
**Not recommended for public deployment without modification.**
|
|
231
|
+
|
|
232
|
+
## Philosophy
|
|
233
|
+
|
|
234
|
+
We build tools that make AI agents actually useful for real work. Simple interfaces, robust backends, and enough ambition to make it interesting.
|
|
235
|
+
|
|
236
|
+
The todo management works today. The Terraria integration will make your kids better at prompt engineering than most adults. The 3D workspace will make remote work feel like science fiction.
|
|
237
|
+
|
|
238
|
+
But first: get your todos managed properly.
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
*"Simple tools for complex minds, complex tools for simple minds"*
|