Skip to content

Commit 95abf30

Browse files
authored
feat: get api key from request context (#159)
* feat: api keys can be pulled from request context * chore: naming * chore: naming * feat: pass through request context option * feat: keep behavior for now * chore: license header * chore: import
1 parent 277b4e7 commit 95abf30

3 files changed

Lines changed: 820 additions & 136 deletions

File tree

src/deepset_mcp/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ def main() -> None:
182182
tool_names = set(args.tools)
183183

184184
# Register tools based on configuration
185-
register_tools(mcp, workspace_mode, workspace, tool_names)
185+
register_tools(mcp, workspace_mode, workspace, tool_names, use_request_context=False)
186186

187187
# run with SSE transport (HTTP+Server-Sent Events)
188-
mcp.run(transport="stdio")
188+
mcp.run(transport="streamable-http")
189189

190190

191191
if __name__ == "__main__":

0 commit comments

Comments
 (0)