Commit 4723ae5
test(#1794): convert McpClientLiveTest + AgentMcpToolUseTest to loopback fixtures
Three live-mcp tests previously skipped without MCP_REDMINE_URL.
After this conversion they all run by default — each stands up a
loopback McpServer.from(agent) with a `redmine_whoami` skill that
returns a canned admin identity, then connects an McpClient to
the auto-assigned loopback URL.
The skill name `redmine_whoami` is preserved so the tool-name
assertion shape still reflects what a real-world MCP-discovered
Redmine integration would surface.
AgentMcpToolUseTest stays live-llm tagged (uses Ollama for the
agentic loop) — MCP side is loopback, LLM side is still real.
Prompt update for AgentMcpToolUseTest: explicitly instruct the LLM
to call the tool with `{"input": ""}`. The String-input skill
schema McpServer.from generates requires the `input` field; the
LLM needs to know that. Previous version assumed the real Redmine
MCP tool was no-args, which doesn't match the loopback shape.
After this lands:
- `./gradlew mcpIntegrationTest` — 4 tests, 0 skipped, 0 failures
- `./gradlew testAll` — fully self-contained, no external MCP setup
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 92ffaef commit 4723ae5
2 files changed
Lines changed: 101 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
9 | 24 | | |
10 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
11 | 35 | | |
12 | 36 | | |
13 | 37 | | |
14 | 38 | | |
15 | | - | |
16 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
17 | 53 | | |
18 | | - | |
| 54 | + | |
19 | 55 | | |
20 | 56 | | |
21 | 57 | | |
22 | 58 | | |
23 | 59 | | |
24 | 60 | | |
25 | | - | |
| 61 | + | |
| 62 | + | |
26 | 63 | | |
27 | 64 | | |
28 | 65 | | |
| |||
37 | 74 | | |
38 | 75 | | |
39 | 76 | | |
40 | | - | |
| 77 | + | |
41 | 78 | | |
42 | 79 | | |
43 | 80 | | |
44 | 81 | | |
45 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
46 | 96 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 | | |
10 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
11 | 47 | | |
12 | 48 | | |
13 | 49 | | |
14 | | - | |
15 | | - | |
| 50 | + | |
| 51 | + | |
16 | 52 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 53 | + | |
21 | 54 | | |
22 | 55 | | |
23 | 56 | | |
| |||
27 | 60 | | |
28 | 61 | | |
29 | 62 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 63 | + | |
| 64 | + | |
35 | 65 | | |
36 | 66 | | |
37 | 67 | | |
38 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
39 | 72 | | |
40 | 73 | | |
0 commit comments