Commit b551b0c
feat: mcp composer integration (#9506)
* encrypt oauth auth settings at rest
* [autofix.ci] apply automated fixes
* Fix rebase changes and add env to env server config
* Correctly unmask secretstr before encryption
* update mcp-composer args
* [autofix.ci] apply automated fixes
* ruff
* ruff
* ruff
* [autofix.ci] apply automated fixes
* ruff
* catch invalidtoken error
* ruff
* [autofix.ci] apply automated fixes
* ruff
* [autofix.ci] apply automated fixes
* ruff
* ruff
* [autofix.ci] apply automated fixes
* ruff
* [autofix.ci] apply automated fixes
* fix test
* Add initial mcp composer service and startup
* remove token url
* Register server on project creation
* WARN: fall back to superuser on no auth params, to allow mcp-composer to connect. also fixes race condition in server creatoin
* update sse url args
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* Add langflow api keys to the server configs
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* add port searching
* [autofix.ci] apply automated fixes
* Fix for dead servers - use devnull on subprocess to avoid pipe from filling up
* uvlock
* [autofix.ci] apply automated fixes
* Update composer startup behavior re: auth settings
* [autofix.ci] apply automated fixes
* fix some auth logic, add dynamic fetch of new url
* Clean up sse-url parameters
* [autofix.ci] apply automated fixes
* Only call composer url when composer is enabled
* [autofix.ci] apply automated fixes
* improve shutdown
* starter projects update
* [autofix.ci] apply automated fixes
* update logging
git push
* revert hack to auth mcp composer
* [autofix.ci] apply automated fixes
* Fix 500 on composer-url query
* [autofix.ci] apply automated fixes
* Update feature flag; update api key addition to aut-install
* [autofix.ci] apply automated fixes
* Fix composer url and re-add auth
* Changed needs_api_key logic
* Refactor use-get-composer-url
* remove python fallback for now, then pipe stderr to pipe
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* Changed api key logic to allow connection if not api key and auto login is off
* fix oauth addition to cmd
* restart server when auth values change
* Restart server on oauth values changes
* [autofix.ci] apply automated fixes
* Changed project port to be the same as OAuth port
* Changed endpoint to provide port_available
* add is_port_available prop
* Added port_available to request
* Edit mutation to not have linting errors
* Added port not available state to authentication
* [autofix.ci] apply automated fixes
* Added port and host to get composer url
* Invalidate project composer url queries
* Changed to display port and host that is not running
* Cleanup old port finding and some mypy fixes
* Add print, remove unused env var
* Use mcp-composer directly in client and a lot of fixes
* changed starter projects
* refactor mcp_projects to use always IP generated for WSL
* changed to check args -4 too on installed servers
* changed to just check if sse url is in args
* added member servers in gitignore
* add check for ff
* Handle secret request response cycle securely and add better logging
* Use asycn logger
* Add decorator to check if composer is enabled in settings
* more logging changes
* Much better handling of existing oauth servers when the flag is disabled on restart
* Reset oauth projects to apikey or none when composer flag is disabled
* fix url for api key auth
* Fix auth check; set project auth to api key when auto login disabled
* Ruff, comments, cleanup
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* Consolidate the auth handling since its used in two endpoints
* [autofix.ci] apply automated fixes
* Ruff
* [autofix.ci] apply automated fixes
* last ruff
* Update FE env var naming and dont unnecessarily decrypt auth settings at times
* update feature flag usage - remove mcp composer
* [autofix.ci] apply automated fixes
* Update timeout methods to have more reliable startup
* more feature flag changes
* Attempt to extract helpful user messages
* [autofix.ci] apply automated fixes
* Added loading on mcp server tab auth
* Changed to load on start too
* cleanup mcp composer on project deletion
* [autofix.ci] apply automated fixes
* remove nested retry mech
* Ruff
* lint
* Fix unit tests
* [autofix.ci] apply automated fixes
* ruff
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <[email protected]>
Co-authored-by: Lucas Oliveira <[email protected]>
Co-authored-by: Mike Fortman <[email protected]>1 parent 3b7601f commit b551b0c
File tree
22 files changed
+1598
-246
lines changed- src
- backend
- base/langflow
- api/v1
- initial_setup/starter_projects
- services
- auth
- mcp_composer
- settings
- tests/unit/api/v1
- frontend
- src
- controllers/API/queries/mcp
- customization
- utils
- pages/MainPage/pages/homePage/components
22 files changed
+1598
-246
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments