Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .deepwork/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
.last_head_ref
job.schema.json

# Temporary files (but keep the directory via .gitkeep)
# Temporary files (tmp/.gitignore handles ignoring its own contents)
tmp/*
!tmp/.gitkeep
!tmp/.gitignore
4 changes: 4 additions & 0 deletions .deepwork/tmp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# But keep this .gitignore
!.gitignore
3 changes: 0 additions & 3 deletions .deepwork/tmp/.gitkeep

This file was deleted.

7 changes: 7 additions & 0 deletions src/deepwork/cli/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ def _serve_mcp(
tmp_dir = project_path / ".deepwork" / "tmp"
tmp_dir.mkdir(parents=True, exist_ok=True)

# Ensure .deepwork/tmp/.gitignore exists to keep tmp contents out of git
tmp_gitignore = tmp_dir / ".gitignore"
if not tmp_gitignore.exists():
tmp_gitignore.write_text(
"# Ignore everything in this directory\n*\n# But keep this .gitignore\n!.gitignore\n"
)

# Create and run server
from deepwork.jobs.mcp.server import create_server

Expand Down
Loading