Commit Graph

832 Commits

Author SHA1 Message Date
JavieHush
e4d856214b feat: Add git branch functionality and unit tests
This commit introduces the `git branch` tool to the MCP Git server, allowing users to list branches with various filtering options.

Changes include:
- Implemented `git_branch` function in `src/git/src/mcp_server_git/server.py` to support listing local, remote, and all branches, as well as filtering by `contains` and `not_contains` SHA values.
- Added comprehensive unit tests for the `git branch` functionality in `src/git/tests/test_server.py`, covering different branch types and commit filtering scenarios.
- Updated `src/git/README.md`.
2025-05-28 16:18:42 +08:00
olaservo
318c22b2ac Add instructions 2025-05-26 12:49:33 -07:00
cliffhall
145f893108 Allow multiple connections to the everything server.
For both sse and streamableHttp, a server instance needs to be created for each transport. Otherwise, when a new client connects and its new transport is connected to the single server, the previous transport is overwritten in the server instance and can no longer communicate.

* In sse.ts
  - remove global server, cleanup, and transport vars
  - add transports map
  - in sse GET handler,
    - check for sessionId, there shouldn't be one, so comment "Reconnecting?" and do nothing if present
    - if sessionId not present
      - create new server and transport instance
      - connect server to transport
      - add transport to transports map
      - in server.onclose, delete the transport from the transports map and call cleanup
  - in /message POST handler
    - get the sessionId from the request
    - get the transport from the map by sessionId
    - handle the message if the transport was found

* In streamableHttp.ts
  - remove the global server and cleanup vars
  - change transports var to Map
  - in /mcp POST handler
    - when creating a new session
      - create a server instance
      - in server.onclose, delete the transport from the transports map and call cleanup
  - remove the calls to cleanup and server.close in the SIGINT handler, because the transport is closed and its onclose handler closes the server.
2025-05-22 11:41:16 -04:00
Really Him
c430ac96d3 Merge branch 'main' into hesreallyhim/git-small-fixes-with-typing-and-strings 2025-05-18 06:24:45 -04:00
cliffhall
26aa0f8091 * In src/everything/sse.ts
- add SIGINT handler that does cleanup, server.close, and process.exit
2025-05-15 14:32:42 -04:00
cliffhall
3894d236c0 * In src/everything/sse.ts and streamableHttp.ts
- Replace console.log with console.error throughout
* In src/everything/sse.ts
  - remove the process.exit() in the server.onclose handler so reconnections are possible
2025-05-15 14:13:15 -04:00
David Dworken
c0821f1ed8 Add warning about security risks of 2 MCP servers (#1765) 2025-05-15 17:49:25 +01:00
Frederick Ros
cd88954e18 fix: resolve ZoneInfo error by using IANA-compliant local timezone
Replaced local timezone detection using tzinfo string (e.g. "CEST")
with tzlocal.get_localzone_name() to ensure a valid IANA time zone
(e.g. "Europe/Paris") is passed to ZoneInfo. This avoids runtime
errors on macOS and other systems that return non-IANA tz abbreviations.
2025-05-13 18:53:03 +02:00
Really Him
8e86d49346 fix: pyproject 2025-05-13 11:07:36 -04:00
Really Him
7c5dcaf461 chore: add py.typed 2025-05-13 00:14:22 -04:00
Really Him
0ffd7013db fix: fix f-strings 2025-05-12 23:35:19 -04:00
Really Him
abd24f63f8 fix: use 'references' instead of 'refs' for pylance even though it's an alias 2025-05-12 23:32:58 -04:00
Really Him
c53b53030d fix: fix mypy warning about representation of bytes 2025-05-12 23:28:26 -04:00
Really Him
1e7d4bc254 fix: replace deprecated pydantic function 2025-05-12 23:26:09 -04:00
Matthew McEachen
c6eb49bc24 Merge branch 'main' into main 2025-05-11 20:22:48 -07:00
allen joslin
123cc74e5b Merge branch 'main' into ajoslin/memory 2025-05-08 18:54:28 -04:00
Jun Kim
3ce1efbd37 Merge branch 'main' into jun/puppeteer 2025-05-07 01:39:01 -05:00
Jun Kim
cbf4d6b611 Merge branch 'main' into jun/puppeteer 2025-05-06 16:21:13 -05:00
Jun
4bb9ec779e remove redundancy and update puppeteer_screenshot tool description 2025-05-06 16:18:57 -05:00
みのるん
95df2efa0c Merge branch 'main' into patch-1 2025-05-07 00:15:18 +09:00
Cliff Hall
2645e03e5f Merge pull request #1673 from cliffhall/choose-server-at-startup-from-npx
Choose the server-everything transport on the command line
2025-05-06 11:10:58 -04:00
みのるん
96352032fc Fixed README: Added NPX config for Claude Desktop 2025-05-07 00:10:50 +09:00
cliffhall
e30f30868f Update server-everything to use the latest version of the SDK
* In sse.ts & streamableHttp.ts
  - change console.log to console.error
2025-05-06 10:27:49 -04:00
cliffhall
69549cc844 Update server-everything to use the latest version of the SDK
* In stdio.ts
  - change console.log to console.error
2025-05-06 10:26:47 -04:00
Jun
51593d9a9a add optional encoded param to puppeteer_screenshot for base64 output 2025-05-06 02:46:41 -05:00
Jun Kim
249024599f Merge branch 'main' into jun/puppeteer 2025-05-06 02:21:45 -05:00
cliffhall
c4371d95d5 Update server-everything to use the latest version of the SDK 2025-05-05 18:00:44 -04:00
cliffhall
f06dc654ff Update server-everything to allow choosing the transport on the command line.
* Update README.md
2025-05-05 13:33:25 -04:00
cliffhall
f93911607b Update server-everything to allow choosing the transport on the command line.
# Run the default (stdio) server
```npx @modelcontextprotocol/server-everything```

# Or specify stdio explicitly
```npx @modelcontextprotocol/server-everything stdio```

# Run the SSE server
```npx @modelcontextprotocol/server-everything sse```

# Run the streamable HTTP server
```npx @modelcontextprotocol/server-everything streamableHttp```

* In src/everything/index.ts
  - refactor/extracted contents to stdio.ts
  - replaced with code that
    - Gets the single argument from the commandline as scriptName
    - switches on scriptName
    - imports the appropriate server script or outputs usage options
  - scripts run on import

* In src/everything/stdio.ts
  - added console log "Starting default (STDIO) server..."

* In src/everything/sse.ts
  - added console log "Starting SSE server..."

* In src/everything/streamableHttp.ts
  - added console log "Starting Streamable HTTP server..."

* This fixes #1594
2025-05-05 13:09:38 -04:00
Ola Hungerford
0ad83e8dda Merge pull request #1183 from buvinghausen/main
Fix docker warnings in Puppeteer dockerfile
2025-05-05 07:20:48 -07:00
allen joslin
063a44a1dd Merge branch 'main' into ajoslin/memory 2025-05-01 17:04:28 -04:00
Matthew McEachen
ba54c9d374 fix(server.py): remove unused import 'os' 2025-04-29 16:01:50 -07:00
Cliff Hall
aff2243237 Merge branch 'main' into main 2025-04-23 18:00:37 -04:00
Ola Hungerford
6c9246468f Merge pull request #1527 from czy88840616/patch-1
Docs: wrap mcpServers config in complete JSON for better IDE support
2025-04-23 08:08:29 -07:00
Shiv Deepak Muddada
e70bcd317b remove json middleware from everything streamable http server 2025-04-22 19:51:16 -07:00
Shiv Deepak Muddada
d1d79444f7 fix: passing body to handleRequest, and optionally adding a response id if it exists 2025-04-22 19:32:07 -07:00
Shiv Deepak Muddada
03e9a7be0d ref: cleanup 2025-04-22 19:32:03 -07:00
Shiv Deepak Muddada
ace5c2a8dd update docs 2025-04-22 19:29:06 -07:00
Shiv Deepak Muddada
07af15945d add streamableHttp server support for everything server 2025-04-22 19:27:00 -07:00
David Soria Parra
52db0d9899 Merge pull request #1243 from burkeholland/burkeholland-vscode-install-instructions
Update READMEs with instructions for VS Code installation
2025-04-22 10:56:19 +01:00
Harry Chen
0a7c7c18f8 docs: Update server README.md 2025-04-22 12:03:01 +08:00
olaservo
c093906095 Update server version to match package semantic version 2025-04-21 06:28:25 -07:00
Bob Merkus
d6a06c6433 Merge branch 'main' into fix/gitlab-get-file-contents 2025-04-19 21:57:30 +02:00
Bob
f221e958d3 fix: remove duplicated project_id from schema 2025-04-19 21:56:43 +02:00
Ola Hungerford
f93737dbb0 Merge pull request #1282 from morinokami/patch-2
fix: Add completions capability to Everything server
2025-04-18 08:19:15 -07:00
Ola Hungerford
0b7432ba5e Merge pull request #1427 from dhruska/patch-1
Update incorrect Brave Search developer dashboard URL
2025-04-18 07:31:12 -07:00
Ola Hungerford
fd657e6816 Merge pull request #1449 from reticenceji/main
update sqlite's mcp SDK version to 1.6.0
2025-04-18 07:29:59 -07:00
Ola Hungerford
ad91defd5c Merge pull request #1456 from cliffhall/upgrade-ts-sdk
Upgrade typescript-sdk version in everything server
2025-04-18 07:23:12 -07:00
Ola Hungerford
c9b93eba96 Merge pull request #1488 from 8ma10s/slack/add-user-profile-read-scope-to-readme
[slack] Instruct users to add users.profile:read scope to token
2025-04-18 07:13:23 -07:00
Ola Hungerford
fc99b57e63 Merge pull request #1426 from olaservo/fix-redis-server-binary
Standardize build and binary references for server-redis
2025-04-18 07:07:50 -07:00