npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

projuris-mcp-server

v0.1.15

Published

projuris-mcp-server MCP server

Readme

Projuris MCP Server

Servidor Model Context Protocol (MCP) para consulta dinâmica de dados do ERP Projuris, construído com mcp-framework. Esta ferramenta permite que assistentes AI como o Claude realizem consultas em linguagem natural ao ERP Projuris.

📋 Descrição

Este servidor MCP implementa uma interface que permite realizar consultas em linguagem natural ao ERP Projuris, gerando relatórios e insights. A ferramenta principal ConsultaProjurisTool conecta-se à API do Projuris para processar consultas e retornar os resultados em formato markdown, HTML ou texto.

🚀 Início Rápido

# Instalar dependências
npm install

# Compilar o projeto
npm run build

# Executar o servidor
npm start

🧩 Estrutura do Projeto

projuris-mcp-server/
├── src/
│   ├── tools/               # Ferramentas MCP
│   │   └── ConsultaprojurisTool.ts
│   └── index.ts             # Ponto de entrada do servidor
├── package.json
└── tsconfig.json

🔧 Configuração

O servidor utiliza as seguintes configurações padrão para conectar à API Projuris:

{
  apiUrl: "http://localhost:8080",  // URL base da API Projuris
  tenant: "consultivo",             // Tenant (contexto) do Projuris
  format: "markdown"                // Formato de saída (markdown, html, texto)
}

🛠️ Como Usar a Ferramenta de Consulta

A ferramenta ConsultaProjurisTool permite realizar consultas em linguagem natural ao ERP Projuris:

// Exemplo de utilização:
const resposta = await consultaProjuris({
  pergunta: "Quais são os processos ativos no último mês?"
});

📱 Uso com o Claude Desktop

Desenvolvimento Local

Adicione esta configuração ao arquivo de configuração do Claude Desktop:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

Isto é para rodar LOCAL com o código fonte do server MCP:

{
  "mcpServers": {
    "projuris-mcp-server": {
      "command": "node",
      "args":["/caminho/absoluto/para/projuris-mcp-server/dist/index.js"]
    }
  }
}

Após Publicação

Após publicar o pacote no npm, utilize:

{
  "mcpServers": {
    "projuris-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "projuris-mcp-server"
      ],
      "env": {
        "PROJURIS_TENANT_ID": "consultivo",
        "PROJURIS_API_URL": "http://localhost:8080"
      }
    }
  }
}

🔄 Construção e Testes

  1. Faça alterações nas ferramentas
  2. Execute npm run build para compilar
  3. O servidor carregará automaticamente suas ferramentas na inicialização

📚 Implementação

A ferramenta ConsultaProjurisTool implementa:

  • Consultas através de requisições HTTP à API do Projuris
  • Tratamento de erros apropriado
  • Configuração de headers específicos, incluindo tenant e formato de saída
  • Logging detalhado para auxiliar na depuração

🌐 Referências