You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./bin/mcp-publisher create --name "io.github.owner/repo" --description "My server" --repo-url "https://github.com/owner/repo"
27
38
```
28
39
29
40
### Command-line Arguments
@@ -33,6 +44,87 @@ The compiled binary will be placed in the `bin` directory.
33
44
-`-login`: Force a new GitHub authentication even if a token already exists (overwrites existing token file)
34
45
-`-auth-method`: Authentication method to use (default: github-oauth)
35
46
47
+
## Creating a server.json file
48
+
49
+
The tool provides a `create` command to help generate a properly formatted `server.json` file. This command takes various flags to specify the server details and generates a complete server.json file that you can then modify as needed.
50
+
51
+
### Usage
52
+
53
+
```bash
54
+
./bin/mcp-publisher create [flags]
55
+
```
56
+
57
+
### Create Command Flags
58
+
59
+
#### Required Flags
60
+
-`--name`, `-n`: Server name (e.g., io.github.owner/repo-name)
61
+
-`--description`, `-d`: Server description
62
+
-`--repo-url`: Repository URL
63
+
64
+
#### Optional Flags
65
+
-`--version`, `-v`: Server version (default: "1.0.0")
The `create` command will generate a `server.json` file with:
116
+
- Proper structure and formatting
117
+
- Runtime arguments parsed from the `--execute` command
118
+
- Environment variables with descriptions
119
+
- Package arguments for user configuration
120
+
- All necessary metadata
121
+
122
+
After creation, you may need to manually edit the file to:
123
+
- Adjust argument descriptions and requirements
124
+
- Set environment variable optionality (`is_required`, `is_secret`)
125
+
- Add remote server configurations
126
+
- Fine-tune runtime and package arguments
127
+
36
128
## Authentication
37
129
38
130
The tool has been simplified to use **GitHub OAuth device flow authentication exclusively**. Previous versions supported multiple authentication methods, but this version focuses solely on GitHub OAuth for better security and user experience.
@@ -45,7 +137,9 @@ The tool has been simplified to use **GitHub OAuth device flow authentication ex
45
137
46
138
**Note**: Authentication is performed via GitHub OAuth App, which you must authorize for the respective resources (e.g., organization access if publishing organization repositories).
47
139
48
-
## Example
140
+
## Publishing Example
141
+
142
+
To publish an existing server.json file to the registry:
49
143
50
144
1. Prepare your `server.json` file with your server details:
51
145
@@ -90,7 +184,7 @@ The tool has been simplified to use **GitHub OAuth device flow authentication ex
0 commit comments