File tree Expand file tree Collapse file tree 5 files changed +32
-13
lines changed
Expand file tree Collapse file tree 5 files changed +32
-13
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @openzeppelin/contracts-mcp ' : minor
3+ ---
4+
5+ Export functions to register MCP tools
Original file line number Diff line number Diff line change 1+ ---
2+ ' @openzeppelin/wizard-common ' : minor
3+ ---
4+
5+ Bump minor version for semantic versioning stability
Original file line number Diff line number Diff line change 55 "license" : " AGPL-3.0-only" ,
66 "repository" : " https://github.com/OpenZeppelin/contracts-wizard" ,
77 "main" : " dist/index.js" ,
8+ "types" : " dist/index.d.ts" ,
89 "bin" : {
9- "contracts-mcp" : " dist/index .js"
10+ "contracts-mcp" : " dist/cli .js"
1011 },
1112 "ts:main" : " src/index.ts" ,
1213 "files" : [
3738 "ava" : " ^6.0.0" ,
3839 "ts-node" : " ^10.4.0"
3940 }
40- }
41+ }
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js' ;
4+ import { createServer } from './server' ;
5+
6+ async function main ( ) {
7+ const transport = new StdioServerTransport ( ) ;
8+ const server = createServer ( ) ;
9+ await server . connect ( transport ) ;
10+ }
11+
12+ main ( ) . catch ( error => {
13+ console . error ( 'Failed to start OpenZeppelin Contracts MCP Server:' , error ) ;
14+ process . exit ( 1 ) ;
15+ } ) ;
Original file line number Diff line number Diff line change 1- #!/usr/bin/env node
2-
3- import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js' ;
4- import { createServer } from './server' ;
5-
6- // Start receiving messages on stdin and sending messages on stdout
7- const transport = new StdioServerTransport ( ) ;
8- ( async ( ) => {
9- const server = createServer ( ) ;
10- await server . connect ( transport ) ;
11- } ) ( ) ;
1+ export { registerSolidityTools } from './solidity/tools' ;
2+ export { registerCairoTools } from './cairo/tools' ;
3+ export { registerStellarTools } from './stellar/tools' ;
4+ export { registerStylusTools } from './stylus/tools' ;
You can’t perform that action at this time.
0 commit comments