Skip to content

[问题] 導入了swagger,如何支持apikey和host? #256

@davix

Description

@davix

⚠️ 验证

  • 我已经搜索过 issues,确信这不是一个重复的问题。

❓ 您的问题

通過導入swagger創建了mcp-server,面臨兩個問題:

  1. swagger裡沒有後端服務信息,這是常見的,host 參數可以忽略。
  2. swagger裡需要apikey authentication。正常在swagger中用"Try it out"時是手工填apikey
    由於沒有這兩個信息,mcp-server的tool執行失敗。

第一個問題我臨時在導入的swagger中加入 host配置,寫死後端服務的host是可以的。
但第二個問題還未能解決。
請教是使用方法不對嗎?如何解決?謝謝

📚 上下文

No response

🔗 相关资源

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions