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 5
5
"license" : " AGPL-3.0-only" ,
6
6
"repository" : " https://github.com/OpenZeppelin/contracts-wizard" ,
7
7
"main" : " dist/index.js" ,
8
+ "types" : " dist/index.d.ts" ,
8
9
"bin" : {
9
- "contracts-mcp" : " dist/index .js"
10
+ "contracts-mcp" : " dist/cli .js"
10
11
},
11
12
"ts:main" : " src/index.ts" ,
12
13
"files" : [
37
38
"ava" : " ^6.0.0" ,
38
39
"ts-node" : " ^10.4.0"
39
40
}
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