nmcp

v2.0.9
@nibgat/nmcp Checked 9 hours ago Published 1 day ago

NİBGAT® Core-Complex Official Model Context Protocol (MCP) Server — AI Agent Bridge for Core Complex APIs, N - Git & ncli Pipelines

Full documentation: https://docs.nibgat.space/mcp Print a ready-to-paste client configuration snippet: For read-only AI sessions, append "--read-only" to args.

Summary extracted from the README.

nmcp

NİBGAT® Core-Complex Official Model Context Protocol (MCP) Server — AI Agent Bridge for Core Complex APIs, N - Git, OCI Container Registry, and ncli Release-to-Deploy Pipelines.

Full documentation: https://docs.nibgat.space/mcp

Features

  • 33 Production MCP Tools with strict Zod validation and MCP tool safety annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint).
  • 8 Structured MCP Resources covering Core Complex architecture, ncli command reference, .ngit-deploy.json JSON Schema, public REST API catalog, NCore UI Kit 2.0 standards, N - Buyment commerce/billing, and N - Cloud regions & catalog.
  • 4 Reusable MCP Prompts for releasing services, setting up CI/CD pipelines, diagnosing failed deployments, and scaffolding NCore UI Kit 2.0 applications.
  • Zero Secret Leakage: Reuses ncli's AES-256-GCM encrypted vault (~/.ncli/credentials.enc) or environment variables (NCLI_TOKEN, NGIT_TOKEN, NCLI_SESSION_COOKIE) and sanitizes every outbound response through redactSecrets().
  • Read-Only Mode (--read-only): Completely disables mutating tools (ngit_release_create, ngit_deployment_trigger, ngit_issue_create, nsupport_ticket_create, buyment_create_order, cloud_create_server, cloud_server_power, cloud_create_hardware_order) for safe audit/exploration AI sessions.
  • Stdio & Authenticated Loopback HTTP: Runs over stdio by default for desktop/IDE AI clients, or over Streamable HTTP (--http --port 3842) bound to 127.0.0.1 with timing-safe NMCP_HTTP_TOKEN Bearer authentication.

Quick Start

npx -y @nibgat/nmcp --help

Print a ready-to-paste client configuration snippet:

npx -y @nibgat/nmcp --print-config antigravity
npx -y @nibgat/nmcp --print-config claude
npx -y @nibgat/nmcp --print-config cursor
npx -y @nibgat/nmcp --print-config opencode
npx -y @nibgat/nmcp --print-config windsurf

Example MCP Client Configuration (antigravity / claude / cursor / windsurf)

{
    "mcpServers": {
        "nmcp": {
            "command": "npx",
            "args": [
                "-y",
                "@nibgat/nmcp"
            ]
        }
    }
}

For read-only AI sessions, append "--read-only" to args.

Authentication

nmcp automatically reads credentials in this order:

  1. Environment overrides: NCLI_TOKEN, NGIT_TOKEN, NCLI_SESSION_COOKIE, NCLI_PROFILE.
  2. Encrypted ncli vault: ~/.ncli/credentials.enc (AES-256-GCM).

Raw tokens, session cookies, passwords, and webhook secrets are never exposed in tool outputs.

CLI Options

Flag Description
--read-only Disable all mutating tools (ngit_release_create, ngit_deployment_trigger, ngit_issue_create, nsupport_ticket_create).
--profile <name> Select a named ncli credential profile (default: default).
--core-url <url> Override Core Complex API base URL (default: https://core.nibgat.space).
--git-url <url> Override N - Git API base URL (default: https://git.nibgat.space).
--http Start Streamable HTTP transport instead of stdio. Requires NMCP_HTTP_TOKEN (>= 16 chars).
--port <port> HTTP port when --http is enabled (default: 3842).
--host <host> HTTP bind host when --http is enabled (default: 127.0.0.1).
--print-config <client> Print MCP configuration JSON for antigravity, claude, cursor, opencode, or windsurf.
--version Display package version.
--help Display usage help.

Tools Summary

  • Discovery & Guidance: nibgat_ecosystem_overview, nibgat_health_check, ncli_command_guide
  • Identity & Profile: nibgat_whoami, nchar_profile_get
  • N - Git, Releases, Registry & Deployments: ngit_repos_list, ngit_repo_get, ngit_releases_list, ngit_release_create (write), ngit_deployments_list, ngit_deployment_trigger (write), ngit_runners_list, ngit_registry_list, ngit_issues_list, ngit_issue_create (write)
  • Pipelines: ncli_pipeline_validate, ncli_pipeline_generate_config
  • Mail & Support: nmail_domains_list, nmail_notifications_list, nsupport_tickets_list, nsupport_ticket_create (write)
  • N - Buyment (Billing & Wallet): buyment_get_catalog, buyment_get_wallet, buyment_list_subscriptions, buyment_list_invoices, buyment_create_order (write)
  • N - Cloud (Infrastructure & Hardware): cloud_list_regions, cloud_get_catalog, cloud_get_overview, cloud_list_resources, cloud_create_server (write), cloud_server_power (write), cloud_create_hardware_order (write)

Resources

  • nibgat://ecosystem/architecture
  • nibgat://cli/reference
  • nibgat://pipeline/schema
  • nibgat://api/catalog
  • nibgat://standards/ncore-ui-kit
  • nibgat://buyment/catalog
  • nibgat://cloud/regions
  • nibgat://cloud/catalog

Prompts

  • release-service (repo, version, notes?)
  • setup-pipeline (repo, projectType, targetHost?)
  • diagnose-deployment (repo)
  • scaffold-ncore-app (appName, domain)

Development

npm install
npm run build
npm test

License

MIT © 2026 NİBGAT® — See LICENSE and https://docs.nibgat.space/mcp.