@dexterai/mcp-instructions
v1.0.0
Published
Shared MCP server instructions for the OpenDexter / Dexter x402 Gateway. Single source of truth consumed by both the hosted server (open.dexter.cash/mcp) and the npm-installable local server (@dexterai/opendexter).
Maintainers
Readme
@dexterai/mcp-instructions
Shared MCP server instructions for the Dexter x402 Gateway.
This package exists to eliminate drift between the two MCP server implementations in the Dexter stack:
- Hosted remote server at
open.dexter.cash/mcp(source:~/websites/dexter-mcp/open-mcp-server.mjs) - Local npm-installable server
@dexterai/opendexter(source:~/websites/opendexter-ide/packages/mcp/src/server/index.ts)
Both servers must send the same workflow guidance in their
initialize response instructions field. Before this package,
those two codebases drifted — the hosted server had the guidance,
the npm package did not.
Usage
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { SERVER_INSTRUCTIONS } from '@dexterai/mcp-instructions';
const server = new McpServer(
{ name: 'Dexter x402 Gateway', version: VERSION },
{ instructions: SERVER_INSTRUCTIONS },
);Updating the instructions
- Edit
src/index.ts. - Bump the version in
package.json. npm publish --access public.- In each consumer, bump the
@dexterai/mcp-instructionsdependency and rebuild. Hosted server redeploys; npm package republishes.
Why a whole package instead of a constant in one of the MCPs?
The hosted server is a single .mjs file deployed separately from the
npm package repo. Without a published package, the constant would have
to be hand-copied between repos on every change — exactly the drift the
Apr 16 unification sprint tried to fix.
License
MIT
