Skip to content

Commit 9f3bd4f

Browse files
remove input code from django_shell output (#23)
1 parent 5c6d871 commit 9f3bd4f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1818

1919
## [Unreleased]
2020

21+
### Removed
22+
23+
- Removed redundant input field from `django_shell` tool response to reduce output verbosity.
24+
2125
## [0.6.0]
2226

2327
### Added

src/mcp_django_shell/output.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
class DjangoShellOutput(BaseModel):
1919
status: ExecutionStatus
20-
input: str
2120
output: Output
2221
stdout: str
2322
stderr: str
@@ -44,7 +43,6 @@ def from_result(cls, result: Result) -> DjangoShellOutput:
4443

4544
return cls(
4645
status=ExecutionStatus.from_output(output),
47-
input=result.code,
4846
output=output,
4947
stdout=result.stdout,
5048
stderr=result.stderr,

tests/test_output.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def test_django_shell_output_from_expression_result():
2222
output = DjangoShellOutput.from_result(result)
2323

2424
assert output.status == ExecutionStatus.SUCCESS
25-
assert output.input == "2 + 2"
2625
assert isinstance(output.output, ExpressionOutput)
2726
assert output.output.value == 4
2827
assert output.output.value_type is int

0 commit comments

Comments
 (0)