Financial Analyzer MCP Server
Un serveur Python pour le composant "financial-analyzer-mcp-server" (paquet distributable). Ce README décrit l'installation, la construction et la publication du paquet.
Prérequis
- Python 3.8+ (ajuster selon vos besoins)
- virtualenv ou venv
- pip
- Outils de packaging : build, twine (installables via pip)
Installer les outils nécessaires :
python -m pip install --upgrade pip build twine
Préparer l'environnement de développement
- Créer et activer un environnement virtuel :
python -m venv .venv
source .venv/bin/activate # macOS / Linux
.venv\Scripts\activate # Windows (PowerShell/CMD)
- (Optionnel) Installer les dépendances de développement si présentes :
pip install -r requirements-dev.txt
Commandes utiles
- Nettoyer les artefacts de build :
rm -rf dist/ build/ *.egg-info
- Construire le paquet :
python -m build
- Publier sur PyPI :
twine upload dist/*
- Publier sur Test PyPI (pour tests) :
twine upload --repository testpypi dist/*
Exemples d'utilisation
Remplacez votre_cle_api_mcpo par votre clé API réelle.
- Lancer le service (mode production) :
uvx mcpo \
--port 8000 \
--api-key "votre_cle_api_mcpo" \
-- \
uvx \
financial-analyzer-mcp-server
- Lancer le service en test (utilise Test PyPI pour le paquet) :
uvx mcpo \
--port 8000 \
--api-key "votre_cle_api_mcpo" \
-- \
uvx \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ \
--index-strategy unsafe-best-match \
financial-analyzer-mcp-server@0.2.1
Bonnes pratiques
- Versionnez le paquet avant publication (mettre à jour la version dans setup.py / pyproject.toml).
- Testez la construction localement (
python -m build) et vérifiez le contenu dedist/. - Utilisez Test PyPI pour valider la publication avant d'envoyer sur le dépôt officiel.
Dépannage rapide
- Erreur d'authentification twine : configurez vos identifiants dans
~/.pypircou fournissez--username/--passwordà twine. - Version déjà publiée : incrémentez la version du paquet.
- Problèmes avec les dépendances : vérifiez
pyproject.toml/setup.cfget les index utilisés (extra-index-url).
Deploying in Production (Example)
Deploying your MCP-to-OpenAPI proxy (powered by mcpo) is straightforward. Here's how to easily Dockerize and deploy it to cloud or VPS solutions:
🐳 Dockerize your Proxy Server using mcpo Dockerfile Example Create the following Dockerfile inside your deployment directory:
FROM python:3.11-slim
WORKDIR /app
RUN pip install mcpo uv
# Replace with your MCP server command; example: uvx mcp-server-time
CMD ["uvx", "mcpo", "--host", "0.0.0.0", "--port", "8000", "--", "uvx", "financial-analyzer-mcp-server"]
Build & Run the Container Locally
docker build -t mcp-proxy-server .
docker run -d -p 8000:8000 mcp-proxy-server
Deploying Your Container Push to DockerHub or another registry:
docker tag mcp-proxy-server yourdockerusername/mcp-proxy-server:latest
docker push yourdockerusername/mcp-proxy-server:latest
All in one command
docker run -d -p 8000:8000 gara420/financial_analyzer_server:latest
Deploy using Docker Compose, Kubernetes YAML manifests, or your favorite cloud container services (AWS ECS, Azure Container Instances, Render.com, or Heroku).
✔️ Your production MCP servers are now effortlessly available via REST APIs!
Metadata
Release files for financial-analyzer-mcp-server 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| financial_analyzer_mcp_server-0.3.4.tar.gz | 9.9 kB | Without provenance | Details for financial_analyzer_mcp_server-0.3.4.tar.gz |
Release files / financial_analyzer_mcp_server-0.3.4.tar.gz
| Download URL | financial_analyzer_mcp_server-0.3.4.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03366cfffe27b9a54adcc62c2c81a942fd2d0d51933c1603c9286e37fd7cb09c
|
|
BLAKE2b-256 checksum How to use checksums |
f4f320f976481a3166d150300e816e0cb56ab021b86b1e139f51c5d037b7c1ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for financial-analyzer-mcp-server 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.