user.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "toolSpecification": {
  3. "tools": [
  4. {
  5. "name": "getUserInfo",
  6. "description": "获取用户基本信息",
  7. "inputSchema": {
  8. "type": "object",
  9. "properties": {
  10. "userName": {
  11. "type": "string",
  12. "description": "用户姓名"
  13. }
  14. },
  15. "required": [
  16. "userName"
  17. ],
  18. "additionalProperties": false
  19. },
  20. "outputSchema": null
  21. }
  22. ],
  23. "toolsMeta": {
  24. "getUserInfo": {
  25. "enabled": true
  26. }
  27. }
  28. },
  29. "requestBodyTemplateForHttp": {
  30. "body": {
  31. "ask": {
  32. "name": "{userName}"
  33. }
  34. }
  35. },
  36. "responseBodyTemplateForMcp": {
  37. "body": "response.ask"
  38. },
  39. "endpoints": [
  40. {
  41. "protocol": "http",
  42. "address": "127.0.0.1",
  43. "port": 7777,
  44. "path": "/userinfo",
  45. "headers": [
  46. {
  47. "variables": {
  48. "token-xxx": {
  49. "value": "yujjkhgtyjjk"
  50. }
  51. }
  52. }
  53. ]
  54. }
  55. ]
  56. }