Commit Graph

380 Commits

Author SHA1 Message Date
pietrozullo ec760c9a91 feat: enhance RemoteAgent to handle structured final events
- Added functionality to process structured final events prefixed with f:.
- Improved error handling for JSON parsing of structured events.
2025-10-16 09:33:00 +02:00
Enrico Toniato 7d4c121bd0 docs: update README files for Python and TypeScript implementations
- Renamed Python README title to "MCP-Use for Python" and added a description of its capabilities.
- Enhanced Python README with sections on MCP Agent, MCP Client, and upcoming MCP Server.
- Updated TypeScript README to include a new section on MCP-UI Resources for building interactive applications.
- Improved formatting and added quick links in both README files for better navigation.
- Ensured consistency in package descriptions and features across both implementations.
2025-10-15 19:26:38 +02:00
Luigi Pederzani 3ff31be303 move docs 2025-10-15 19:23:46 +02:00
Luigi Pederzani 1fee46e84b remove 2025-10-15 19:22:41 +02:00
Luigi Pederzani 5653304297 update authors 2025-10-15 18:27:25 +02:00
Luigi Pederzani 0c719cdd0f cleanup 2025-10-15 18:21:08 +02:00
pietrozullo e6dcfbecbf release1.3.12 2025-10-14 14:37:16 +02:00
Pietro Zullo 122533b4db Feat/streaming consumption of remote endpoint (#304)
* Remote agent consumes streams not execute

* chore: logs

* chore: docs
2025-10-14 10:53:55 +02:00
Harshith VH 3d69b84068 refactor: middleware metrics (#299)
* refactor metrics for quality and consistency

* fix formatting
2025-10-13 11:09:25 +02:00
pietrozullo 260f4586bc chore: small docs update 2025-10-13 10:07:33 +02:00
pietrozullo 764bf9ed73 chore: limited memory example 2025-10-13 09:53:49 +02:00
pietrozullo 1d2d60618d chore: removed non existing file reference 2025-10-13 09:53:36 +02:00
pietrozullo bb8c60e212 feat: Add Mintlify CLI installation to documentation workflow
* Included a step to install the Mintlify CLI in the GitHub Actions workflow for enhanced documentation generation.
2025-10-12 20:10:50 +02:00
pietrozullo e40d9dcb22 feat: Enhance documentation and add link checking step
* Added a step in the GitHub Actions workflow to check for broken links in the documentation.
* Updated the documentation structure by replacing AccordionItem with Accordion for better organization.
* Corrected links in the middleware and configuration documentation for accuracy.
2025-10-12 20:08:30 +02:00
Pietro Zullo 920524a2ff feat: Automatic API documentation (MCP-663) (#301)
* feat: enhance API documentation and structure

* Added new background configuration options in docs.json.
* Introduced a script to generate Mintlify-compatible MDX API documentation.
* Updated API reference structure in docs.json to reflect new organization.
* Removed outdated API reference files for adapters and introduction.
* Improved organization of API reference groups for better navigation.

* chore: update GitHub Actions workflow for documentation generation

* Added a step to create a virtual environment before installing dependencies.
* Improved the workflow by ensuring the documentation generation script runs in the correct directory.

* feat: automatic documentation

* fix: empty new line messes up with linter

* linted docs

* fix: docs.json linting newline

* check only docs files

* feat: action comments PR with instructions

* test: expect action failure

* docs: update API documentation

* gradient generator

* feat: import path in docs
2025-10-12 18:20:14 +02:00
Harshith VH b720d60322 docs: update api reference (#296)
* Update api reference docs with missing methods and para's

* update method signatures and syntax
2025-10-10 15:48:16 +02:00
Pietro Zullo 9c048aac56 fix: use executable to run test server for shared deps (#298)
* fix: use executable to run test server for shared deps

* fix: locked pydantic version that was conflicting with fastmcp
2025-10-09 14:33:28 +02:00
Luigi Pederzani bb5de3af95 fix: Return tool result in standard format (#288)
* return tool result directly

* fix type
2025-10-07 14:07:23 +02:00
Vincenzo Reina 822b0b72fc feat: Middleware (#269)
* Middlware first commit
* Add context to middleware
- Add context to middleware with mcp types
- Update logging middleware with new implementation
- Add hooks for every type of action
* Update example and metrics
* Adapt tests to middleware
* Fix metrics and example
* Update docs and new add_middleware function
* Fix metrics property
* Fix on add_middleware function
* Fix formatting
* chore: nicer example
* chore: remove global exports for middleware
* chore: middleware blog

---------

Signed-off-by: Vincenzo Reina <vincenzoreinaa05@gmail.com>
Co-authored-by: pietrozullo <pietro.zullo@gmail.com>
2025-10-07 11:37:08 +02:00
Kinda Hall 4d270d8909 Fix: Fix some bugs about chat_history (#232)
* fix: 🐛 add the query after astream_events

* fix: 🐛 remove the system_prompt from the chat_history

* style: 💄 lint
2025-10-06 18:03:18 +02:00
Harshith VH e8b74768f7 fix: duplicate user message (#287)
* fix duplicate human message

* fix prompt template and move add_to_history after stream
2025-10-06 17:55:37 +02:00
Harshith VH 89ceb92d37 fix docs on docker networking issue (#286) 2025-10-04 15:36:40 +02:00
github-actions[bot] c8f0249665 chore: update dependents info (automated) (#267)
Co-authored-by: pietrozullo <62951181+pietrozullo@users.noreply.github.com>
2025-10-04 15:33:35 +02:00
Pietro Zullo cf3bdb5a62 feat: updated docs to include ts && remove from_dict method (#282) 2025-10-04 15:33:18 +02:00
Harshith VH 673bea304a normalize agent outputs across providers (#280) 2025-10-02 11:58:56 +02:00
Harshith VH 71c7b3a06f test: unit tests for MCPAgent (#281)
* unit tests for MCPAgent (init, run, stream)
* fix linting and formatting
2025-09-30 15:29:56 +02:00
pietrozullo f10a8dc16c chore: minor docs formatting 2025-09-29 11:02:28 +02:00
pietrozullo ddcad9f743 chore: remove broken action 2025-09-29 10:45:58 +02:00
pietrozullo ff7b7ade0e release1.3.11 2025-09-29 10:37:09 +02:00
pietrozullo c308ced23f chore: release docs 2025-09-29 10:35:15 +02:00
Vincenzo Reina ea5a12f35a Fix http connector error handling (#279) 2025-09-27 12:22:20 +02:00
Vincenzo Reina 3f6cb669c1 fix: accept empty tool result (#273) 2025-09-23 19:14:19 +02:00
pietrozullo 23069cc45a chore: remove forced output format from neutral prompt template 2025-09-23 15:09:18 +02:00
Amrithesh Kakkoth c60bbf5e17 Fix enum validation issue in jsonschema_to_pydantic (#270)
* Fix enum validation issue in jsonschema_to_pydantic

- Enhanced fix_schema method to automatically add 'type': 'string' to enum fields without explicit type
- This resolves validation errors when passing string values to enum fields in FastMCP tools
- Added comprehensive unit tests for enum handling scenarios
- Fix is backward compatible and preserves existing functionality
- Resolves issue where enum fields without explicit type caused Pydantic validation errors

* Fix linting issues

- Remove whitespace from blank lines
- Sort imports according to project standards
- All ruff checks now pass

* Apply ruff formatting to test file

- Format test_enum_handling.py according to project standards
- All formatting checks now pass

* Fix enum validation test to reflect actual jsonschema-pydantic behavior

- Replace test that expected strict enum validation with test that verifies valid values are accepted
- jsonschema-pydantic doesn't enforce strict enum validation as expected
- Focus on testing that our fix allows valid enum values to pass validation
- This addresses the test failure in CI

---------

Co-authored-by: Amrithesh Kakkoth <amritheshkakkoth@gmail.com>
2025-09-23 14:20:31 +02:00
pietrozullo 4f0479ebf0 fix: remove useless test that had same name of important test 2025-09-19 18:59:44 +02:00
Vincenzo Reina 24e8156e89 Fix astream to stream in README (#266) 2025-09-16 13:52:09 +02:00
github-actions[bot] 86ee125016 chore: update dependents info (automated) (#261)
Co-authored-by: pietrozullo <62951181+pietrozullo@users.noreply.github.com>
2025-09-11 16:01:46 -07:00
Pietro Zullo 86be45c2dd feat/authorization (#149)
* Auth 1.0

* Defualt to DCR

* Fix client list server names

* Fix oauth problems with no oauth servers, enhance documentation and comments

* Add OAuth metadata provider and specific fixes

- Remove auth field to reduce API verbosity
- Add "auth" support for MCPClient's config
- Add "oauth_provider" key to MCPClient's config to provide metadata
- Fix no OAuth servers' errors

* Relocate authentication doc

* Fix ruff formatting as usual

* Fix http connectors tests with oauth support

* Fix test_config unit tests

* Final fix for tests

* Add integration for auth

- Add auth server for testing
- Add test for complete auth flow with mock on OAuth callback
- Add test for custom client auth
- Add test for bearer auth token

* Add further test and update README

- Add OAuth metadata provider (no discovery)
- Update README with new auth badge

* Format fixes

* Remove redefined exception

* Add auth test on GH action

* Update docs with correct example

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com>

* Update mcp_use/auth/oauth.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com>

* Add custom callback port feature

- Add customizable port for callback
- Remove dynamic port
- Fix bug of registration before checking port

* Add GitHub MCP support

* Update docs

* chore: highlight hack

* chore: change wording in docs

* Add authlib on project dependencies

* Remove useless example

* Fix formatting as usual

---------

Signed-off-by: Vincenzo Reina <vincenzoreinaa05@gmail.com>
Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com>
Co-authored-by: renvins <vincenzoreinaa05@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-11 16:01:14 -07:00
pietrozullo d4ba66d8ef fix: bump websocket minimum version 2025-09-08 10:35:05 -07:00
github-actions[bot] c7e1020cfe chore: update dependents info (automated) (#253)
Signed-off-by: Pietro Zullo <62951181+pietrozullo@users.noreply.github.com>
Co-authored-by: pietrozullo <62951181+pietrozullo@users.noreply.github.com>
2025-09-01 18:58:01 -07:00
github-actions[bot] e49f0d3244 chore: update dependents info (automated) (#248)
Co-authored-by: pietrozullo <62951181+pietrozullo@users.noreply.github.com>
2025-09-01 18:57:11 -07:00
Het Saraiya cf88404190 Enhance MCPAgent execution flow to track success status. Added logic to differentiate between successful agent completion and reaching maximum iterations, improving logging for both scenarios. (#254) 2025-09-01 18:56:23 -07:00
lorenss 3179aa6c86 Fix subprocess cleanup for multiple MCP clients (#231)
* init

* add logging callback

* cleaner shutdown of multiple clients

* linting

* do not clear manager and fix stop for http error

* http fallback change

* Update mcp_use/connectors/http.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: lorenss <31991968+lorenss-m@users.noreply.github.com>

---------

Signed-off-by: lorenss <31991968+lorenss-m@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-26 22:26:36 -07:00
pietrozullo 12f810e672 chore: remo product hunt 2025-08-23 14:35:30 -07:00
pietrozullo 693ab172b2 release1.3.10 2025-08-18 10:43:26 -07:00
Salvatore Cordiano ce80ecf763 Update README.md (#242)
Use the main repository in the README

Signed-off-by: Salvatore Cordiano <salvatorecordiano@users.noreply.github.com>
2025-08-18 10:41:17 -07:00
Pietro Zullo b0e9a7c04e feat: abstracted server manager and allow to pass one (#240) 2025-08-17 17:19:46 -07:00
Vincenzo Reina 9669744c10 Add LLMs logging reasoning (#226) 2025-08-17 16:38:02 -07:00
Luigi Pederzani 8083df73df Feat: Add observability system with callback management for MCP agents (#238)
* improve logging

* import logging first

* make callback functions for observability + observability manager for mcp agent

* improve runner callbacks logic

* use laminar auto instrumentation + remove opentelemetry callbacks from laminar
2025-08-18 01:22:57 +02:00
Vincenzo Reina 41a685f2b2 docs: Add chat loop examples (#236)
* Add initial docs for chat loops

* Add new example with structured output
2025-08-17 14:38:21 -07:00