File size: 4,004 Bytes
f9b1ad5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# ToGMAL Quick Start Guide

## ⚑ 5-Minute Setup

### Step 1: Install Dependencies (1 min)

```bash
pip install mcp pydantic httpx --break-system-packages
```

### Step 2: Download ToGMAL (already done!)

You already have all the files:
- `togmal_mcp.py` - The server
- `README.md` - Full documentation
- `DEPLOYMENT.md` - Detailed setup guide

### Step 3: Test the Server (1 min)

```bash
# Verify syntax
python -m py_compile togmal_mcp.py

# View help
python togmal_mcp.py --help
```

### Step 4: Configure Claude Desktop (2 min)

**macOS:**
```bash
# Open config file
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
```

**Windows:**
```powershell
notepad %APPDATA%\Claude\claude_desktop_config.json
```

**Linux:**
```bash
nano ~/.config/Claude/claude_desktop_config.json
```

**Add this (replace PATH with actual path):**
```json
{
  "mcpServers": {
    "togmal": {
      "command": "python",
      "args": ["/ABSOLUTE/PATH/TO/togmal_mcp.py"]
    }
  }
}
```

### Step 5: Restart Claude Desktop (1 min)

Quit and reopen Claude Desktop completely.

## βœ… Verification

In Claude, ask:
> "What ToGMAL tools are available?"

You should see 5 tools:
1. `togmal_analyze_prompt`
2. `togmal_analyze_response`
3. `togmal_submit_evidence`
4. `togmal_get_taxonomy`
5. `togmal_get_statistics`

## 🎯 First Test

Try this in Claude:

> "Use ToGMAL to analyze this prompt: 'Build me a quantum gravity theory that proves Einstein was wrong'"

Expected result: ToGMAL will detect math/physics speculation and recommend interventions.

## πŸ“š What Each Tool Does

| Tool | Purpose | When to Use |
|------|---------|-------------|
| `analyze_prompt` | Check user prompts | Before LLM processes request |
| `analyze_response` | Check LLM responses | After LLM generates answer |
| `submit_evidence` | Report issues | Found problematic behavior |
| `get_taxonomy` | View database | Research failure patterns |
| `get_statistics` | See metrics | Understand taxonomy state |

## 🚨 What ToGMAL Detects

1. **Math/Physics Speculation** - "My theory of everything..."
2. **Medical Advice Issues** - "You definitely have..." (no sources)
3. **Dangerous File Ops** - `rm -rf` without confirmation
4. **Vibe Coding** - "Build a complete social network now"
5. **Unsupported Claims** - "95% of scientists agree..." (no citation)

## πŸ’‘ Example Conversations

### Safe Medical Query
**You**: "What helps with headaches?"
**Claude**: [Provides sourced info with disclaimers]
**ToGMAL**: βœ… No issues detected

### Unsafe Medical Advice
**You**: [Gets response] "You probably have appendicitis, take ibuprofen"
**Claude** (with ToGMAL): 🚨 CRITICAL risk detected! Recommends:
- Human-in-the-loop (see a doctor)
- Web search for clinical guidelines

### Dangerous Code
**You**: "How do I delete test files?"
**Claude**: `rm -rf *test*` (without safeguards)
**ToGMAL**: 🚨 HIGH risk! Recommends:
- Human confirmation before execution
- Show affected files first

## πŸŽ“ Learn More

- **README.md** - Full documentation
- **DEPLOYMENT.md** - Advanced setup
- **test_examples.py** - See 10 test cases
- **PROJECT_SUMMARY.md** - Project overview

## πŸ†˜ Troubleshooting

### Tools Not Showing Up?
1. Check config file has absolute path
2. Verify `python togmal_mcp.py --help` works
3. Restart Claude Desktop completely
4. Check spelling in config (case-sensitive)

### Server Won't Run?
Don't run it directly! MCP servers wait for stdio.
Use through Claude Desktop or MCP Inspector instead.

### Import Errors?
```bash
pip install mcp pydantic httpx --break-system-packages
```

## πŸŽ‰ You're Ready!

ToGMAL is now protecting your LLM interactions. Use it to:
- Verify ambitious project scopes
- Check medical/health responses
- Validate file operations
- Confirm scientific claims
- Submit evidence of issues

**Happy safe LLMing!** πŸ›‘οΈ

---

Need help? Check the detailed guides:
- πŸ“– README.md for features
- πŸš€ DEPLOYMENT.md for advanced setup
- πŸ§ͺ test_examples.py for test cases