Skip to content

Conversation

@alexhancock
Copy link
Collaborator

We shouldn't use something like ~/goose/crates/goose/tests/tmp/goose.txt in an MCP integration test, as the final path will be different on each developer who may want to record's laptop, causing churn. I also ran into an issue because I don't store goose in my home dir.

This makes it use an absolute path to a temp dir on the machine.

@alexhancock alexhancock requested a review from jamadeo October 29, 2025 16:01
CallToolRequestParam { name: "text_editor".into(), arguments: Some(object!({
"command": "str_replace",
"path": "~/goose/crates/goose/tests/tmp/goose.txt",
"path": "/tmp/goose_test/goose.txt",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could just delete these tests. The purpose of the snapshot test was to verify the protocol messaging, not so much the servers themselves. The developer mcp server should probably have its own integration test instead

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the logic, yeah. I think I'll merge this as an improvement on current state, then we should consider quality integration tests for the developer and other built in servers.

@alexhancock alexhancock force-pushed the alexhancock/mcp-integration-test-paths branch from 0130f06 to ae5ffe4 Compare October 29, 2025 16:14
@alexhancock alexhancock merged commit 4ee7644 into main Oct 29, 2025
12 of 14 checks passed
@alexhancock alexhancock deleted the alexhancock/mcp-integration-test-paths branch October 29, 2025 16:50
fbalicchia pushed a commit to fbalicchia/goose that referenced this pull request Nov 7, 2025
Signed-off-by: fbalicchia <fbalicchia@gmail.com>
BlairAllan pushed a commit to BlairAllan/goose that referenced this pull request Nov 29, 2025
Signed-off-by: Blair Allan <Blairallan@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants