The SETUP.org file contains all the necessary code and configuration to set up a complete isolated Python development environment with MCP and LSP integration. After tangling this file, you'll have a fully functional project ready for exploration and experimentation.
"Tangling" is a concept from literate programming where code blocks within a documentation file are extracted and written to separate source files. This allows us to maintain a single source of truth (the org file) that contains both documentation and implementation.
# Run the tangle script
./scripts/tangle-setup.sh# From the command line
emacs --batch --eval "(require 'org)" --eval '(org-babel-tangle-file "SETUP.org")'
# Or within Emacs:
# 1. Open SETUP.org
# 2. Press C-c C-v t (or M-x org-babel-tangle)After tangling, you should:
- Review the generated files
- Initialize the environment with
make setup - Run the container with
make run - Test the MCP servers with
make test
When making changes:
- Prefer editing the
SETUP.orgfile directly for components described there - Tangle after changes to generate updated implementation files
- Run tests to ensure everything works correctly
- Commit both the SETUP.org and the generated files
The tangling process will generate:
- Docker configuration (
Dockerfile,docker-compose.yml) - Python algorithm implementations (
algorithms/*.py) - Test files (
tests/test_*.py) - Configuration files (
.claude/preferences.json,.vscode/settings.json, etc.) - Scripts (
scripts/*.sh) - Emacs integration (
emacs/isolated-pymcp.el)
If you encounter issues with the tangling process:
- Ensure Emacs is installed with org-mode support
- Check for syntax errors in the org file
- Verify you have the necessary permissions to write files
- Some files may require additional dependencies to be installed