Skip to content

20260318 Formats And ESlints all the project. Updates to .registerTool on all tools - #1

Open
netpoe wants to merge 16 commits into
nirholas:mainfrom
netpoe:main
Open

20260318 Formats And ESlints all the project. Updates to .registerTool on all tools#1
netpoe wants to merge 16 commits into
nirholas:mainfrom
netpoe:main

Conversation

@netpoe

@netpoe netpoe commented Mar 18, 2026

Copy link
Copy Markdown

What does this PR do?

  • Installs and runs eslint (JS/TS Industry standards) and prettier in all the project
  • Updates all tools to move from the deprecated .tool to .registerTool
  • Adds a TEST mode to allow Test Binance endpoints and keys
  • Defaults to Streamable-HTTP MCP protocol and the MCP Tool UI connects seamlessly now

Type of change

  • [ x] New feature
  • Bug fix
  • Documentation update
  • [x ] Refactoring
  • Other

Checklist

  • [x ] I've tested my changes
  • [x ] I've updated documentation if needed
  • [ x] My code follows the project's style guidelines

netpoe added 9 commits March 10, 2026 11:29
…ing in index.ts, and enhance SSE server type definitions
…tion, update server descriptions, and enhance error handling for unsupported endpoints
… ESLint, and update import statements across multiple files for consistency
…sport, and add logging for tool calls and results
…uest handling, logging, and session management
…oved error messages, and refined request validation
… calls with server.registerTool(...) for improved API consistency
…nhance Binance API with new request handling and error management
@netpoe
netpoe requested a review from nirholas as a code owner March 18, 2026 17:09
@noorizone-ai

Copy link
Copy Markdown
Integrate Binance MCP into NooriZone AI. Add secure authentication, portfolio analysis, real-time market data, transaction history, and account balance tools. Ensure the implementation is production-ready, document the setup, and verify that all features work correctly

@noorizone-ai

Copy link
Copy Markdown

import express from "express";
import dotenv from "dotenv";
import cors from "cors";
import { json } from "body-parser";
import { initMcpServer } from "./mcp/server.js";
import { registerTools } from "./tools/index.js";
import apiRouter from "./api/index.js";
import { logger } from "./lib/logger.js";
import { metricsRouter } from "./lib/metrics.js";
dotenv.config();

const PORT = Number(process.env.PORT || 3000);

async function main() {
const app = express();
app.use(cors());
app.use(json());

// attach metrics endpoint
app.use("/metrics", metricsRouter);

// error handler will be registered in api router
app.use("/api", apiRouter);

// health check
app.get("/health", (_req, res) => res.json({ ok: true }));

// start MCP server and register tools
await initMcpServer({ app });
await registerTools();

app.listen(PORT, () => {
logger.info(Server listening on port ${PORT});
});
}

main().catch((err) => {
logger.error("Fatal startup error", { err });
process.exit(1);
});

@noorizone-ai

Copy link
Copy Markdown

(path + full contents),

@noorizone-ai

Copy link
Copy Markdown

package
npm install

// run locally
npm run start

// build packages locally into the "dist" folder.
npm run dist

@noorizone-ai

Copy link
Copy Markdown

Polymorphisms

@noorizone-ai

Copy link
Copy Markdown

Polymorphism

@noorizone-ai

Copy link
Copy Markdown

Install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants