agent-lsp 0.5.2__py3-none-win_amd64.whl
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.
- agent_lsp/__init__.py +3 -0
- agent_lsp/__main__.py +34 -0
- agent_lsp/bin/agent-lsp.exe +0 -0
- agent_lsp-0.5.2.dist-info/METADATA +88 -0
- agent_lsp-0.5.2.dist-info/RECORD +8 -0
- agent_lsp-0.5.2.dist-info/WHEEL +5 -0
- agent_lsp-0.5.2.dist-info/entry_points.txt +2 -0
- agent_lsp-0.5.2.dist-info/top_level.txt +1 -0
agent_lsp/__init__.py
ADDED
agent_lsp/__main__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Entry point for `python -m agent_lsp` and the `agent-lsp` console script."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
import subprocess
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def _find_binary():
|
|
9
|
+
"""Locate the agent-lsp binary bundled in this package."""
|
|
10
|
+
pkg_dir = os.path.dirname(os.path.abspath(__file__))
|
|
11
|
+
names = ["agent-lsp.exe", "agent-lsp"] if sys.platform == "win32" else ["agent-lsp"]
|
|
12
|
+
for name in names:
|
|
13
|
+
path = os.path.join(pkg_dir, "bin", name)
|
|
14
|
+
if os.path.isfile(path):
|
|
15
|
+
return path
|
|
16
|
+
return None
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def main():
|
|
20
|
+
binary = _find_binary()
|
|
21
|
+
if binary is None:
|
|
22
|
+
print(
|
|
23
|
+
"agent-lsp: binary not found. This platform may not be supported.\n"
|
|
24
|
+
"Install from https://github.com/blackwell-systems/agent-lsp/releases",
|
|
25
|
+
file=sys.stderr,
|
|
26
|
+
)
|
|
27
|
+
sys.exit(1)
|
|
28
|
+
|
|
29
|
+
result = subprocess.run([binary] + sys.argv[1:])
|
|
30
|
+
sys.exit(result.returncode)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
if __name__ == "__main__":
|
|
34
|
+
main()
|
|
Binary file
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agent-lsp
|
|
3
|
+
Version: 0.5.2
|
|
4
|
+
Summary: MCP server for language intelligence. 53 tools, 30 languages, speculative execution.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://github.com/blackwell-systems/agent-lsp
|
|
7
|
+
Project-URL: Documentation, https://agent-lsp.com
|
|
8
|
+
Project-URL: Repository, https://github.com/blackwell-systems/agent-lsp
|
|
9
|
+
Keywords: mcp,lsp,language-server,ai-agents,code-intelligence,model-context-protocol
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Software Development
|
|
14
|
+
Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
|
|
15
|
+
Requires-Python: >=3.8
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# agent-lsp
|
|
19
|
+
|
|
20
|
+
**MCP server for language intelligence.** Give AI agents structured access to language servers: go-to-definition, find-all-references, rename, diagnostics, completions, call hierarchy, and speculative execution.
|
|
21
|
+
|
|
22
|
+
53 tools. 20 agent workflows. 30 CI-verified languages. Single Go binary.
|
|
23
|
+
|
|
24
|
+
## Why
|
|
25
|
+
|
|
26
|
+
AI coding agents navigate code with grep and file reads. This wastes 5-34x more tokens than necessary and produces 92-99% false positives on symbol lookups. Language servers already have the answers; agent-lsp makes them accessible via MCP.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pip install agent-lsp
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Or via other channels:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
brew install blackwell-systems/tap/agent-lsp # macOS/Linux
|
|
38
|
+
npm install -g @blackwell-systems/agent-lsp # npm
|
|
39
|
+
curl -fsSL https://raw.githubusercontent.com/blackwell-systems/agent-lsp/main/install.sh | sh
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Start with auto-detection
|
|
46
|
+
agent-lsp
|
|
47
|
+
|
|
48
|
+
# Explicit language server
|
|
49
|
+
agent-lsp go:gopls typescript:typescript-language-server,--stdio
|
|
50
|
+
|
|
51
|
+
# HTTP mode
|
|
52
|
+
agent-lsp --http --port 8080 go:gopls
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Then configure your AI tool's MCP settings to point at agent-lsp.
|
|
56
|
+
|
|
57
|
+
## What it does
|
|
58
|
+
|
|
59
|
+
- **53 tools** covering navigation, analysis, refactoring, diagnostics, formatting, speculative execution, build, test, and more
|
|
60
|
+
- **20 agent workflows** (skills) that encode correct multi-step operations: rename safely, analyze blast radius, simulate edits before applying
|
|
61
|
+
- **30 CI-verified languages**: Go, Python, TypeScript, Rust, Java, C, C++, C#, Ruby, PHP, Kotlin, Swift, Scala, Zig, Lua, Elixir, Gleam, and more
|
|
62
|
+
- **Speculative execution**: preview edits in memory, see what breaks before touching disk
|
|
63
|
+
- **Phase enforcement**: blocks out-of-order operations so agents follow correct workflows
|
|
64
|
+
|
|
65
|
+
## Token savings
|
|
66
|
+
|
|
67
|
+
Measured across 5 codebases (Go, TypeScript, Python):
|
|
68
|
+
|
|
69
|
+
| Codebase | Lines | Savings |
|
|
70
|
+
|----------|------:|--------:|
|
|
71
|
+
| agent-lsp | 15K | 5x |
|
|
72
|
+
| Hono (TypeScript) | 24K | 13x |
|
|
73
|
+
| FastAPI (Python) | 33K | 2x |
|
|
74
|
+
| Next.js (TypeScript) | 196K | 5x |
|
|
75
|
+
| HashiCorp Consul (Go) | 319K | 34x |
|
|
76
|
+
|
|
77
|
+
Full experiment: [agent-lsp.com/token-savings](https://agent-lsp.com/token-savings)
|
|
78
|
+
|
|
79
|
+
## Works with
|
|
80
|
+
|
|
81
|
+
Claude Code, Cursor, Windsurf, GitHub Copilot, and any MCP-compatible client.
|
|
82
|
+
|
|
83
|
+
## Links
|
|
84
|
+
|
|
85
|
+
- [GitHub](https://github.com/blackwell-systems/agent-lsp)
|
|
86
|
+
- [Documentation](https://agent-lsp.com)
|
|
87
|
+
- [Token savings experiment](https://agent-lsp.com/token-savings)
|
|
88
|
+
- [Changelog](https://github.com/blackwell-systems/agent-lsp/blob/main/CHANGELOG.md)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
agent_lsp/__init__.py,sha256=qWL6TWjCP41PUJ-9lw7cnQap3N9VLACr0k3dLsuKxjk,78
|
|
2
|
+
agent_lsp/__main__.py,sha256=AYZT_DqDOAEqdd08aPN9qzhMcZexg4jaW6UhQUcrVUw,927
|
|
3
|
+
agent_lsp/bin/agent-lsp.exe,sha256=2PKafkIQ_klmufNU74fNxUtL2R0vgNy66f34nvsjTqw,9679360
|
|
4
|
+
agent_lsp-0.5.2.dist-info/METADATA,sha256=agmnnadfS3DmkwnwXnuLSSUBwpaMdNyV62mhidL5Mw0,3249
|
|
5
|
+
agent_lsp-0.5.2.dist-info/WHEEL,sha256=QR8DNjG6Lr6bNErJWJgF4dP2dJ2N7NpY-BWly1OvcTM,97
|
|
6
|
+
agent_lsp-0.5.2.dist-info/entry_points.txt,sha256=P4Hq4jWXMybu0A-uNIWrFiOUz_v1BIk4X5_pwwlWOMU,54
|
|
7
|
+
agent_lsp-0.5.2.dist-info/top_level.txt,sha256=7nSJh1AxWyK1CT8pRPKS4MF43WhWd62mO2hxubVZ7yg,10
|
|
8
|
+
agent_lsp-0.5.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
agent_lsp
|