Refactor MCP server and enhance development environment
This commit refactors the MCP server implementation, updates the Dockerfile with new development tools and dependencies, introduces a Makefile for building and running the application, and adds utility modules for sandbox management and Ollama integration. The server name has also been updated from 'echo-server' to 'PMO-Crazy-coder' in the configuration.
This commit is contained in:
49
Notes/jj_to_json.md
Normal file
49
Notes/jj_to_json.md
Normal file
@@ -0,0 +1,49 @@
|
||||
```bash
|
||||
jj log | orla agent -m ollama:qwen3:0.6b \
|
||||
"
|
||||
Transform the following `jj log` output into JSON according to the given schema.
|
||||
|
||||
**Return only valid JSON, without any Markdown formatting :**
|
||||
- no backticks,
|
||||
- no code blocks,
|
||||
- no extra text
|
||||
|
||||
Schema:
|
||||
{
|
||||
\"type\": \"array\",
|
||||
\"items\": {
|
||||
\"type\": \"object\",
|
||||
\"properties\": {
|
||||
\"hash\": {\"type\": \"string\"},
|
||||
\"author\": {\"type\": \"string\"},
|
||||
\"date\": {\"type\": \"string\"},
|
||||
\"message\": {\"type\": \"string\"}
|
||||
},
|
||||
\"required\": [\"hash\", \"author\", \"date\", \"message\"]
|
||||
}
|
||||
}
|
||||
" | grep -v '```' | jq .
|
||||
```
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"hash": "252b5de3",
|
||||
"author": "nrrwwpms",
|
||||
"date": "2026-01-25 17:36:18",
|
||||
"message": "(no description set)"
|
||||
},
|
||||
{
|
||||
"hash": "9f9d9bc3",
|
||||
"author": "stxkzlul",
|
||||
"date": "2026-01-25 12:08:12",
|
||||
"message": "Ajout de Dockerfile et configuration MCP"
|
||||
},
|
||||
{
|
||||
"hash": "7412b51a",
|
||||
"author": "xnrxukn",
|
||||
"date": "2026-01-25 07:53:42",
|
||||
"message": "Initial commit"
|
||||
}
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user