Skip to main content

DevScope MCP

Componente Execution da DevScope AI Platform — veja docs/architecture/overview.md para como este servidor se encaixa nos outros pilares.

O DevScope fornece contexto confiável de um projeto para agentes de IA no VS Code. Ele analisa tecnologias, estrutura, regras do AGENTS.md, branch atual e código-fonte sem permitir comandos arbitrários.

Sistemas suportados

  • Windows 10/11
  • WSL
  • Linux
  • macOS

A configuração gerada é a mesma em todos os sistemas. O VS Code inicia o comando devscope-mcp, instalado no PATH pelo Python.

Requisitos

  • Python 3.11 ou superior
  • Git
  • VS Code com suporte a MCP

Docker, Node.js e Ripgrep são opcionais. O comando doctor informa o que está disponível.

Instalação para desenvolvimento

python -m venv .venv

Windows PowerShell:

.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -e ".[dev]"

Linux, WSL ou macOS:

source .venv/bin/activate
python -m pip install --upgrade pip
pip install -e ".[dev]"

A instalação cria dois comandos:

devscope      CLI de configuração e diagnóstico
devscope-mcp  servidor MCP usado pelo VS Code

Uso em outro projeto

Entre na pasta do projeto que receberá o DevScope:

cd caminho/do/meu-projeto
devscope init

O comando cria, sem sobrescrever arquivos existentes:

devscope.json
AGENTS.md
.vscode/mcp.json

Para definir manualmente a branch base:

devscope init --base-branch development

Para substituir arquivos já existentes conscientemente:

devscope init --force

Depois, abra a pasta no VS Code:

code .

No VS Code, execute MCP: List Servers, selecione devscope e inicie o servidor.

Comandos da CLI

Diagnosticar o ambiente

devscope doctor

Verifica:

  • sistema operacional;
  • Python;
  • Git;
  • Docker;
  • Node.js;
  • Ripgrep;
  • VS Code;
  • presença de devscope.json, AGENTS.md e .vscode/mcp.json.

Saída em JSON:

devscope doctor --json

Configurar um projeto

devscope init

A configuração gerada usa este servidor MCP:

{
  "servers": {
    "devscope": {
      "type": "stdio",
      "command": "devscope-mcp",
      "args": [
        "--project-root",
        "${workspaceFolder}",
        "--config",
        "${workspaceFolder}/devscope.json"
      ]
    }
  }
}

Não existem caminhos fixos como C:\\Users\\... ou /home/..., por isso o arquivo funciona para toda a equipe.

Analisar o projeto

devscope scan

Identifica linguagens, frameworks, gerenciadores de pacotes, testes, Docker, CI e arquivos importantes.

Atualizar a configuração

devscope upgrade

Migra devscope.json para a versão atual do schema sem alterar código do projeto.

Ferramentas MCP

  • health_check
  • scan_project
  • analyze_current_branch
  • search_code_context
  • get_task_context

Exemplos no chat do agente:

Use o DevScope para analisar este projeto.
Use o DevScope para comparar minha branch atual com development.
Use o DevScope para montar o contexto da tarefa de bloquear contas trial expiradas.

Segurança

O MVP funciona em modo somente leitura:

  • não altera código;
  • não cria commits;
  • não faz push;
  • não executa comandos fornecidos livremente pelo agente;
  • restringe buscas à pasta do projeto;
  • usa apenas comandos Git previamente permitidos.

Desenvolvimento e validação

pytest
ruff check .
python -m compileall src tests

Para iniciar o servidor manualmente:

devscope-mcp --project-root .

Para mostrar a configuração resolvida sem iniciar o MCP:

devscope-mcp --project-root . --print-config

Metadata

Release files for devscope-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devscope-mcp 0.2.0
File Size Uploaded Provenance Actions
devscope_mcp-0.2.0.tar.gz 13.4 kB With provenance Details for devscope_mcp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for devscope-mcp 0.2.0
File Interpreter ABI Platform Actions
devscope_mcp-0.2.0-py3-none-any.whl Python 3 none any Details for devscope_mcp-0.2.0-py3-none-any.whl

Total release size: 30.0 kB

Release files / devscope_mcp-0.2.0.tar.gz

Download URL devscope_mcp-0.2.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fe23626837a287e13e2ba27a2a860d2dcf7385200e24861c186fa23cbe48ed11
BLAKE2b-256 checksum
How to use checksums
9bac29e1aee84d48d46402c6a3effa4b732c393816cfe57aa107fa0137922aab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

Release files / devscope_mcp-0.2.0-py3-none-any.whl

Download URL devscope_mcp-0.2.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5823a09142a84286ba884ec906f2605b0745cd88b46e7238a1c7a0def090be6
BLAKE2b-256 checksum
How to use checksums
8c74ce451f0134773cb071a85062f0202e72379366fa603f9b3271f1178369a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

Security for devscope-mcp 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for devscope_mcp-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page