Skip to content

Commit

Permalink
Merge pull request modelcontextprotocol#26 from modelcontextprotocol/…
Browse files Browse the repository at this point in the history
…justin/sqlite-refactor

Refactor SQLite server to not inherit from `Server`
  • Loading branch information
jspahrsummers authored Nov 21, 2024
2 parents 8851072 + 4ad67ea commit 0a5c945
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 325 deletions.
32 changes: 16 additions & 16 deletions src/git/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# mcp-git: A git MCP server
# mcp-server-git: A git MCP server

A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.

Please note that mcp-git is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.
Please note that mcp-server-git is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.

## Available Tools

Expand All @@ -27,20 +27,20 @@ This list is expected to grow as we add more functionality to the server. We wel
### Using uv (recommended)

When using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will
use [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *mcp-git*.
use [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *mcp-server-git*.

### Using PIP

Alternatively you can install `mcp-git` via pip:
Alternatively you can install `mcp-server-git` via pip:

```
pip install mcp-git
pip install mcp-server-git
```

After installation, you can run it as a script using:

```
python -m mcp_git
python -m mcp_server_git
```

## Configuration
Expand All @@ -50,9 +50,9 @@ Add to your Claude settings:

```json
"mcpServers": {
"mcp-git": {
"git": {
"command": "uvx",
"args": ["mcp-git", "--repository", "path/to/git/repo"]
"args": ["mcp-server-git", "--repository", "path/to/git/repo"]
}
}
```
Expand All @@ -61,9 +61,9 @@ Alternatively, if using pip installation:

```json
"mcpServers": {
"mcp-git": {
"git": {
"command": "python",
"args": ["-m", "mcp_git", "--repository", "path/to/git/repo"]
"args": ["-m", "mcp_server_git", "--repository", "path/to/git/repo"]
}
}
```
Expand All @@ -74,9 +74,9 @@ Add to your Zed settings.json:

```json
"context_servers": [
"mcp-git": {
"mcp-server-git": {
"command": "uvx",
"args": ["mcp-git"]
"args": ["mcp-server-git"]
}
],
```
Expand All @@ -85,19 +85,19 @@ Alternatively, if using pip installation:

```json
"context_servers": {
"mcp-git": {
"mcp-server-git": {
"command": "python",
"args": ["-m", "mcp-git"]
"args": ["-m", "mcp-server-git"]
}
},
```


## Contributing

We encourage contributions to help expand and improve mcp-git. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.
We encourage contributions to help expand and improve mcp-server-git. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.

For examples of other MCP servers and implementation patterns, see:
https://github.com/modelcontextprotocol/servers

Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-git even more powerful and useful.
Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-git even more powerful and useful.
22 changes: 11 additions & 11 deletions src/sqlite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ The server offers six core tools:
```bash
# Add the server to your claude_desktop_config.json
"mcpServers": {
"sqlite": {
"command": "uv",
"args": [
"--directory",
"parent_of_servers_repo/servers/src/sqlite",
"run",
"sqlite",
"--db-path",
"~/test.db"
]
}
"sqlite": {
"command": "uv",
"args": [
"--directory",
"parent_of_servers_repo/servers/src/sqlite",
"run",
"mcp-server-sqlite",
"--db-path",
"~/test.db"
]
}
}
```
Loading

0 comments on commit 0a5c945

Please sign in to comment.