Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build

on:
push:
branches-ignore:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: Use Node LTS ✨
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
cache: pnpm

- name: Install dependencies 📦️
run: pnpm install --frozen-lockfile

- name: Build 🔨
run: pnpm build

- name: Lint 🔍
run: pnpm lint
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release package

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: Use Node LTS ✨
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org
cache: pnpm

- name: Install dependencies 📦️
run: pnpm install --frozen-lockfile

- name: Build 🔨
run: pnpm build

- name: Publish 🚀
run: npm publish
env:
NPM_TOKEN: ${{secrets.CODEX_SDK_NPM_TOKEN}}
35 changes: 35 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Source code (since we're publishing built files)
src/

# Development files
.git/
.github/
.vscode/
.idea/
.cursor/
mcp-context/
*.tsbuildinfo
eslint.config.js
.env

# Temp files
tmp/
temp/

# Test files
test/
tests/
__tests__/
*.spec.ts
*.test.ts

# Docs (except README.md which is included in "files")
docs/

# Build artifacts
node_modules/
coverage/
bun.lock
yarn.lock
package-lock.json
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ No installation:
"mcpServers": {
"codex-data": {
"command": "npx",
"args": ["@codex-data/codex-mcp"],
"args": ["-y", "@codex-data/codex-mcp"],
"env": {
"CODEX_API_KEY": "<your-codex-api-key>"
}
Expand Down
24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { defineConfig } from "eslint/config";
import globals from "globals";
import js from "@eslint/js";
import tseslint from "typescript-eslint";

export default defineConfig([
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{
files: ["**/*.{js,mjs,cjs,ts}"],
languageOptions: { globals: globals.browser },
},
{
files: ["**/*.{js,mjs,cjs,ts}"],
plugins: { js },
extends: ["js/recommended"],
},
tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn",
},
},
]);
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "codex-mcp",
"module": "src/index.ts",
"type": "module",
"version": "1.0.0",
"version": "0.1.0",
"description": "Model Context Protocol (MCP) server for fetching blockchain data from Codex",
"bin": {
"codex-mcp": "./bin/cli.js"
Expand All @@ -18,6 +18,7 @@
"build": "tsc",
"start": "node --env-file=.env build/index.js",
"dev": "tsx watch --env-file=.env src/index.ts",
"lint": "eslint --ext .ts src",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
Expand All @@ -39,9 +40,13 @@
"node": ">=20.0.0"
},
"devDependencies": {
"@eslint/js": "^9.23.0",
"@types/node": "^22.13.14",
"eslint": "^9.23.0",
"globals": "^16.0.0",
"tsx": "^4.19.3",
"typescript": "^5.8.2"
"typescript": "^5.8.2",
"typescript-eslint": "^8.29.0"
},
"dependencies": {
"@codex-data/sdk": "^1.0.5",
Expand Down
Loading
Loading