refactor: rename McpFunction attributes (subToolName -> name, parameterSchema -> inputSchema) and remove hardcoded API key

This commit is contained in:
jade
2026-07-11 01:13:20 +09:00
parent 1907743c79
commit d4232e6d7f
25 changed files with 37 additions and 42 deletions

View File

@@ -294,7 +294,7 @@
async function fetchTools() {
try {
const response = await fetch('/mcp/api/v1/tools/list', {
headers: { 'X-API-KEY': 'SHINHAN_MCP_TEST_KEY_9999' }
});
const data = await response.json();
@@ -426,7 +426,7 @@
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-KEY': 'SHINHAN_MCP_TEST_KEY_9999',
'X-Trace-Id': "MCP-REQ-" + Math.floor(Math.random() * 90000 + 10000),
'X-Agent-Id': document.getElementById('agentId').value,
'X-User-Prompt': encodeURIComponent(document.getElementById('userPrompt').value || document.getElementById('userPrompt').placeholder)