source-context-mcp 0.1.dev2__tar.gz → 0.1.dev3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/PKG-INFO +1 -1
- source_context_mcp-0.1.dev3/pyproject.toml +53 -0
- source_context_mcp-0.1.dev2/pyproject.toml → source_context_mcp-0.1.dev3/pyproject.toml.orig +1 -1
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/cli.py +10 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/server.py +0 -5
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/README.md +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/__init__.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/__main__.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/core/__init__.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/core/api_client.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/core/context.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/core/dependencies.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/core/settings.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/py.typed +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/__init__.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/base.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/debug.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/graph.py +0 -0
- {source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/vector.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: source-context-mcp
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.dev3
|
|
4
4
|
Summary: Local Model Context Protocol (MCP) server for Source Context code intelligence.
|
|
5
5
|
Author: Le Ngoc Tu, Dang Huu Hieu, Huynh Phat Tai
|
|
6
6
|
Author-email: Le Ngoc Tu <tuleaibk@gmail.com>, Dang Huu Hieu <danghuuhieu038@gmail.com>, Huynh Phat Tai <huynhphtai@gmail.com>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "source-context-mcp"
|
|
3
|
+
version = "0.1.dev3"
|
|
4
|
+
description = "Local Model Context Protocol (MCP) server for Source Context code intelligence."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
7
|
+
dependencies = [
|
|
8
|
+
"httpx>=0.28.1",
|
|
9
|
+
"mcp[cli]>=2.0.0",
|
|
10
|
+
"pydantic>=2.13.4",
|
|
11
|
+
"pydantic-settings>=2.14.2",
|
|
12
|
+
"tomli-w>=1.2.0",
|
|
13
|
+
"typer>=0.27.0",
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
[[project.authors]]
|
|
17
|
+
name = "Le Ngoc Tu"
|
|
18
|
+
email = "tuleaibk@gmail.com"
|
|
19
|
+
|
|
20
|
+
[[project.authors]]
|
|
21
|
+
name = "Dang Huu Hieu"
|
|
22
|
+
email = "danghuuhieu038@gmail.com"
|
|
23
|
+
|
|
24
|
+
[[project.authors]]
|
|
25
|
+
name = "Huynh Phat Tai"
|
|
26
|
+
email = "huynhphtai@gmail.com"
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Repository = "https://github.com/TuLe142857/source-context"
|
|
30
|
+
|
|
31
|
+
[project.scripts]
|
|
32
|
+
source-context-mcp = "source_context_mcp:run"
|
|
33
|
+
|
|
34
|
+
[build-system]
|
|
35
|
+
requires = ["uv_build>=0.11.21,<0.12.0"]
|
|
36
|
+
build-backend = "uv_build"
|
|
37
|
+
|
|
38
|
+
[tool.ruff]
|
|
39
|
+
extend = "../pyproject.toml"
|
|
40
|
+
|
|
41
|
+
[tool.mypy]
|
|
42
|
+
python_version = "3.12"
|
|
43
|
+
explicit_package_bases = true
|
|
44
|
+
mypy_path = ["src"]
|
|
45
|
+
check_untyped_defs = true
|
|
46
|
+
disallow_untyped_defs = true
|
|
47
|
+
disallow_incomplete_defs = true
|
|
48
|
+
no_implicit_optional = true
|
|
49
|
+
warn_return_any = true
|
|
50
|
+
warn_unused_ignores = true
|
|
51
|
+
warn_redundant_casts = true
|
|
52
|
+
warn_unreachable = true
|
|
53
|
+
show_error_codes = true
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import importlib.metadata
|
|
2
|
+
|
|
1
3
|
import typer
|
|
2
4
|
|
|
3
5
|
from .core.settings import CONFIG_FILE, get_settings, get_settings_with_overrides, write_settings
|
|
@@ -47,3 +49,11 @@ def show_config():
|
|
|
47
49
|
typer.echo(f"Configuration file: {CONFIG_FILE}")
|
|
48
50
|
typer.echo("Note: Secret value will be display as ***")
|
|
49
51
|
typer.echo(settings_json)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@cli.callback(invoke_without_command=True)
|
|
55
|
+
def version_check(
|
|
56
|
+
version: bool = typer.Option(False, "--version", "-v", help="Show version"),
|
|
57
|
+
):
|
|
58
|
+
if version:
|
|
59
|
+
typer.echo(importlib.metadata.version("source-context-mcp"))
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/server.py
RENAMED
|
@@ -37,9 +37,7 @@ def create_server(
|
|
|
37
37
|
life_span = make_life_span(
|
|
38
38
|
base_url_override=base_url_override, pat_override=pat_override, workspace_id_override=workspace_id_override
|
|
39
39
|
)
|
|
40
|
-
import sys
|
|
41
40
|
|
|
42
|
-
print("hello", file=sys.stderr)
|
|
43
41
|
server = MCPServer(
|
|
44
42
|
name="SourceContextMCP",
|
|
45
43
|
lifespan=life_span,
|
|
@@ -48,6 +46,3 @@ def create_server(
|
|
|
48
46
|
register_tools(server)
|
|
49
47
|
|
|
50
48
|
return server
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
mcp = create_server()
|
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/__init__.py
RENAMED
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/__main__.py
RENAMED
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/core/context.py
RENAMED
|
File without changes
|
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/core/settings.py
RENAMED
|
File without changes
|
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/__init__.py
RENAMED
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/base.py
RENAMED
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/debug.py
RENAMED
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/graph.py
RENAMED
|
File without changes
|
{source_context_mcp-0.1.dev2 → source_context_mcp-0.1.dev3}/src/source_context_mcp/tools/vector.py
RENAMED
|
File without changes
|