The "mai-papyrusproxy" extension provides a proxy server for internal MicrosoftAI use, enabling seamless integration with the Papyrus service. This extension simplifies the process of forwarding requests to the Papyrus API, ensuring secure and efficient communication.
Features
Start Papyrus Proxy Server: Easily start a local proxy server to forward requests to the Papyrus API.
Stop Papyrus Proxy Server: Stop the running proxy server with a single command.
Automatic Token Management: Automatically fetch and cache Azure tokens for secure API communication.
Customizable Request Forwarding: Forward requests with custom headers and parameters to the Papyrus API.
Requirements
Node.js: Ensure Node.js is installed on your system to support npm commands.
Azure Authentication: The extension requires Azure authentication to fetch tokens for API access.
VS Code: This extension is designed to work with Visual Studio Code.
Extension Settings
This extension does not add any custom settings but provides the following commands:
mai-papyrusproxy.startServer: Start the Papyrus Proxy server.
mai-papyrusproxy.stopServer: Stop the Papyrus Proxy server.
Known Issues
Port Conflicts: If the default port (5000) is in use, the server will attempt to restart after 5 seconds. Ensure no other services are using this port.
Authentication Errors: Ensure you are logged into Azure within VS Code to avoid token acquisition issues.
Release Notes
1.0.0
Initial release of the "mai-papyrusproxy" extension.
Added commands to start and stop the Papyrus Proxy server.
Implemented automatic token management and request forwarding features.