Commit Graph

3 Commits

Author SHA1 Message Date
Danglewood
f5bfa2c0e3 [Feature] Expand MCP Server Configurability (#7202)
* refactor mcp extension and expand capabilities

* update test

* test file name

* type definition

* missing docstring

* remove logger.info item not needed

* readme typo

* reload not available, bad example

* another reload

* add server prompts

* update readme with server-prompts

* readme update

* more readme

* add basic auth

* improve docstring in create_mcp_server

* linter

* No `Dict` import

* rename local

* remove a debugging raise statement

* Add py.typed marker

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2025-09-16 23:14:45 +00:00
Magnus
7b520e5f8a [BugFix] MCP - expose correct header for session id (#7160)
* [BugFix] MCP - expose correct header for session id

* Pin FastMCP to <2.9

The update casued problems with converting tools from OpenAPI specs

* Update default settings

* Add exclusion for all POST requests in route filtering

* fix compress input and output schemas with newer fastmcp versions

* Add unit tests for MCP server, utilities and settings

* add missing init file

* skip tests for python 3.9

* Add setup instructions for VS Code

* update fastmcp version and lock file

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: DidierRLopes <didierrlopes@gmail.com>
2025-07-12 22:26:15 +00:00
Magnus
e00cf0f142 [Feature] Add mcp_server to openbb_core api (#7094)
* [Feature] Add 'mcp_server' extention

* [Feature] Refactor of MCP server to FastMCP 2.0

- Also moves settings into the extention
- Refactors the management tool
- Add tool registry
- Use Argpars

* Enable all tools by default, fix linting and type issues

* Fix mcp CORS settings

* Fix linter errors

* Refactored load_settings_from_env + linting fix

* fix stdio transport, add lock file

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: DidierRLopes <didierrlopes@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2025-07-03 07:49:59 +00:00