diff --git a/docs/mcp_integrations.md b/docs/mcp_integrations.md index 2ac7a5e..f54cd9f 100644 --- a/docs/mcp_integrations.md +++ b/docs/mcp_integrations.md @@ -18,11 +18,11 @@ ## APIs -### Get Information of MCP Server +### Get metadata of MCP Server **POST /api/mcp/server/metadata** -For stdio type: +For `stdio` type: ```json { "transport": "stdio", @@ -32,7 +32,7 @@ For stdio type: } ``` -For SSE type: +For `sse` type: ```json { "transport": "sse", diff --git a/docs/sse_integration_test.md b/docs/sse_integration_test.md deleted file mode 100644 index 1d00f84..0000000 --- a/docs/sse_integration_test.md +++ /dev/null @@ -1,68 +0,0 @@ -# SSE Integration Test - -## Auto Accepted Case -``` -curl --location 'http://localhost:8000/api/chat/stream' \ ---header 'Accept: */*' \ ---header 'Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7' \ ---header 'Cache-Control: no-cache' \ ---header 'Connection: keep-alive' \ ---header 'Content-Type: application/json' \ ---data '{ - "messages": [ - { - "role": "user", - "content": "what is mcp?" - } - ], - "thread_id": "test_thread_1", - "auto_accepted_plan": true -}' -``` - -## Human in the Loop Case - -### Initial Plan -``` -curl --location 'http://localhost:8000/api/chat/stream' \ ---header 'Accept: */*' \ ---header 'Accept-Language: en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7' \ ---header 'Cache-Control: no-cache' \ ---header 'Connection: keep-alive' \ ---header 'Content-Type: application/json' \ ---data '{ - "messages": [ - { - "role": "user", - "content": "what is mcp?" - } - ], - "thread_id": "test_thread_2", - "auto_accepted_plan": false -}' -``` - - -### Edit the plan -``` -{ - "messages": [ - { - "role": "user", - "content": "make the last step be comprehensive" - } - ], - "thread_id": "test_thread_2", - "auto_accepted_plan": false, - "interrupt_feedback": "edit_plan" -} -``` - -### Accept the plan -``` -{ - "thread_id": "test_thread_2", - "auto_accepted_plan": false, - "interrupt_feedback": "accepted" -} -``` \ No newline at end of file