Cover image
Try Now
2025-04-14

Un serveur MCP qui organise des fichiers en projets correctement structurés à l'aide de script_starter.py

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

CodePortal MCP Server

This server helps you organize code files into properly structured projects and provides direct access to AI models like OpenAI and Google.

Features

  • Project Organization - Structure projects using your existing Script_starter.py
  • Security First - All settings are local and secure
  • API Key Management - Store your OpenAI and Google keys securely
  • Direct AI Access - Generate text from OpenAI or Google directly on your computer
  • Auto-shutdown - Server closes after 15 minutes to keep your system clean

Getting Started

  1. Clone this repository to your computer

    git clone https://github.com/TylerALofall/code-portal-mcp.git
    cd code-portal-mcp
    
  2. Double-click start_server.bat to start the server

  3. Open your browser to http://localhost:8001/setup

    • Complete the initial setup
    • Configure your Script_starter.py paths

Using the AI Features

  1. Visit http://localhost:8001/ai/ui after starting the server
  2. Add your API keys in the "API Keys" tab:
    • OpenAI key (starts with sk-)
    • Google Generative AI key (starts with AIza)
  3. Use the "Generate Text" tab to:
    • Choose your provider (OpenAI or Google)
    • Enter your prompt
    • Get AI responses directly on your computer

Project Management

The server can create properly organized projects from multiple files:

import requests

# Files to organize
files = {
    "main.py": "# Your Python code here",
    "utils.py": "# Utility functions",
    "README.md": "# Project Documentation"
}

# Send to CodePortal
response = requests.post(
    "http://localhost:8001/createProject",
    json={
        "project_path": "C:/Users/tyler/Projects/my_project",
        "project_name": "My Project",
        "files": files
    }
)

print(response.json())

Security

  • All API keys are stored locally on your computer
  • The server only runs when you start it
  • Auto-shutdown after 15 minutes
  • Access restricted to localhost by default

For Advanced Users

You can enable external access by:

  1. Going to http://localhost:8001/setup
  2. Enabling "Public API Mode"
  3. Setting a secure API key

This allows you to send files from other computers or AI services.

Using with Other AI Models

See external_api.md for instructions on using with Claude or other external models.

相关推荐

  • av
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

  • sigoden
  • Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • Rag de conversation sur site avec des conteneurs configurables

  • modelscope
  • Commencez à construire des applications multi-agents LLM, plus facilement.

    Reviews

    4 (1)
    Avatar
    user_kxtKITG8
    2025-04-24

    I've been a dedicated user of code-portal-mcp and it has significantly streamlined my coding workflows. TylerALofall has done an excellent job in making an efficient and user-friendly product. The comprehensive features and intuitive interface have made my tasks much easier. Highly recommend to all developers!