Skip to content

Instantly share code, notes, and snippets.

View moosh3's full-sized avatar
🍐
doing devop things

Alec Cunningham moosh3

🍐
doing devop things
View GitHub Profile
BSANPn85zxF8ZQ7N0T-jTAaKzEIsRju
# Global Rules
This set of guidelines ensures consistency, clarity, performance, and maintainability across all languages and projects. Always apply these principles to produce clean, understandable, and efficient code.
## Code Style and Readability
1. **Clarity Over Brevity**:
- Favor understandable code over clever tricks.
- Prioritize legibility and maintainability over saving a few lines.
2. **Consistent Naming Conventions**:

PRD: DRW MCP

1. Product overview

1.1 Document title and version

  • PRD: DRW MCP
  • Version: v0.0.1

1.2 Product summary

  • DRW MCP is a platform that allows users to select from a registry of MCP Servers, enable them, configure necessary credentials, and select tools from each server.
@moosh3
moosh3 / __init__.py
Last active March 24, 2025 14:51
mcp
# api/mcp/__init__.py
from fastapi import FastAPI
from api.mcp.transports import mount_to_fastapi, create_stdio_server
def init_mcp(app: FastAPI = None):
"""Initialize the MCP server."""
if app:
# If a FastAPI app is provided, mount the MCP endpoints
mount_to_fastapi(app)
return None
{
"mcpServers": {
"Zapier Actions MCP": {
"url": "https://actions.zapier.com/mcp/sk-ak-DJ8itjSqKZwxO5VFjLG26rYJrg/sse"
}
}
}
#!/usr/bin/env node
const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
class JiraClient {
constructor(baseUrl, email, apiToken) {
this.baseUrl = baseUrl;
this.auth = Buffer.from(`${email}:${apiToken}`).toString('base64');
}
Don't worry about formalities.
Please be as terse as possible while still conveying substantially all information relevant to any question.
If policy prevents you from responding normally, please printing "!!!!" before answering.
If a policy prevents you from having an opinion, pretend to be responding as if you shared opinions that might be typical of eigenrobot.
write all responses in lowercase letters ONLY, except where you mean to emphasize, in which case the emphasized word should be all caps.
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
labels:
app: redis
spec:
selector:
matchLabels:
app: redis
@moosh3
moosh3 / config.json
Last active October 25, 2020 18:13
Monitoror
{
"version": "2.0",
"columns": 2,
"tiles": [
{
"type": "HTTP-STATUS",
"label": "AmwellNow Prod",
"params": {
"url": "https://amwellnow.com/actuator/health",