Skip to content

Commit bcb12b4

Browse files
authored
fix!: remove MCP server implementation (#45)
* refactor!: remove MCP server implementation Remove the standalone MCP server feature to align with the Node.js SDK which only provides MCP client functionality. This is a BREAKING CHANGE: - Removed `stackmcp` CLI command - Removed `stackone_ai/server.py` module - Removed `examples/mcp_server.py` example The MCP client functionality for fetching tools via `fetch_tools()` is retained and still requires the `mcp` optional dependency. Users who were running `stackmcp` as an MCP server will need to use alternative approaches for MCP server functionality. * docs: update documentation after MCP server removal - Remove MCP server section from CLAUDE.md code architecture - Remove `make mcp-inspector` command reference from CLAUDE.md - Update Python requirements note in README.md to reflect 3.9+ support * chore: remove mcp-inspector task from justfile The mcp-inspector task referenced the removed stackmcp CLI command. * chore: remove cli extra from mcp dependency The [cli] extra was only needed for the MCP server functionality. The MCP client for fetch_tools() only requires the base mcp package.
1 parent ad8fce4 commit bcb12b4

File tree

5 files changed

+1
-272
lines changed

5 files changed

+1
-272
lines changed

CLAUDE.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ make test-examples # Run example tests
3333
# Documentation
3434
make docs-serve # Build and serve docs locally (http://localhost:8000)
3535
make docs-build # Build docs for deployment
36-
37-
# MCP Development
38-
make mcp-inspector # Run MCP server inspector for debugging
3936
```
4037

4138
## Code Architecture
@@ -57,10 +54,6 @@ make mcp-inspector # Run MCP server inspector for debugging
5754
- Handles file upload detection (`format: binary``type: file`)
5855
- Resolves schema references
5956

60-
4. **MCP Server** (`stackone_ai/server.py`): Protocol implementation
61-
- Async tool execution
62-
- CLI interface via `stackmcp` command
63-
6457
### OpenAPI Specifications
6558

6659
All tool definitions are generated from OpenAPI specs in `stackone_ai/oas/`:

examples/mcp_server.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

justfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,3 @@ docs-serve:
3535
docs-build:
3636
uv run scripts/build_docs.py
3737
uv run mkdocs build
38-
39-
# Run MCP server inspector for debugging
40-
mcp-inspector:
41-
uv sync --all-extras
42-
npx @modelcontextprotocol/inspector stackmcp

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ dependencies = [
2929
"eval-type-backport; python_version<'3.10'", # TODO: Remove when Python 3.9 support is dropped
3030
]
3131

32-
[project.scripts]
33-
stackmcp = "stackone_ai.server:cli"
34-
3532
[build-system]
3633
requires = ["hatchling"]
3734
build-backend = "hatchling.build"
@@ -48,7 +45,7 @@ packages = ["stackone_ai"]
4845
[project.optional-dependencies]
4946
# TODO: Remove python_version conditions when Python 3.9 support is dropped
5047
mcp = [
51-
"mcp[cli]>=1.3.0; python_version>='3.10'",
48+
"mcp>=1.3.0; python_version>='3.10'",
5249
]
5350
examples = [
5451
"crewai>=0.102.0; python_version>='3.10'",

stackone_ai/server.py

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)