
openaisdkmcp
演示如何使用OpenAI Agents SDK结合多个MCP服务器完成文件操作、网络请求和搜索功能。
Repository Info
About This Server
演示如何使用OpenAI Agents SDK结合多个MCP服务器完成文件操作、网络请求和搜索功能。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Agent Server
Description
This project appears to be a server and client implementation for the Model Context Protocol (MCP), designed to facilitate interactions with AI agents. It includes components for a command-line interface (CLI), a web-based interface, and a dedicated module for code execution.
Features
- Command-Line Interface (CLI): Allows interaction with MCP agents via
agentcli.py. - Web Interface: Provides a web-based UI for interacting with MCP agents, served by
agentweb.pyand located in thefrontend/directory. - MCP Code Executor: A Node.js module (
mcp_code_executor/) likely responsible for executing code snippets or commands as directed by agents. - Local MCP Modules: Python modules (
mcp_local_modules/) for handling MCP setup, configuration, and utility functions. - Documentation: Contains project-related documentation in the
docs/directory. - Sample MCP Files: Includes example files related to MCP in
sample_mcp_files/.
Project Structure
A brief overview of the key directories and files:
agentcli.py: Main script for the command-line interface.agentweb.py: Main script for the web server.frontend/: Contains the HTML, CSS, and JavaScript for the web interface.mcp_code_executor/: A Node.js module for code execution.src/index.ts: TypeScript source for the code executor.build/index.js: Compiled JavaScript for the code executor.
mcp_local_modules/: Python modules for MCP core functionalities.mcp_agent_setup.py: Handles agent setup.mcp_server_config.py: Manages server configuration.
cli/: Python modules supporting the command-line interface.docs/: Project documentation files.requirements.txt: Python project dependencies..gitignore: Specifies intentionally untracked files that Git should ignore.file_organization_log.md: Log related to file organization.minimal_ollama_test.py: Test script for Ollama.ollama_chat.py: Script for Ollama chat functionality.
Getting Started
To get started with this project, you would typically need to:
- Install Dependencies:
- For Python components:
pip install -r requirements.txt - For the MCP Code Executor: Navigate to
mcp_code_executor/and runnpm install
- For Python components:
- Configure the Environment: (Details would depend on specific MCP server configurations needed)
- Run the Application:
- CLI:
python agentcli.py(or similar, depending on arguments) - Web Interface:
python agentweb.py(and then access the specified port in a browser)
- CLI:
(Please update with more specific instructions as the project develops.)
Contributing
Contributions are welcome! Please refer to contribution guidelines if available, or open an issue/pull request.
License
(Please specify the license under which this project is distributed.)
Quick Start
Clone the repository
git clone https://github.com/artsnoob/openaisdkmcpInstall dependencies
cd openaisdkmcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.