Skip to content
Open
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
3 changes: 3 additions & 0 deletions AGENTS.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later
18 changes: 18 additions & 0 deletions pkg/mcp/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2026 Dyne.org foundation
#
# SPDX-License-Identifier: AGPL-3.0-or-later

node_modules
*.tsbuildinfo
build
coverage
.nyc_output
test
.prettierrc
.eslintrc
.gitignore
.prettierignore
.editorconfig
CONTRIBUTING.md
CHANGELOG.md
README.md.license
44 changes: 44 additions & 0 deletions pkg/mcp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# @slangroom/mcp

Model Context Protocol (MCP) server for Slangroom contract development assistance.

## Overview

This package provides an MCP server that helps developers and AI assistants write Slangroom contracts by providing:

- Slangroom contract templates
- Zencode keyword autocomplete suggestions
- Documentation for Slangroom plugins
- Contract validation
- Test data generation

## Features

- Context-aware assistance for Slangroom contract development
- Integration with AI coding assistants via MCP
- Resource provider for Slangroom and Zencode documentation
- Tool definitions for common Slangroom operations

## Installation

```bash
pnpm add @slangroom/mcp
```

## Usage

The MCP server is designed to be used with AI coding assistants that support the Model Context Protocol.

## Development

To build the package:

```bash
pnpm build
```

To run tests:

```bash
pnpm test
```
3 changes: 3 additions & 0 deletions pkg/mcp/README.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later
46 changes: 46 additions & 0 deletions pkg/mcp/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "@slangroom/mcp",
"version": "1.0.0",
"dependencies": {
"@slangroom/core": "workspace:*",
"@slangroom/shared": "workspace:*",
"@modelcontextprotocol/sdk": "^1.0.0"
},
"devDependencies": {
"@types/node": "^22.7.6",
"esbuild": "^0.24.0",
"typescript": "^5.6.3"
},
"repository": "https://github.com/dyne/slangroom",
"license": "AGPL-3.0-only",
"scripts": {
"build": "tsc --outdir build/esm"
},
"type": "module",
"main": "./build/esm/src/index.js",
"types": "./build/esm/src/index.d.ts",
"bin": {
"slangroom-mcp": "./build/esm/src/cli.js"
},
"exports": {
".": {
"import": {
"types": "./build/esm/src/index.d.ts",
"default": "./build/esm/src/index.js"
}
},
"./*": {
"import": {
"types": "./build/esm/src/*.d.ts",
"default": "./build/esm/src/*.js"
}
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": "^18.20.0 || ^20.10.0 || ^22 || ^23 || ^24"
}
}
3 changes: 3 additions & 0 deletions pkg/mcp/package.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2026 Dyne.org foundation

SPDX-License-Identifier: AGPL-3.0-or-later
Loading
Loading