fix #557: guide permission-driven VPD flow
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<main class="container page-shell">
|
||||
<section class="page-heading">
|
||||
<h1>MCP Client Demo</h1>
|
||||
<p>백오피스 Java client가 MCP message endpoint를 호출해 initialize, tools/list, tools/call 결과를 확인합니다.</p>
|
||||
<p>백오피스 Java client가 MCP message endpoint의 initialize/tools/list 계약을 확인합니다. 실제 tool 선택과 호출은 reasoning 결과를 받은 MCP client가 담당합니다.</p>
|
||||
</section>
|
||||
|
||||
<section th:if="${runtimeError}" class="alert alert-warning">
|
||||
@@ -18,29 +18,10 @@
|
||||
<h2>Java Client 호출</h2>
|
||||
<form hx-post="/mcp-client-demo" hx-target="#mcp-client-demo-result" hx-swap="innerHTML" class="form-grid">
|
||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}">
|
||||
<label>
|
||||
Context Path
|
||||
<input class="form-control" name="contextPath" value="vpd-live" pattern="[A-Za-z0-9][A-Za-z0-9_-]{0,63}" required>
|
||||
</label>
|
||||
<label>
|
||||
Tool
|
||||
<select class="form-select" name="toolName">
|
||||
<option value="">tools/list만 실행</option>
|
||||
<option th:each="tool : ${tools}"
|
||||
th:value="${tool.name()}"
|
||||
th:text="${tool.name() + ' / ' + tool.displayName()}"></option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
Limit
|
||||
<input class="form-control" name="limit" type="number" min="1" max="500" value="50">
|
||||
</label>
|
||||
<label class="span-2">
|
||||
Bearer Token 원문
|
||||
<input class="form-control" name="bearerToken" type="password" autocomplete="off"
|
||||
placeholder="비우면 tools/call은 실행하지 않습니다.">
|
||||
</label>
|
||||
<button class="btn rw-btn-primary" type="submit">Java Client 실행</button>
|
||||
<div class="alert alert-info span-2 mb-0">
|
||||
이 화면은 고정된 기본 MCP endpoint에서 initialize와 tools/list만 확인합니다. 질문 기반 tool 선택·Bearer Token 전달·tools/call은 MCP Reasoning 또는 외부 MCP client 흐름에서 수행합니다.
|
||||
</div>
|
||||
<button class="btn rw-btn-primary" type="submit">MCP 계약 확인</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
@@ -53,17 +34,17 @@
|
||||
<div class="mcp-service-item">
|
||||
<span>1</span>
|
||||
<strong><code>initialize</code></strong>
|
||||
<small>context path가 반영된 MCP serverInfo와 tools capability를 확인합니다.</small>
|
||||
<small>기본 MCP serverInfo와 tools capability를 확인합니다.</small>
|
||||
</div>
|
||||
<div class="mcp-service-item">
|
||||
<span>2</span>
|
||||
<strong><code>tools/list</code></strong>
|
||||
<small>현재 보호 객체에서 생성된 ORDS query tool 목록을 조회합니다.</small>
|
||||
<small>현재 보호 객체에서 생성된 ORDS query tool과 설명/schema를 조회합니다.</small>
|
||||
</div>
|
||||
<div class="mcp-service-item">
|
||||
<span>3</span>
|
||||
<strong><code>tools/call</code></strong>
|
||||
<small>Bearer Token이 입력된 경우 선택한 tool을 호출해 ORDS/VPD 결과를 받습니다.</small>
|
||||
<small>tool 선택은 reasoning 이후 MCP client가 수행하므로 이 화면에서는 호출하지 않습니다.</small>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user